public class LensDistortionOps
extends java.lang.Object
| Constructor and Description |
|---|
LensDistortionOps() |
| Modifier and Type | Method and Description |
|---|---|
static georegression.struct.shapes.RectangleLength2D_F32 |
boundBoxInside(int srcWidth,
int srcHeight,
boofcv.struct.distort.PixelTransform2_F32 transform)
Finds the maximum area axis-aligned rectangle contained inside the transformed image which
does not include any pixels outside the sources border.
|
static georegression.struct.shapes.RectangleLength2D_F64 |
boundBoxInside(int srcWidth,
int srcHeight,
boofcv.struct.distort.PixelTransform2_F64 transform)
Finds the maximum area axis-aligned rectangle contained inside the transformed image which
does not include any pixels outside the sources border.
|
static <T extends boofcv.struct.image.ImageBase<T>,O extends CameraPinhole,D extends CameraPinhole> |
changeCameraModel(AdjustmentType type,
boofcv.core.image.border.BorderType borderType,
O original,
D desired,
D modified,
boofcv.struct.image.ImageType<T> imageType)
Creates a distortion for modifying the input image from one camera model into another camera model.
|
static LensDistortionNarrowFOV |
narrow(CameraModel param)
Creates the
lens distortion for the specified camera parameters. |
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 void |
roundInside(georegression.struct.shapes.RectangleLength2D_F64 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_F32(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. |
static LensDistortionWideFOV |
wide(CameraModel param)
Creates the
lens distortion for the specified camera parameters. |
public static <T extends boofcv.struct.image.ImageBase<T>,O extends CameraPinhole,D extends CameraPinhole> boofcv.alg.distort.ImageDistort<T,T> changeCameraModel(AdjustmentType type, boofcv.core.image.border.BorderType borderType, O original, D desired, D modified, boofcv.struct.image.ImageType<T> imageType)
type - How it should modify the image model to ensure visibility of pixels.borderType - How the image border is handledoriginal - The original camera modeldesired - The desired camera modelmodified - (Optional) The desired camera model after being rescaled. Can be null.imageType - Type of image.public static <O extends CameraPinhole,D extends CameraPinhole> boofcv.struct.distort.Point2Transform2_F32 transformChangeModel_F32(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 LensDistortionNarrowFOV narrow(CameraModel param)
Creates the lens distortion for the specified camera parameters.
public static LensDistortionWideFOV wide(CameraModel param)
Creates the lens distortion for the specified camera parameters.
public static georegression.struct.shapes.RectangleLength2D_F32 boundBoxInside(int srcWidth,
int srcHeight,
boofcv.struct.distort.PixelTransform2_F32 transform)
srcWidth - Width of the source imagesrcHeight - Height of the source imagetransform - Transform being applied to the imagepublic static georegression.struct.shapes.RectangleLength2D_F64 boundBoxInside(int srcWidth,
int srcHeight,
boofcv.struct.distort.PixelTransform2_F64 transform)
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)
public static void roundInside(georegression.struct.shapes.RectangleLength2D_F64 bound)