S - the source type. Must be a primitive array or buffer type (e.g., double[] or IntBuffer)T - the target type. Must be a primitive array or buffer type (e.g., double[] or IntBuffer)public static interface SubArrayCopy.Typed<S,T>
| Modifier and Type | Method and Description |
|---|---|
default void |
copy(S src,
int[] srcSize,
int[] srcPos,
T dest,
int[] destSize,
int[] destPos,
int[] size)
Copy a nD region from
src to dest, where src and
dest are flattened nD array of dimensions srcSize and
destSize, respectively. |
void |
copyNDRangeRecursive(int d,
S src,
int[] srcStrides,
int srcPos,
T dest,
int[] destStrides,
int destPos,
int[] size)
Recursively copy a
(d+1) dimensional region from src to
dest, where src and dest are flattened nD array
with strides srcStrides and destStrides, respectively. |
default void copy(S src, int[] srcSize, int[] srcPos, T dest, int[] destSize, int[] destPos, int[] size)
src to dest, where src and
dest are flattened nD array of dimensions srcSize and
destSize, respectively.src - flattened nD source arraysrcSize - dimensions of srcsrcPos - starting position, in src, of the range to copydest - flattened nD destination arraydestSize - dimensions of destdestPos - starting position, in dest, of the range to copysize - size of the range to copyvoid copyNDRangeRecursive(int d,
S src,
int[] srcStrides,
int srcPos,
T dest,
int[] destStrides,
int destPos,
int[] size)
(d+1) dimensional region from src to
dest, where src and dest are flattened nD array
with strides srcStrides and destStrides, respectively.
For d=0, a 1D line of length size[0] is copied
(equivalent to System.arraycopy). For d=1, a 2D plane of
size size[0] * size[1] is copied, by recursively copying 1D
lines, starting srcStrides[1] (respectively destStrides[1]) apart. For d=2, a 3D box is copied by
recursively copying 2D planes, etc.
d - current dimensionsrc - flattened nD source arraysrcStrides - nD strides of srcsrcPos - flattened index (in src) to start copying fromdest - flattened nD destination arraydestStrides - nD strides of destdestPos - flattened index (in dest) to start copying tosize - nD size of the range to copyCopyright © 2009–2025 ImgLib2. All rights reserved.