Package boofcv.alg.distort
Class LensDistortionOps
java.lang.Object
boofcv.alg.distort.LensDistortionOps
Operations for manipulating lens distortion which do not have F32 and F64 equivalents.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends ImageBase<T>,
O extends CameraPinhole, D extends CameraPinhole>
ImageDistort<T,T> changeCameraModel
(AdjustmentType type, BorderType borderType, O original, D desired, D modified, ImageType<T> imageType) Creates a distortion for modifying the input image from one camera model into another camera model.
-
Constructor Details
-
LensDistortionOps
public LensDistortionOps()
-
-
Method Details
-
changeCameraModel
public static <T extends ImageBase<T>,O extends CameraPinhole, ImageDistort<T,D extends CameraPinhole> T> changeCameraModel(AdjustmentType type, BorderType borderType, O original, D desired, @Nullable D modified, 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.
-