Class SelectSparseErrorBasicWta_S32
java.lang.Object
boofcv.alg.disparity.block.select.SelectSparseErrorBasicWta_S32
- All Implemented Interfaces:
DisparitySparseSelect<int[]>
Selects the disparity with the lowest score with no additional validation. Lack of validation speeds up the code at the cost of reduced signal to noise ratio. This strategy of selecting the lowest score is also known as Winner Take All (WTA).
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
Returns the found disparityboolean
select
(DisparitySparseRectifiedScoreBM<int[], ?> scorer, int x, int y) Examines disparity scores and looks for the best correspondence.
-
Constructor Details
-
SelectSparseErrorBasicWta_S32
public SelectSparseErrorBasicWta_S32()
-
-
Method Details
-
select
Description copied from interface:DisparitySparseSelect
Examines disparity scores and looks for the best correspondence. If no correspondence can be found then false is returned.- Specified by:
select
in interfaceDisparitySparseSelect<int[]>
- Parameters:
scorer
- Computes the disparity scorex
- Pixel coordinate x-axisy
- Pixel coordinate y-axis- Returns:
- true if a valid correspondence was found
-
getDisparity
public double getDisparity()Description copied from interface:DisparitySparseSelect
Returns the found disparity- Specified by:
getDisparity
in interfaceDisparitySparseSelect<int[]>
- Returns:
- disparity
-