public abstract class ImageDistortCache<Input extends ImageSingleBand,Output extends ImageSingleBand> extends java.lang.Object implements ImageDistort<Input,Output>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
dirty |
protected Output |
dstImg |
protected Input |
srcImg |
| Constructor and Description |
|---|
ImageDistortCache(InterpolatePixelS<Input> interp,
ImageBorder<Input> border)
Specifies configuration parameters
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply(Input srcImg,
Output dstImg)
Applies the transform to the entire destination image.
|
void |
apply(Input srcImg,
Output dstImg,
int dstX0,
int dstY0,
int dstX1,
int dstY1)
Applies the transform to only the specified region inside the destination image.
|
void |
applyBorder() |
void |
applyNoBorder() |
protected abstract void |
assign(int indexDst,
float value) |
void |
setModel(PixelTransform_F32 dstToSrc)
Specifies how pixel coordinates are transformed from the destination
to source images.
|
protected Input extends ImageSingleBand srcImg
protected Output extends ImageSingleBand dstImg
protected boolean dirty
public ImageDistortCache(InterpolatePixelS<Input> interp, ImageBorder<Input> border)
interp - Interpolation algorithmborder - How borders are handledpublic void setModel(PixelTransform_F32 dstToSrc)
ImageDistortsetModel in interface ImageDistort<Input extends ImageSingleBand,Output extends ImageSingleBand>dstToSrc - Pixel coordinate transformation.public void apply(Input srcImg, Output dstImg)
ImageDistortapply in interface ImageDistort<Input extends ImageSingleBand,Output extends ImageSingleBand>srcImg - Input image. Not modified.dstImg - Output image. Modified.public void apply(Input srcImg, Output dstImg, int dstX0, int dstY0, int dstX1, int dstY1)
ImageDistortapply in interface ImageDistort<Input extends ImageSingleBand,Output extends ImageSingleBand>srcImg - Input image. Not modified.dstImg - Output image. Modified.dstX0 - Left most crop boundary. Inclusive.dstY0 - Top most crop boundary. Inclusive.dstX1 - Right most crop boundary. Exclusive.dstY1 - Bottom most crop boundary. Exclusive.public void applyBorder()
public void applyNoBorder()
protected abstract void assign(int indexDst,
float value)