boofcv.alg.feature.disparity
Interface DisparitySelect<Array,T extends ImageGray>
-
- All Known Implementing Classes:
- ImplSelectRectBasicWta_F32_U8, ImplSelectRectBasicWta_S32_U8, ImplSelectRectStandard_F32_U8, ImplSelectRectStandard_S32_U8, ImplSelectRectStandardBase_F32, ImplSelectRectStandardBase_S32, SelectRectBasicWta, SelectRectStandard, SelectRectSubpixel.F32_F32, SelectRectSubpixel.S32_F32
public interface DisparitySelect<Array,T extends 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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description voidconfigure(T imageDisparity, int minDisparity, int maxDisparity, int radiusX)Specifies the output and algorithmic configuration.java.lang.Class<T>getDisparityType()Type of image the disparity isvoidprocess(int row, Array scoresArray)Processes the array of scores.
-
-
-
Method Detail
-
configure
void configure(T imageDisparity, int minDisparity, int maxDisparity, int radiusX)
Specifies the output and algorithmic configuration.- Parameters:
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.
-
process
void process(int row, Array scoresArray)Processes the array of scores. The score format is described inDisparityScoreSadRect. The results are written directly into the disparity image passed to it inconfigure(ImageGray, int, int, int).- Parameters:
row- Image row the scores are from.scoresArray- Array containing scores. (int[] or float[])
-
getDisparityType
java.lang.Class<T> getDisparityType()
Type of image the disparity is- Returns:
- Image type for disparity
-
-
DataMelt 3.0 © DataMelt by jWork.ORG