Package boofcv.alg.distort.brown
Class AddBrownPtoN_F32
java.lang.Object
boofcv.alg.distort.brown.AddBrownPtoN_F32
- All Implemented Interfaces:
Point2Transform2_F32
@Generated("boofcv.alg.distort.brown.AddBrownPtoN_F64")
public class AddBrownPtoN_F32
extends Object
implements Point2Transform2_F32
Given an undistorted pixel coordinate, compute the distorted normalized image coordinate.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
compute
(float x, float y, Point2D_F32 out) Adds radial distortionCreates a copy of this transform for use in concurrent application.setDistortion
(@org.jetbrains.annotations.Nullable double[] radial, double t1, double t2) Specify intrinsic camera parameterssetK
(double fx, double fy, double skew, double cx, double cy) Specify camera calibration parameters
-
Field Details
-
params
-
-
Constructor Details
-
AddBrownPtoN_F32
public AddBrownPtoN_F32()
-
-
Method Details
-
setK
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 AddBrownPtoN_F32 setDistortion(@Nullable @org.jetbrains.annotations.Nullable double[] radial, double t1, double t2) Specify intrinsic camera parameters- Parameters:
radial
- Radial distortion parameters
-
compute
Adds radial distortion- Specified by:
compute
in interfacePoint2Transform2_F32
- Parameters:
x
- Undistorted x-coordinate pixely
- Undistorted y-coordinate pixelout
- Distorted pixel 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
-