public class LensDistortionOps extends Object
| Constructor and Description |
|---|
LensDistortionOps() |
| Modifier and Type | Method and Description |
|---|---|
static PointTransform_F32 |
allInside(IntrinsicParameters param,
IntrinsicParameters paramAdj)
Adjusts the view such that each pixel has a correspondence to the original image while maximizing the
view area.
|
static georegression.struct.shapes.Rectangle2D_F32 |
boundBoxInside(int srcWidth,
int srcHeight,
PixelTransform_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 PointTransform_F32 |
fullView(IntrinsicParameters param,
IntrinsicParameters paramAdj)
Transforms the view such that the entire original image is visible after lens distortion has been removed.
|
static <T extends ImageSingleBand> |
removeRadialImage(IntrinsicParameters param,
BorderType borderType,
Class<T> imageType)
Creates an which removes radial distortion.
|
static void |
roundInside(georegression.struct.shapes.Rectangle2D_F32 bound)
Adjust bound to ensure the entire image is contained inside, otherwise there might be
single pixel wide black regions
|
static PointTransform_F64 |
transformNormToRadial_F64(IntrinsicParameters param)
Converts normalized image coordinates into distorted pixel coordinates.
|
static PointTransform_F32 |
transformPixelToRadial_F32(IntrinsicParameters param)
Transform from undistorted pixel coordinates to distorted with radial pixel coordinates
|
static PointTransform_F64 |
transformRadialToNorm_F64(IntrinsicParameters param)
Removes radial distortion from the image in pixel coordinates and converts it into normalized image coordinates
|
static PointTransform_F64 |
transformRadialToPixel_F64(IntrinsicParameters param)
Removes radial distortion from the pixel coordinate.
|
public static PointTransform_F32 fullView(IntrinsicParameters param, IntrinsicParameters paramAdj)
Transforms the view such that the entire original image is visible after lens distortion has been removed.
The appropriate PointTransform_F32 is returned and a new set of intrinsic camera parameters for
the "virtual" camera that is associated with the returned transformed.
The original image coordinate system is maintained even if the intrinsic parameter flipY is true.
param - Intrinsic camera parameters.paramAdj - If not null, the new camera parameters are stored here.public static PointTransform_F32 allInside(IntrinsicParameters param, IntrinsicParameters paramAdj)
Adjusts the view such that each pixel has a correspondence to the original image while maximizing the view area. In other words no black regions which can cause problems for some image processing algorithms.
The original image coordinate system is maintained even if the intrinsic parameter flipY is true.
param - Intrinsic camera parameters.paramAdj - If not null, the new camera parameters are stored here.public static PointTransform_F64 transformRadialToNorm_F64(IntrinsicParameters param)
param - Intrinsic camera parameterspublic static PointTransform_F64 transformRadialToPixel_F64(IntrinsicParameters param)
param - Intrinsic camera parameterspublic static PointTransform_F64 transformNormToRadial_F64(IntrinsicParameters param)
param - Intrinsic camera parameterspublic static PointTransform_F32 transformPixelToRadial_F32(IntrinsicParameters param)
Transform from undistorted pixel coordinates to distorted with radial pixel coordinates
NOTE: The original image coordinate system is maintained even if the intrinsic parameter flipY is true.
param - Intrinsic camera parameterspublic static <T extends ImageSingleBand> ImageDistort<T> removeRadialImage(IntrinsicParameters param, BorderType borderType, Class<T> imageType)
param - Intrinsic camera parametersimageType - Type of single band image being processedborderType - Specifies how the image border is handled.public static georegression.struct.shapes.Rectangle2D_F32 boundBoxInside(int srcWidth,
int srcHeight,
PixelTransform_F32 transform)
srcWidth - Width of the source imagesrcHeight - Height of the source imagetransform - Transform being applied to the imagepublic static void roundInside(georegression.struct.shapes.Rectangle2D_F32 bound)
Copyright © 2013. All Rights Reserved.