Package boofcv.alg.feature.associate
Class StereoConsistencyCheck
- java.lang.Object
-
- boofcv.alg.feature.associate.StereoConsistencyCheck
-
- Direct Known Subclasses:
AssociateStereo2D
public class StereoConsistencyCheck extends java.lang.ObjectChecks 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
Fields Modifier and Type Field Description protected boofcv.struct.distort.Point2Transform2_F64leftImageToRectprotected boofcv.struct.distort.Point2Transform2_F64rightImageToRect
-
Constructor Summary
Constructors Constructor Description StereoConsistencyCheck(double toleranceX, double toleranceY)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckPixel(georegression.struct.point.Point2D_F64 left, georegression.struct.point.Point2D_F64 right)Checks to see if the observations from the left and right camera are consistent.booleancheckRectified(georegression.struct.point.Point2D_F64 left, georegression.struct.point.Point2D_F64 right)Checks to see if the observations from the left and right camera are consistent.voidsetCalibration(boofcv.struct.calib.StereoParameters param)
-
-
-
Method Detail
-
setCalibration
public void setCalibration(boofcv.struct.calib.StereoParameters param)
-
checkPixel
public boolean checkPixel(georegression.struct.point.Point2D_F64 left, georegression.struct.point.Point2D_F64 right)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
public boolean checkRectified(georegression.struct.point.Point2D_F64 left, georegression.struct.point.Point2D_F64 right)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
-
-