public class DistortSupport extends Object
DistortImageOps can call.| Constructor and Description |
|---|
DistortSupport() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends ImageSingleBand> |
createDistortMS(Class<T> imageType,
PixelTransform_F32 dstToSrc,
InterpolatePixelS<T> interp,
ImageBorder border)
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)
Computes a transform which is used to rescale an image.
|
public static PixelTransformAffine_F32 transformScale(ImageBase from, ImageBase to)
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 <T extends ImageSingleBand> ImageDistort<MultiSpectral<T>> createDistortMS(Class<T> imageType, PixelTransform_F32 dstToSrc, InterpolatePixelS<T> interp, ImageBorder border)
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.border - Specifies how requests to pixels outside the image should be handled. If null then no change
happens to pixels which have a source pixel outside the image.Copyright © 2013. All Rights Reserved.