public class DistortSupport
extends java.lang.Object
DistortImageOps can call.| Constructor and Description |
|---|
DistortSupport() |
| Modifier and Type | Method and Description |
|---|---|
static <Input extends ImageSingleBand,Output extends ImageSingleBand> |
createDistortMS(java.lang.Class<Output> outputType,
PixelTransform_F32 dstToSrc,
InterpolatePixelS<Input> interp,
boolean cached)
Creates a
ImageDistort for the multi-spectral images of the specified image type, transformation
and interpolation instance. |
static PixelTransformAffine_F32 |
transformRotate(float x0,
float y0,
float x1,
float y1,
float angle)
Creates a
PixelTransformAffine_F32 from the dst image into the src image. |
static PixelTransformAffine_F32 |
transformScale(ImageBase from,
ImageBase to,
PixelTransformAffine_F32 distort)
Computes a transform which is used to rescale an image.
|
public static PixelTransformAffine_F32 transformScale(ImageBase from, ImageBase to, PixelTransformAffine_F32 distort)
public static PixelTransformAffine_F32 transformRotate(float x0, float y0, float x1, float y1, float angle)
PixelTransformAffine_F32 from the dst image into the src image.x0 - Center of rotation in input image coordinates.y0 - Center of rotation in input image coordinates.x1 - Center of rotation in output image coordinates.y1 - Center of rotation in output image coordinates.angle - Angle of rotation.public static <Input extends ImageSingleBand,Output extends ImageSingleBand> ImageDistort<MultiSpectral<Input>,MultiSpectral<Output>> createDistortMS(java.lang.Class<Output> outputType, PixelTransform_F32 dstToSrc, InterpolatePixelS<Input> interp, boolean cached)
ImageDistort for the multi-spectral images of the specified image type, transformation
and interpolation instance.dstToSrc - Transform from dst to src image.interp - Which interpolation algorithm should be used.