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 Type
    Method
    Description
    double
    Returns the found disparity
    boolean
    Examines disparity scores and looks for the best correspondence.
  • Method Details

    • select

      boolean select(DisparitySparseRectifiedScoreBM<ArrayType,?> scorer, int x, int y)
      Examines disparity scores and looks for the best correspondence. If no correspondence can be found then false is returned.
      Parameters:
      scorer - Computes the disparity score
      x - Pixel coordinate x-axis
      y - Pixel coordinate y-axis
      Returns:
      true if a valid correspondence was found
    • getDisparity

      double getDisparity()
      Returns the found disparity
      Returns:
      disparity