Package boofcv.alg.distort.brown
Class RemoveBrownPtoN_F32
- java.lang.Object
-
- boofcv.alg.distort.brown.RemoveBrownPtoN_F32
-
- All Implemented Interfaces:
boofcv.struct.distort.Point2Transform2_F32
public class RemoveBrownPtoN_F32 extends java.lang.Object implements boofcv.struct.distort.Point2Transform2_F32Converts the observed distorted pixels into normalized image coordinates.
-
-
Constructor Summary
Constructors Constructor Description RemoveBrownPtoN_F32()RemoveBrownPtoN_F32(float tol)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcompute(float x, float y, georegression.struct.point.Point2D_F32 out)Removes radial distortionRemoveBrownPtoN_F32copyConcurrent()RemoveBrownPtoN_F32setDistortion(double[] radial, double t1, double t2)RemoveBrownPtoN_F32setK(double fx, double fy, double skew, double cx, double cy)Specify camera calibration parametersvoidsetTolerance(float tol)
-
-
-
Field Detail
-
cx
protected float cx
-
cy
protected float cy
-
fx
protected float fx
-
fy
protected float fy
-
skew
protected float skew
-
params
protected RadialTangential_F32 params
-
-
Method Detail
-
setTolerance
public void setTolerance(float tol)
-
setK
public RemoveBrownPtoN_F32 setK(double fx, double fy, double skew, double cx, double cy)
Specify camera calibration parameters- Parameters:
fx- Focal length x-axis in pixelsfy- Focal length y-axis in pixelsskew- skew in pixelscx- camera center x-axis in pixelscy- center center y-axis in pixels
-
setDistortion
public RemoveBrownPtoN_F32 setDistortion(double[] radial, double t1, double t2)
-
compute
public void compute(float x, float y, georegression.struct.point.Point2D_F32 out)Removes radial distortion- Specified by:
computein interfaceboofcv.struct.distort.Point2Transform2_F32- Parameters:
x- Distorted x-coordinate pixely- Distorted y-coordinate pixelout- Undistorted normalized coordinate.
-
copyConcurrent
public RemoveBrownPtoN_F32 copyConcurrent()
- Specified by:
copyConcurrentin interfaceboofcv.struct.distort.Point2Transform2_F32
-
-