Class SelectSparseStandardWta<ArrayType>

java.lang.Object
boofcv.alg.disparity.block.SelectSparseStandardWta<ArrayType>
All Implemented Interfaces:
DisparitySparseSelect<ArrayType>
Direct Known Subclasses:
SelectSparseCorrelationWithChecksWta_F32, SelectSparseErrorWithChecksWta_F32, SelectSparseErrorWithChecksWta_S32

public abstract class SelectSparseStandardWta<ArrayType> extends Object implements DisparitySparseSelect<ArrayType>

Selects the disparity the smallest error and optionally applies several different types of validation to remove false positives. The two validations it can apply are maxError and texture based. See SelectDisparityWithChecksWta for more details on validation checks.

  • Field Details

    • disparity

      protected double disparity
    • maxError

      protected int maxError
    • tolRightToLeft

      protected int tolRightToLeft
  • Constructor Details

    • SelectSparseStandardWta

      protected SelectSparseStandardWta(int maxError, double texture, int tolRightToLeft)
      Parameters:
      maxError - Maximum allowed error. See comments above.
      texture - Texture threshold. See comments above.
  • Method Details

    • setTexture

      protected abstract void setTexture(double texture)
      Sets the texture threshold.
      Parameters:
      texture - Texture threshold.
    • setValidateRtoL

      protected void setValidateRtoL(int maxError)
      Specifies tolerance for right to left validation.
      Parameters:
      maxError - Maximum number of pixels different for right to left validation. If error is < 0 then disabled.
    • getDisparity

      public double getDisparity()
      Description copied from interface: DisparitySparseSelect
      Returns the found disparity
      Specified by:
      getDisparity in interface DisparitySparseSelect<ArrayType>
      Returns:
      disparity