public interface DisparitySelect<Array,T extends boofcv.struct.image.ImageGray>
Selects the best disparity given the set of scores calculated by
DisparityScoreSadRect. The scores
are provided as an array of integers or floats. A disparity of zero either means
no match was found or the disparity was in fact zero.
The selected disparity written into the output image is equal to the found disparity minus the minDisparity. If a pixel is found to be invalid and no disparity found then its value is set to (maxDisparity-minDisparity) + 1. The first requirement maximizes the useful storage of the output image and the second provides an unambiguous way to identify invalid pixels.
| Modifier and Type | Method and Description |
|---|---|
void |
configure(T imageDisparity,
int minDisparity,
int maxDisparity,
int radiusX)
Specifies the output and algorithmic configuration.
|
java.lang.Class<T> |
getDisparityType()
Type of image the disparity is
|
void |
process(int row,
Array scoresArray)
Processes the array of scores.
|
void configure(T imageDisparity, int minDisparity, int maxDisparity, int radiusX)
imageDisparity - Output disparity image.minDisparity - Minimum disparity that can be computedmaxDisparity - Maximum disparity that is calculatedradiusX - Radius of the rectangular region being matched along x-axis.void process(int row,
Array scoresArray)
DisparityScoreSadRect. The results are written directly into the
disparity image passed to it in configure(ImageGray, int, int, int).row - Image row the scores are from.scoresArray - Array containing scores. (int[] or float[])java.lang.Class<T> getDisparityType()