Package boofcv.alg.distort.pinhole
Class LensDistortionPinhole
- java.lang.Object
-
- boofcv.alg.distort.pinhole.LensDistortionPinhole
-
- All Implemented Interfaces:
LensDistortionNarrowFOV
public class LensDistortionPinhole extends java.lang.Object implements LensDistortionNarrowFOV
Projection when there is no lens distortion
-
-
Constructor Summary
Constructors Constructor Description LensDistortionPinhole(CameraPinhole p)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boofcv.struct.distort.Point2Transform2_F32distort_F32(boolean pixelIn, boolean pixelOut)Adds lens distortionboofcv.struct.distort.Point2Transform2_F64distort_F64(boolean pixelIn, boolean pixelOut)Adds lens distortionCameraPinholegetIntrinsic()boofcv.struct.distort.Point2Transform2_F32normalized_F32()Converts a pixel coordinate into a normalized image coordinate.boofcv.struct.distort.Point2Transform2_F64normalized_F64()Converts a pixel coordinate into a normalized image coordinate.boofcv.struct.distort.Point2Transform2_F32undistort_F32(boolean pixelIn, boolean pixelOut)Removes lens distortionboofcv.struct.distort.Point2Transform2_F64undistort_F64(boolean pixelIn, boolean pixelOut)Removes lens distortion
-
-
-
Constructor Detail
-
LensDistortionPinhole
public LensDistortionPinhole(CameraPinhole p)
-
-
Method Detail
-
distort_F64
public boofcv.struct.distort.Point2Transform2_F64 distort_F64(boolean pixelIn, boolean pixelOut)Description copied from interface:LensDistortionNarrowFOVAdds lens distortion- Specified by:
distort_F64in interfaceLensDistortionNarrowFOV- Parameters:
pixelIn- true if input is pixel coordinates or false if in normalized image coordinatespixelOut- true if output is pixel coordinates or false if in normalized image coordinates- Returns:
- Specified transform
-
undistort_F64
public boofcv.struct.distort.Point2Transform2_F64 undistort_F64(boolean pixelIn, boolean pixelOut)Description copied from interface:LensDistortionNarrowFOVRemoves lens distortion- Specified by:
undistort_F64in interfaceLensDistortionNarrowFOV- Parameters:
pixelIn- true if input is pixel coordinates or false if in normalized image coordinatespixelOut- true if output is pixel coordinates or false if in normalized image coordinates- Returns:
- Specified transform
-
distort_F32
public boofcv.struct.distort.Point2Transform2_F32 distort_F32(boolean pixelIn, boolean pixelOut)Description copied from interface:LensDistortionNarrowFOVAdds lens distortion- Specified by:
distort_F32in interfaceLensDistortionNarrowFOV- Parameters:
pixelIn- true if input is pixel coordinates or false if in normalized image coordinatespixelOut- true if output is pixel coordinates or false if in normalized image coordinates- Returns:
- Specified transform
-
undistort_F32
public boofcv.struct.distort.Point2Transform2_F32 undistort_F32(boolean pixelIn, boolean pixelOut)Description copied from interface:LensDistortionNarrowFOVRemoves lens distortion- Specified by:
undistort_F32in interfaceLensDistortionNarrowFOV- Parameters:
pixelIn- true if input is pixel coordinates or false if in normalized image coordinatespixelOut- true if output is pixel coordinates or false if in normalized image coordinates- Returns:
- Specified transform
-
normalized_F32
public boofcv.struct.distort.Point2Transform2_F32 normalized_F32()
Description copied from interface:LensDistortionNarrowFOVConverts a pixel coordinate into a normalized image coordinate. Assumes that pixels have lens distortion removed already- Specified by:
normalized_F32in interfaceLensDistortionNarrowFOV
-
normalized_F64
public boofcv.struct.distort.Point2Transform2_F64 normalized_F64()
Description copied from interface:LensDistortionNarrowFOVConverts a pixel coordinate into a normalized image coordinate. Assumes that pixels have lens distortion removed already- Specified by:
normalized_F64in interfaceLensDistortionNarrowFOV
-
getIntrinsic
public CameraPinhole getIntrinsic()
-
-