- All Known Implementing Classes:
public interface DisparitySelect<Array,T extends ImageGray>
Selects the best disparity given the set of scores calculated by
DisparityBlockMatch. 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 disparityMin. If a pixel is found to be invalid and no disparity found then its value is set to (disparityMax-disparityMin) + 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 Description
()Creates a copy with separate working space.
T imageDisparity, int disparityMin, int disparityMax, int radiusX)(Specifies the output and algorithmic configuration.
()Type of image the disparity is
Array scoresArray)(int row,Processes the array of scores.
configurevoid configure(T imageDisparity, int disparityMin, int disparityMax, int radiusX)Specifies the output and algorithmic configuration.
imageDisparity- Output disparity image.
disparityMin- Minimum disparity that can be computed
disparityMax- Maximum disparity that is calculated
radiusX- Radius of the rectangular region being matched along x-axis.
processvoid process(int row, Array scoresArray)Processes the array of scores. The score format is described in
DisparityBlockMatch. 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)
concurrentCopyCreates a copy with separate working space. Used for concurrency. Data structures which are threadsafe can be shared
getDisparityTypeType of image the disparity is
- Image type for disparity