Package boofcv.alg.sfm
Class StereoProcessingBase<T extends ImageGray<T>>
java.lang.Object
boofcv.alg.sfm.StereoProcessingBase<T>
- Direct Known Subclasses:
StereoSparse3D
Base class that configures stereo processing. Created distortion for converting image from its input image
into an undistorted rectified image ready for stereo processing.
-
Field Summary
Modifier and TypeFieldDescriptionprotected double
protected double
protected double
protected double
protected double
protected T
protected T
protected Point3D_F64
protected DMatrixRMaj
protected DMatrixRMaj
protected DMatrixRMaj
protected DMatrixRMaj
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
computeHomo3D
(double x, double y, Point3D_F64 pointLeft) Given a coordinate of a point in the left rectified frame, compute the point's 3D coordinate in the camera's reference frame in homogeneous coordinates.Rectified left imageRectified right imagegetRect1()
getRect2()
getRectK()
Intrinsic camera calibration matrix for both cameras after rectificationvoid
Initializes stereo processing.void
setCalibration
(StereoParameters stereoParam) Specifies stereo parametersvoid
Sets the input images.
-
Field Details
-
imageLeftRect
-
imageRightRect
-
rect1
-
rect2
-
rectK
-
rectR
-
pointRect
-
baseline
protected double baseline -
cx
protected double cx -
cy
protected double cy -
fx
protected double fx -
fy
protected double fy
-
-
Constructor Details
-
StereoProcessingBase
Declares internal data structures- Parameters:
imageType
- Input image type
-
-
Method Details
-
setCalibration
Specifies stereo parameters- Parameters:
stereoParam
- stereo parameters
-
computeHomo3D
Given a coordinate of a point in the left rectified frame, compute the point's 3D coordinate in the camera's reference frame in homogeneous coordinates. To convert the coordinate into normal 3D, divide each element by the disparity.- Parameters:
x
- x-coordinate of pixel in rectified left imagey
- y-coordinate of pixel in rectified left imagepointLeft
- Storage for 3D coordinate of point in homogeneous coordinates. w = disparity
-
setImages
Sets the input images. Processing is delayed untilinitialize()
has been called.- Parameters:
leftImage
- Left imagerightImage
- Right image
-
initialize
public void initialize()Initializes stereo processing. -
getImageLeftRect
Rectified left image -
getImageRightRect
Rectified right image -
getRectK
Intrinsic camera calibration matrix for both cameras after rectification- Returns:
- camera calibration matrix
-
getRect1
-
getRect2
-