public class LensDistortionOps_F32
extends java.lang.Object
| Constructor and Description |
|---|
LensDistortionOps_F32() |
| Modifier and Type | Method and Description |
|---|---|
static georegression.struct.shapes.RectangleLength2D_F32 |
boundBoxInside(int srcWidth,
int srcHeight,
boofcv.struct.distort.PixelTransform<georegression.struct.point.Point2D_F32> transform,
georegression.struct.point.Point2D_F32 work)
Ensures that the entire box will be inside
|
static georegression.struct.shapes.RectangleLength2D_F32 |
centerBoxInside(int srcWidth,
int srcHeight,
boofcv.struct.distort.PixelTransform<georegression.struct.point.Point2D_F32> transform,
georegression.struct.point.Point2D_F32 work)
Attempts to center the box inside.
|
static void |
roundInside(georegression.struct.shapes.RectangleLength2D_F32 bound)
Adjust bound to ensure the entire image is contained inside, otherwise there might be
single pixel wide black regions
|
static <O extends CameraPinhole,D extends CameraPinhole> |
transformChangeModel(AdjustmentType type,
O paramOriginal,
D paramDesired,
boolean desiredToOriginal,
D paramMod)
Creates a
Point2Transform2_F32 for converting pixels from original camera model into a new synthetic
model. |
public static <O extends CameraPinhole,D extends CameraPinhole> boofcv.struct.distort.Point2Transform2_F32 transformChangeModel(AdjustmentType type, O paramOriginal, D paramDesired, boolean desiredToOriginal, D paramMod)
Point2Transform2_F32 for converting pixels from original camera model into a new synthetic
model. The scaling of the image can be adjusted to ensure certain visibility requirements.type - The type of adjustment it will apply to the transformparamOriginal - Camera model for the current imageparamDesired - Desired camera model for the distorted imagedesiredToOriginal - If true then the transform's input is assumed to be pixels in the desired
image and the output will be in original image, if false then the reverse transform
is returned.paramMod - The modified camera model to meet the requested visibility requirements. Null if you don't want it.public static georegression.struct.shapes.RectangleLength2D_F32 boundBoxInside(int srcWidth,
int srcHeight,
boofcv.struct.distort.PixelTransform<georegression.struct.point.Point2D_F32> transform,
georegression.struct.point.Point2D_F32 work)
srcWidth - Width of the source imagesrcHeight - Height of the source imagetransform - Transform being applied to the imagepublic static georegression.struct.shapes.RectangleLength2D_F32 centerBoxInside(int srcWidth,
int srcHeight,
boofcv.struct.distort.PixelTransform<georegression.struct.point.Point2D_F32> transform,
georegression.struct.point.Point2D_F32 work)
srcWidth - Width of the source imagesrcHeight - Height of the source imagetransform - Transform being applied to the imagepublic static void roundInside(georegression.struct.shapes.RectangleLength2D_F32 bound)