public abstract class SelectRectBasicWta<Array,Disparity extends boofcv.struct.image.ImageGray> extends java.lang.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.
| Modifier and Type | Field and Description |
|---|---|
protected Disparity |
imageDisparity |
protected int |
imageWidth |
protected int |
maxDisparity |
protected int |
minDisparity |
protected int |
radiusX |
protected int |
rangeDisparity |
protected int |
regionWidth |
| Constructor and Description |
|---|
SelectRectBasicWta() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(Disparity imageDisparity,
int minDisparity,
int maxDisparity,
int radiusX)
Specifies the output and algorithmic configuration.
|
protected int |
maxDisparityAtColumnL2R(int col)
Returns the maximum allowed disparity for a particular column in left to right direction,
as limited by the image border.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDisparityType, processprotected Disparity extends boofcv.struct.image.ImageGray imageDisparity
protected int minDisparity
protected int maxDisparity
protected int rangeDisparity
protected int radiusX
protected int regionWidth
protected int imageWidth
public void configure(Disparity imageDisparity, int minDisparity, int maxDisparity, int radiusX)
DisparitySelectconfigure in interface DisparitySelect<Array,Disparity extends boofcv.struct.image.ImageGray>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.protected int maxDisparityAtColumnL2R(int col)