- All Known Implementing Classes:
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.
Method SummaryModifier and TypeMethodDescriptionCreates a copy with separate working space.
(T imageDisparity, @Nullable GrayF32 imageScore, int disparityMin, int disparityMax, int radiusX)Specifies the output and algorithmic configuration.Type of image the disparity is
voidProcesses the array of scores.
(T imageDisparity, @Nullable @Nullable GrayF32 imageScore, int disparityMin, int disparityMax, int radiusX)Specifies the output and algorithmic configuration.
imageDisparity- Output disparity image.
imageScore- If not null, then the score for best fit disparity will be stored here.
disparityMin- Minimum disparity that can be computed
disparityMax- Maximum disparity that is calculated
radiusX- Radius of the rectangular region being matched along x-axis.
(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(T, boofcv.struct.image.GrayF32, 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