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 and Description |
---|
ImplSelectSparseBasicWta_F32() |
Modifier and Type | Method and Description |
---|---|
double |
getDisparity()
Returns the found disparity
|
boolean |
select(float[] scores,
int maxDisparity)
Examines disparity scores and looks for the best correspondence.
|
public boolean select(float[] scores, int maxDisparity)
DisparitySparseSelect
select
in interface DisparitySparseSelect<float[]>
scores
- Set of disparity scores.maxDisparity
- Maximum allowed disparity.public double getDisparity()
DisparitySparseSelect
getDisparity
in interface DisparitySparseSelect<float[]>
Copyright © 2011-2012 Peter Abeles