Package boofcv.alg.distort.brown
Class RemoveBrownNtoN_F32
java.lang.Object
boofcv.alg.distort.brown.RemoveBrownNtoN_F32
- All Implemented Interfaces:
Point2Transform2_F32
@Generated("boofcv.alg.distort.brown.RemoveBrownNtoN_F64")
public class RemoveBrownNtoN_F32
extends Object
implements Point2Transform2_F32
Converts the observed distorted normalized image coordinates into undistorted normalized image coordinates.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
compute
(float x, float y, Point2D_F32 out) Removes radial distortionCreates a copy of this transform for use in concurrent application.static void
removeRadial
(float x, float y, float[] radial, float t1, float t2, Point2D_F32 out, float tol) Static function for removing radial and tangential distortionsetDistortion
(@org.jetbrains.annotations.Nullable double[] radial, double t1, double t2) void
setTolerance
(float tol)
-
Field Details
-
params
-
-
Constructor Details
-
RemoveBrownNtoN_F32
public RemoveBrownNtoN_F32() -
RemoveBrownNtoN_F32
public RemoveBrownNtoN_F32(float tol)
-
-
Method Details
-
setTolerance
public void setTolerance(float tol) -
setDistortion
public RemoveBrownNtoN_F32 setDistortion(@Nullable @org.jetbrains.annotations.Nullable double[] radial, double t1, double t2) -
compute
Removes radial distortion- Specified by:
compute
in interfacePoint2Transform2_F32
- Parameters:
x
- Distorted x-coordinate normalized image coordinatey
- Distorted y-coordinate normalized image coordinateout
- Undistorted normalized coordinate.
-
copyConcurrent
Description copied from interface:Point2Transform2_F32
Creates a copy of this transform for use in concurrent application. What that means is that any variable which might be modified by a concurrent call toPoint2Transform2_F32.compute(float, float, georegression.struct.point.Point2D_F32)
is not passed to the 'copied' output. Expensive to compute models might be passed in as a reference.- Specified by:
copyConcurrent
in interfacePoint2Transform2_F32
-
removeRadial
public static void removeRadial(float x, float y, float[] radial, float t1, float t2, Point2D_F32 out, float tol) Static function for removing radial and tangential distortion- Parameters:
x
- Distorted x-coordinate normalized image coordinatey
- Distorted y-coordinate normalized image coordinateradial
- Radial distortion parameterst1
- tangential distortiont2
- tangential distortionout
- Undistorted normalized image coordinatetol
- convergence tolerance
-