Class SelectErrorBasicWta_S32_U8
java.lang.Object
boofcv.alg.disparity.block.SelectDisparityBasicWta<int[],GrayU8>
boofcv.alg.disparity.block.select.SelectErrorBasicWta_S32_U8
- All Implemented Interfaces:
DisparitySelect<int[],
,GrayU8> Compare_S32
public class SelectErrorBasicWta_S32_U8
extends SelectDisparityBasicWta<int[],GrayU8>
implements Compare_S32
Implementation of SelectDisparityBasicWta
for scores of type S32.
-
Field Summary
Fields inherited from class boofcv.alg.disparity.block.SelectDisparityBasicWta
disparityMax, disparityMin, disparityRange, funcSaveScore, imageDisparity, imageScore, imageWidth, radiusX, regionWidth
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
compare
(int scoreA, int scoreB) 1 = scoreA is better than scoreB 0 = scoreA is equivalent than scoreB -1 = scoreA is worse than scoreBDisparitySelect<int[],
GrayU8> Creates a copy with separate working space.Type of image the disparity isvoid
process
(int row, int[] scores) Processes the array of scores.Methods inherited from class boofcv.alg.disparity.block.SelectDisparityBasicWta
configure, disparityMaxAtColumnL2R
-
Constructor Details
-
SelectErrorBasicWta_S32_U8
public SelectErrorBasicWta_S32_U8()
-
-
Method Details
-
process
public void process(int row, int[] scores) Description copied from interface:DisparitySelect
Processes the array of scores. The score format is described inDisparityBlockMatch
. The results are written directly into the disparity image passed to it inDisparitySelect.configure(T, boofcv.struct.image.GrayF32, int, int, int)
.- Specified by:
process
in interfaceDisparitySelect<int[],
GrayU8> - Parameters:
row
- Image row the scores are from.scores
- Array containing scores. (int[] or float[])
-
concurrentCopy
Description copied from interface:DisparitySelect
Creates a copy with separate working space. Used for concurrency. Data structures which are threadsafe can be shared- Specified by:
concurrentCopy
in interfaceDisparitySelect<int[],
GrayU8>
-
getDisparityType
Description copied from interface:DisparitySelect
Type of image the disparity is- Specified by:
getDisparityType
in interfaceDisparitySelect<int[],
GrayU8> - Returns:
- Image type for disparity
-
compare
public int compare(int scoreA, int scoreB) Description copied from interface:Compare_S32
- 1 = scoreA is better than scoreB
- 0 = scoreA is equivalent than scoreB
- -1 = scoreA is worse than scoreB
- Specified by:
compare
in interfaceCompare_S32
-