Package boofcv.alg.distort
Class LensDistortionOps
- java.lang.Object
-
- boofcv.alg.distort.LensDistortionOps
-
public class LensDistortionOps extends java.lang.ObjectOperations for manipulating lens distortion which do not have F32 and F64 equivalents.- See Also:
LensDistortionOps_F32,LensDistortionOps_F64
-
-
Constructor Summary
Constructors Constructor Description LensDistortionOps()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends boofcv.struct.image.ImageBase<T>,O extends CameraPinhole,D extends CameraPinhole>
boofcv.alg.distort.ImageDistort<T,T>changeCameraModel(AdjustmentType type, boofcv.struct.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.
-
-
-
Method Detail
-
changeCameraModel
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.struct.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. If requested the camera model can be further modified to ensure certain visibility requirements are meet and the adjusted camera model will be returned.- Parameters:
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.- Returns:
- Image distortion from original camera model to the modified one.
-
-