Package boofcv.alg.disparity.block
Class SelectDisparityBasicWta<Array,Disparity extends ImageGray>
java.lang.Object
boofcv.alg.disparity.block.SelectDisparityBasicWta<Array,Disparity>
- All Implemented Interfaces:
DisparitySelect<Array,
Disparity>
- Direct Known Subclasses:
SelectCorrelationWta_F32_U8
,SelectErrorBasicWta_F32_U8
,SelectErrorBasicWta_S32_U8
public abstract class SelectDisparityBasicWta<Array,Disparity extends ImageGray>
extends Object
implements DisparitySelect<Array,Disparity>
Selects the optimal disparity given a set of scores using a Winner Take All (WTA) strategy without any validation. In other words, it simply selects the region with the smallest error as the disparity. Tends to be significantly faster than when validation is employed but produces many more poor results.
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
protected int
protected int
protected SelectDisparityWithChecksWta.SaveScore
protected Disparity
protected @Nullable GrayF32
protected int
protected int
protected int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(Disparity imageDisparity, @Nullable GrayF32 imageScore, int disparityMin, int disparityMax, int radiusX) Specifies the output and algorithmic configuration.protected int
disparityMaxAtColumnL2R
(int col) Returns the maximum allowed disparity for a particular column in left to right direction, as limited by the image border.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface boofcv.alg.disparity.block.DisparitySelect
concurrentCopy, getDisparityType, process
-
Field Details
-
imageDisparity
-
imageScore
-
disparityMin
protected int disparityMin -
disparityMax
protected int disparityMax -
disparityRange
protected int disparityRange -
radiusX
protected int radiusX -
regionWidth
protected int regionWidth -
imageWidth
protected int imageWidth -
funcSaveScore
-
-
Constructor Details
-
SelectDisparityBasicWta
public SelectDisparityBasicWta()
-
-
Method Details
-
configure
public void configure(Disparity 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<Array,
Disparity extends ImageGray> - 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.
-
disparityMaxAtColumnL2R
protected int disparityMaxAtColumnL2R(int col) Returns the maximum allowed disparity for a particular column in left to right direction, as limited by the image border.
-