Class CalibrateStereoPlanar
- java.lang.Object
-
- boofcv.abst.geo.calibration.CalibrateStereoPlanar
-
public class CalibrateStereoPlanar extends java.lang.ObjectGiven a sequence of observations from a stereo camera compute the intrinsic calibration of each camera and the extrinsic calibration between the two cameras. A Planar calibration grid is used, which must be completely visible in all images.
Calibration is performed by first independently determining the intrinsic parameters of each camera as well as their extrinsic parameters relative to the calibration grid. Then the extrinsic parameters between the two cameras is found by creating two point clouds composed of the calibration points in each camera's view. Then the rigid body motion is found which transforms one point cloud into the other.
See comments in
CalibrateMonoPlanarabout when the y-axis should be inverted.
-
-
Constructor Summary
Constructors Constructor and Description CalibrateStereoPlanar(CalibrationDetector detector)Configures stereo calibration
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanaddPair(GrayF32 left, GrayF32 right)Adds a pair of images that observed the same target.voidconfigure(boolean assumeZeroSkew, int numRadialParam, boolean includeTangential)Specify calibration assumptions.CalibrateMonoPlanargetCalibLeft()CalibrateMonoPlanargetCalibRight()voidprintStatistics()StereoParametersprocess()Compute stereo calibration parametersvoidreset()Puts the class into its initial state.
-
-
-
Constructor Detail
-
CalibrateStereoPlanar
public CalibrateStereoPlanar(CalibrationDetector detector)
Configures stereo calibration- Parameters:
detector- Target detection algorithm.
-
-
Method Detail
-
reset
public void reset()
Puts the class into its initial state.
-
configure
public void configure(boolean assumeZeroSkew, int numRadialParam, boolean includeTangential)Specify calibration assumptions.- Parameters:
assumeZeroSkew- If true zero skew is assumed.numRadialParam- Number of radial parametersincludeTangential- If true it will estimate tangential distortion parameters.
-
addPair
public boolean addPair(GrayF32 left, GrayF32 right)
Adds a pair of images that observed the same target.- Parameters:
left- Image of left target.right- Image of right target.
-
process
public StereoParameters process()
Compute stereo calibration parameters- Returns:
- Stereo calibration parameters
-
getCalibLeft
public CalibrateMonoPlanar getCalibLeft()
-
getCalibRight
public CalibrateMonoPlanar getCalibRight()
-
printStatistics
public void printStatistics()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG