Class SelectCorrelationWta_F32_U8
java.lang.Object
boofcv.alg.disparity.block.SelectDisparityBasicWta<float[],GrayU8>
boofcv.alg.disparity.block.select.SelectCorrelationWta_F32_U8
- All Implemented Interfaces:
DisparitySelect<float[],
,GrayU8> Compare_F32
public class SelectCorrelationWta_F32_U8
extends SelectDisparityBasicWta<float[],GrayU8>
implements Compare_F32
Implementation of SelectDisparityBasicWta
for scores of type F32 and correlation. Since it's correlation
it pixels the score with the highest value.
-
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.void
configure
(GrayU8 imageDisparity, @Nullable GrayF32 imageScore, int disparityMin, int disparityMax, int radiusX) Specifies the output and algorithmic configuration.Type of image the disparity isvoid
process
(int row, float[] blockOfScores) Processes the array of scores.Methods inherited from class boofcv.alg.disparity.block.SelectDisparityBasicWta
disparityMaxAtColumnL2R
-
Constructor Details
-
SelectCorrelationWta_F32_U8
public SelectCorrelationWta_F32_U8()
-
-
Method Details
-
configure
public void configure(GrayU8 imageDisparity, @Nullable @Nullable GrayF32 imageScore, int disparityMin, int disparityMax, int radiusX) Description copied from interface:DisparitySelect
Specifies the output and algorithmic configuration.- Specified by:
configure
in interfaceDisparitySelect<float[],
GrayU8> - Overrides:
configure
in classSelectDisparityBasicWta<float[],
GrayU8> - Parameters:
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 computeddisparityMax
- Maximum disparity that is calculatedradiusX
- Radius of the rectangular region being matched along x-axis.
-
process
public void process(int row, float[] blockOfScores) 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.blockOfScores
- 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
-