public class DistortSupport
extends java.lang.Object
DistortImageOps can call.| Constructor and Description |
|---|
DistortSupport() |
| Modifier and Type | Method and Description |
|---|---|
static <Input extends boofcv.struct.image.ImageGray<Input>,Output extends boofcv.struct.image.ImageGray<Output>> |
createDistortPL(java.lang.Class<Output> outputType,
boofcv.struct.distort.PixelTransform<georegression.struct.point.Point2D_F32> dstToSrc,
InterpolatePixelS<Input> interp,
boolean cached)
Creates a
ImageDistort for the planar 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(boofcv.struct.image.ImageBase from,
boofcv.struct.image.ImageBase to,
PixelTransformAffine_F32 distort)
Computes a transform which is used to rescale an image.
|
public static PixelTransformAffine_F32 transformScale(boofcv.struct.image.ImageBase from, boofcv.struct.image.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 boofcv.struct.image.ImageGray<Input>,Output extends boofcv.struct.image.ImageGray<Output>> ImageDistort<boofcv.struct.image.Planar<Input>,boofcv.struct.image.Planar<Output>> createDistortPL(java.lang.Class<Output> outputType, boofcv.struct.distort.PixelTransform<georegression.struct.point.Point2D_F32> dstToSrc, InterpolatePixelS<Input> interp, boolean cached)
ImageDistort for the planar images of the specified image type, transformation
and interpolation instance.dstToSrc - Transform from dst to src image.interp - Which interpolation algorithm should be used.