Package boofcv.alg.feature.associate
Class StereoConsistencyCheck
java.lang.Object
boofcv.alg.feature.associate.StereoConsistencyCheck
- Direct Known Subclasses:
AssociateStereo2D
Checks to see if two observations from a left to right stereo camera are consistent. Observations are converted
to rectified coordinates. They are then checked to see if their y-axis are the same to within tolerance and that
the left x-coordinate is larger than the right x-coordinate, to within tolerance.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
checkPixel
(Point2D_F64 left, Point2D_F64 right) Checks to see if the observations from the left and right camera are consistent.boolean
checkRectified
(Point2D_F64 left, Point2D_F64 right) Checks to see if the observations from the left and right camera are consistent.void
setCalibration
(StereoParameters param)
-
Field Details
-
leftImageToRect
-
rightImageToRect
-
-
Constructor Details
-
StereoConsistencyCheck
public StereoConsistencyCheck(double toleranceX, double toleranceY)
-
-
Method Details
-
setCalibration
-
checkPixel
Checks to see if the observations from the left and right camera are consistent. Observations are assumed to be in the original image pixel coordinates.- Parameters:
left
- Left camera observation in original pixelsright
- Right camera observation in original pixels- Returns:
- true for consistent
-
checkRectified
Checks to see if the observations from the left and right camera are consistent. Observations are assumed to be in the rectified image pixel coordinates.- Parameters:
left
- Left camera observation in rectified pixelsright
- Right camera observation in rectified pixels- Returns:
- true for consistent
-