Package boofcv.struct.calib
Class CameraPinholeBrown
- java.lang.Object
-
- boofcv.struct.calib.CameraModel
-
- boofcv.struct.calib.CameraPinhole
-
- boofcv.struct.calib.CameraPinholeBrown
-
- All Implemented Interfaces:
java.io.Serializable
public class CameraPinholeBrown extends CameraPinhole implements java.io.Serializable
Adds radial and tangential distortion to the intrinsic parameters of a
pinhole camera.Radial and Tangential Distortion:
xd = xn + xn[k1 r2 + ... + kn r2n] + dx
dxu = [ 2t1 u v + t2(r2 + 2u2)]
dxv = [ t1(r2 + 2v2) + 2 t2 u v]
r2 = u2 + v2
where xd is the distorted coordinates, xn=(u,v) is undistorted normalized image coordinates. Pixel coordinates are found x = K*[u;v]- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CameraPinholeBrown()Default constructor.CameraPinholeBrown(double fx, double fy, double skew, double cx, double cy, int width, int height)CameraPinholeBrown(int numRadial)CameraPinholeBrown(CameraPinholeBrown param)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends CameraModel>
TcreateLike()Creates a new camera model with zero values of the same type os this oneCameraPinholeBrownfsetK(double fx, double fy, double skew, double cx, double cy, int width, int height)CameraPinholeBrownfsetRadial(double... radial)CameraPinholeBrownfsetTangental(double t1, double t2)double[]getRadial()doublegetT1()doublegetT2()booleanisDistorted()If true then distortion parameters are specified.booleanisDistorted(double tol)voidprint()voidset(CameraPinhole param)voidsetRadial(double... radial)voidsetT1(double t1)voidsetT2(double t2)java.lang.StringtoString()-
Methods inherited from class boofcv.struct.calib.CameraPinhole
isEquals, isInside, isInside
-
Methods inherited from class boofcv.struct.calib.CameraModel
getHeight, getWidth, setHeight, setWidth
-
-
-
-
Constructor Detail
-
CameraPinholeBrown
public CameraPinholeBrown()
Default constructor. flipY is false and everything else is zero or null.
-
CameraPinholeBrown
public CameraPinholeBrown(int numRadial)
-
CameraPinholeBrown
public CameraPinholeBrown(CameraPinholeBrown param)
-
CameraPinholeBrown
public CameraPinholeBrown(double fx, double fy, double skew, double cx, double cy, int width, int height)
-
-
Method Detail
-
fsetK
public CameraPinholeBrown fsetK(double fx, double fy, double skew, double cx, double cy, int width, int height)
- Overrides:
fsetKin classCameraPinhole
-
fsetRadial
public CameraPinholeBrown fsetRadial(double... radial)
-
fsetTangental
public CameraPinholeBrown fsetTangental(double t1, double t2)
-
set
public void set(CameraPinhole param)
- Overrides:
setin classCameraPinhole
-
isDistorted
public boolean isDistorted()
If true then distortion parameters are specified.
-
isDistorted
public boolean isDistorted(double tol)
-
getRadial
public double[] getRadial()
-
setRadial
public void setRadial(double... radial)
-
getT1
public double getT1()
-
setT1
public void setT1(double t1)
-
getT2
public double getT2()
-
setT2
public void setT2(double t2)
-
print
public void print()
- Overrides:
printin classCameraPinhole
-
toString
public java.lang.String toString()
- Overrides:
toStringin classCameraPinhole
-
createLike
public <T extends CameraModel> T createLike()
Description copied from class:CameraModelCreates a new camera model with zero values of the same type os this one- Overrides:
createLikein classCameraPinhole
-
-