Class SelectErrorBasicWta_F32_U8
java.lang.Object
boofcv.alg.disparity.block.SelectDisparityBasicWta<float[],GrayU8>
boofcv.alg.disparity.block.select.SelectErrorBasicWta_F32_U8
- All Implemented Interfaces:
DisparitySelect<float[],
,GrayU8> Compare_F32
public class SelectErrorBasicWta_F32_U8
extends SelectDisparityBasicWta<float[],GrayU8>
implements Compare_F32
Implementation of SelectDisparityBasicWta
for scores of type F32.
-
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
(float scoreA, float scoreB) 1 = scoreA is better than scoreB 0 = scoreA is equivalent than scoreB -1 = scoreA is worse than scoreBDisparitySelect<float[],
GrayU8> Creates a copy with separate working space.Type of image the disparity isvoid
process
(int row, float[] scores) Processes the array of scores.Methods inherited from class boofcv.alg.disparity.block.SelectDisparityBasicWta
configure, disparityMaxAtColumnL2R
-
Constructor Details
-
SelectErrorBasicWta_F32_U8
public SelectErrorBasicWta_F32_U8()
-
-
Method Details
-
process
public void process(int row, float[] 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<float[],
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<float[],
GrayU8>
-
getDisparityType
Description copied from interface:DisparitySelect
Type of image the disparity is- Specified by:
getDisparityType
in interfaceDisparitySelect<float[],
GrayU8> - Returns:
- Image type for disparity
-
compare
public int compare(float scoreA, float scoreB) Description copied from interface:Compare_F32
- 1 = scoreA is better than scoreB
- 0 = scoreA is equivalent than scoreB
- -1 = scoreA is worse than scoreB
- Specified by:
compare
in interfaceCompare_F32
-