public class ImplImageDistort_MS<Input extends ImageSingleBand,Output extends ImageSingleBand> extends java.lang.Object implements ImageDistort<MultiSpectral<Input>,MultiSpectral<Output>>
ImageDistort for MultiSpectral images.| Constructor and Description |
|---|
ImplImageDistort_MS(ImageDistort<Input,Output> layerDistort) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(MultiSpectral<Input> srcImg,
MultiSpectral<Output> dstImg)
Applies the transform to the entire destination image.
|
void |
apply(MultiSpectral<Input> srcImg,
MultiSpectral<Output> dstImg,
int dstX0,
int dstY0,
int dstX1,
int dstY1)
Applies the transform to only the specified region inside the destination image.
|
boolean |
getRenderAll()
Returns the render all flag
|
void |
setModel(PixelTransform_F32 dstToSrc)
Specifies how pixel coordinates are transformed from the destination
to source images.
|
void |
setRenderAll(boolean renderAll)
Specifies if the entire output image should be rendered, even if mapping to the source image is outside
the source image.
|
public ImplImageDistort_MS(ImageDistort<Input,Output> layerDistort)
public void setModel(PixelTransform_F32 dstToSrc)
ImageDistortsetModel in interface ImageDistort<MultiSpectral<Input extends ImageSingleBand>,MultiSpectral<Output extends ImageSingleBand>>dstToSrc - Pixel coordinate transformation.public void apply(MultiSpectral<Input> srcImg, MultiSpectral<Output> dstImg)
ImageDistortapply in interface ImageDistort<MultiSpectral<Input extends ImageSingleBand>,MultiSpectral<Output extends ImageSingleBand>>srcImg - Input image. Not modified.dstImg - Output image. Modified.public void apply(MultiSpectral<Input> srcImg, MultiSpectral<Output> dstImg, int dstX0, int dstY0, int dstX1, int dstY1)
ImageDistortapply in interface ImageDistort<MultiSpectral<Input extends ImageSingleBand>,MultiSpectral<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 setRenderAll(boolean renderAll)
ImageDistortsetRenderAll in interface ImageDistort<MultiSpectral<Input extends ImageSingleBand>,MultiSpectral<Output extends ImageSingleBand>>renderAll - true to render all pixels or false only ones inside the source imagepublic boolean getRenderAll()
ImageDistortgetRenderAll in interface ImageDistort<MultiSpectral<Input extends ImageSingleBand>,MultiSpectral<Output extends ImageSingleBand>>