Interface RangeCopier<T>
- Type Parameters:
T- a primitive array type, e.g.,byte[].
- All Known Implementing Classes:
ArrayImgRangeCopier, CellImgRangeCopier, PlanarImgRangeCopier
interface RangeCopier<T>
RangeCopier does the actual copying work from a NativeImg
into a primitive array.
The static create(NativeImg, Ranges, MemCopy, T) method will pick the correct
implementation for a given NativeImg.
-
Method Summary
Modifier and TypeMethodDescriptionvoidCopy the block starting atsrcPoswith the givensizeinto the (appropriately sized)destarray.static <T> RangeCopier<T> Return a new independent instance of thisRangeCopier.
-
Method Details
-
copy
Copy the block starting atsrcPoswith the givensizeinto the (appropriately sized)destarray.- Parameters:
srcPos- min coordinates of block to copy from src Img.dest- destination array. Type isbyte[],float[], etc, corresponding to the src Img's native type.size- dimensions of block to copy from src Img.
-
newInstance
RangeCopier<T> newInstance()Return a new independent instance of thisRangeCopier. This is used for multi-threading. The new instance works on the same source image, but has independent internal state.- Returns:
- new independent instance of this
RangeCopier
-
create
-