boofcv.alg.feature.disparity.impl
Class ImplSelectSparseBasicWta_F32
- java.lang.Object
-
- boofcv.alg.feature.disparity.impl.ImplSelectSparseBasicWta_F32
-
- All Implemented Interfaces:
- DisparitySparseSelect<float[]>
public class ImplSelectSparseBasicWta_F32 extends java.lang.Object implements DisparitySparseSelect<float[]>
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
Constructors Constructor and Description ImplSelectSparseBasicWta_F32()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublegetDisparity()Returns the found disparitybooleanselect(float[] scores, int maxDisparity)Examines disparity scores and looks for the best correspondence.
-
-
-
Method Detail
-
select
public boolean select(float[] scores, int maxDisparity)Description copied from interface:DisparitySparseSelectExamines disparity scores and looks for the best correspondence. If no correspondence can be found then false is returned.- Specified by:
selectin interfaceDisparitySparseSelect<float[]>- Parameters:
scores- Set of disparity scores.maxDisparity- Maximum allowed disparity.- Returns:
- true if a valid correspondence was found
-
getDisparity
public double getDisparity()
Description copied from interface:DisparitySparseSelectReturns the found disparity- Specified by:
getDisparityin interfaceDisparitySparseSelect<float[]>- Returns:
- disparity
-
-
DataMelt 3.0 © DataMelt by jWork.ORG