Package boofcv.alg.disparity.block
Interface DisparitySparseSelect<ArrayType>
- All Known Implementing Classes:
SelectSparseCorrelationSubpixel.F32,SelectSparseCorrelationWithChecksWta_F32,SelectSparseErrorBasicWta_F32,SelectSparseErrorBasicWta_S32,SelectSparseErrorSubpixel.F32,SelectSparseErrorSubpixel.S32,SelectSparseErrorWithChecksWta_F32,SelectSparseErrorWithChecksWta_S32,SelectSparseStandardWta
public interface DisparitySparseSelect<ArrayType>
Computes the disparity given disparity score calculations provided by
DisparitySparseRectifiedScoreBM. Array specifies the
type of primitive array that stores the scores that it processes,-
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the found disparitybooleanselect(DisparitySparseRectifiedScoreBM<ArrayType, ?> scorer, int x, int y) Examines disparity scores and looks for the best correspondence.
-
Method Details
-
select
Examines disparity scores and looks for the best correspondence. If no correspondence can be found then false is returned.- Parameters:
scorer- Computes the disparity scorex- Pixel coordinate x-axisy- Pixel coordinate y-axis- Returns:
- true if a valid correspondence was found
-
getDisparity
double getDisparity()Returns the found disparity- Returns:
- disparity
-