Package boofcv.struct.calib
Class StereoParameters
java.lang.Object
boofcv.struct.calib.StereoParameters
- All Implemented Interfaces:
Serializable
Calibration parameters for a stereo camera pair. Includes intrinsic and extrinsic. The baseline between
the two cameras is specified as a rigid body Se3_F64
transform 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:
-
Field Summary
Modifier and TypeFieldDescriptionintrinsic camera parameters of left cameraintrinsic camera parameters of right cameratransform from left camera to right camerastatic final long
-
Constructor Summary
ConstructorDescriptionStereoParameters
(CameraPinholeBrown left, CameraPinholeBrown right, Se3_F64 right_to_left) StereoParameters
(StereoParameters param) -
Method Summary
Modifier and TypeMethodDescriptiondouble
Returns the distance between the optical center of each cameraboolean
isRectified
(double tol) Checks to see if the parameters define a rectified stereo pairvoid
print()
void
setRightToLeft
(Se3_F64 right_to_left) void
setTo
(StereoParameters src) Makes 'this' identical to 'src'.toString()
-
Field Details
-
serialVersionUID
public static final long serialVersionUID- See Also:
-
left
intrinsic camera parameters of left camera -
right
intrinsic camera parameters of right camera -
right_to_left
transform from left camera to right camera
-
-
Constructor Details
-
StereoParameters
-
StereoParameters
-
StereoParameters
public StereoParameters()
-
-
Method Details
-
getRightToLeft
-
setRightToLeft
-
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
-
setTo
Makes 'this' identical to 'src'.- Parameters:
src
- The set of parameters that is to be copied.
-
toString
-
toStringQuaternion
-
print
public void print()
-