Package boofcv.struct.calib
Class StereoParameters
- java.lang.Object
-
- boofcv.struct.calib.StereoParameters
-
- All Implemented Interfaces:
java.io.Serializable
public class StereoParameters extends java.lang.Object implements java.io.SerializableCalibration parameters for a stereo camera pair. Includes intrinsic and extrinsic. The baseline between the two cameras is specified as a rigid body
Se3_F64transform from the right to left camera.NOTE: When generated during camera calibration, the distance units found in 'rightToLeft' will be in the units that the calibration target size was specified in.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description CameraPinholeBrownleftintrinsic camera parameters of left cameraCameraPinholeBrownrightintrinsic camera parameters of right camerageoregression.struct.se.Se3_F64rightToLefttransform from left camera to right camerastatic longserialVersionUID
-
Constructor Summary
Constructors Constructor Description StereoParameters()StereoParameters(CameraPinholeBrown left, CameraPinholeBrown right, georegression.struct.se.Se3_F64 rightToLeft)StereoParameters(StereoParameters param)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetBaseline()Returns the distance between the optical center of each cameraCameraPinholeBrowngetLeft()CameraPinholeBrowngetRight()georegression.struct.se.Se3_F64getRightToLeft()booleanisRectified(double tol)Checks to see if the parameters define a rectified stereo pairvoidprint()voidset(StereoParameters src)Makes 'this' identical to 'src'.voidsetLeft(CameraPinholeBrown left)voidsetRight(CameraPinholeBrown right)voidsetRightToLeft(georegression.struct.se.Se3_F64 rightToLeft)
-
-
-
Field Detail
-
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
-
left
public CameraPinholeBrown left
intrinsic camera parameters of left camera
-
right
public CameraPinholeBrown right
intrinsic camera parameters of right camera
-
rightToLeft
public georegression.struct.se.Se3_F64 rightToLeft
transform from left camera to right camera
-
-
Constructor Detail
-
StereoParameters
public StereoParameters(StereoParameters param)
-
StereoParameters
public StereoParameters(CameraPinholeBrown left, CameraPinholeBrown right, georegression.struct.se.Se3_F64 rightToLeft)
-
StereoParameters
public StereoParameters()
-
-
Method Detail
-
getLeft
public CameraPinholeBrown getLeft()
-
setLeft
public void setLeft(CameraPinholeBrown left)
-
getRightToLeft
public georegression.struct.se.Se3_F64 getRightToLeft()
-
setRightToLeft
public void setRightToLeft(georegression.struct.se.Se3_F64 rightToLeft)
-
getRight
public CameraPinholeBrown getRight()
-
setRight
public void setRight(CameraPinholeBrown right)
-
getBaseline
public double getBaseline()
Returns the distance between the optical center of each camera
-
isRectified
public boolean isRectified(double tol)
Checks to see if the parameters define a rectified stereo pair- Parameters:
tol- Numeric tolerance. Try 1e-7- Returns:
- if true then it's rectified
-
set
public void set(StereoParameters src)
Makes 'this' identical to 'src'.- Parameters:
src- The set of parameters that is to be copied.
-
print
public void print()
-
-