public abstract class ImageDistortBasic<T extends ImageSingleBand> extends Object implements ImageDistort<T>
ImageDistort. Computes the distortion from the dst to src image
for each pixel. The dst pixel value is then set to the interpolated value of the src image.| Modifier and Type | Field and Description |
|---|---|
protected ImageBorder<T> |
border |
protected T |
dstImg |
protected PixelTransform_F32 |
dstToSrc |
protected InterpolatePixelS<T> |
interp |
protected T |
srcImg |
protected int |
x0 |
protected int |
x1 |
protected int |
y0 |
protected int |
y1 |
| Constructor and Description |
|---|
ImageDistortBasic(InterpolatePixelS<T> interp,
ImageBorder<T> border)
Specifies configuration parameters
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply(T srcImg,
T dstImg)
Applies the transform to the entire destination image.
|
void |
apply(T srcImg,
T 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 PixelTransform_F32 dstToSrc
protected InterpolatePixelS<T extends ImageSingleBand> interp
protected ImageBorder<T extends ImageSingleBand> border
protected int x0
protected int y0
protected int x1
protected int y1
protected T extends ImageSingleBand srcImg
protected T extends ImageSingleBand dstImg
public ImageDistortBasic(InterpolatePixelS<T> interp, ImageBorder<T> border)
interp - Interpolation algorithmborder - How borders are handledpublic void setModel(PixelTransform_F32 dstToSrc)
ImageDistortsetModel in interface ImageDistort<T extends ImageSingleBand>dstToSrc - Pixel coordinate transformation.public void apply(T srcImg, T dstImg)
ImageDistortapply in interface ImageDistort<T extends ImageSingleBand>srcImg - Input image. Not modified.dstImg - Output image. Modified.public void apply(T srcImg, T dstImg, int dstX0, int dstY0, int dstX1, int dstY1)
ImageDistortapply in interface ImageDistort<T 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)
Copyright © 2013. All Rights Reserved.