public interface ImageDistort<T extends ImageBase>
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 |
setModel(PixelTransform_F32 dstToSrc)
Specifies how pixel coordinates are transformed from the destination
to source images.
|
void setModel(PixelTransform_F32 dstToSrc)
dstToSrc
- Pixel coordinate transformation.void apply(T srcImg, T dstImg)
srcImg
- Input image. Not modified.dstImg
- Output image. Modified.void apply(T srcImg, T dstImg, int dstX0, int dstY0, int dstX1, int dstY1)
srcImg
- Input image. Not modified.dstImg
- Output image. Modified.dstX0
- Left most crop boundary.dstY0
- Top most crop boundary.dstX1
- Right most crop boundary.dstY1
- Bottom most crop boundary.Copyright © 2011-2012 Peter Abeles