Class SelectSparseCorrelationWithChecksWta_F32

java.lang.Object
boofcv.alg.disparity.block.SelectSparseStandardWta<float[]>
boofcv.alg.disparity.block.select.SelectSparseCorrelationWithChecksWta_F32
All Implemented Interfaces:
DisparitySparseSelect<float[]>
Direct Known Subclasses:
SelectSparseCorrelationSubpixel.F32

public class SelectSparseCorrelationWithChecksWta_F32 extends SelectSparseStandardWta<float[]>
Selects the best correlation score with sanity checks.
  • Field Details

    • textureThreshold

      protected float textureThreshold
  • Constructor Details

    • SelectSparseCorrelationWithChecksWta_F32

      public SelectSparseCorrelationWithChecksWta_F32(double texture, int tolRightToLeft)
  • Method Details

    • setTexture

      protected void setTexture(double texture)
      Description copied from class: SelectSparseStandardWta
      Sets the texture threshold.
      Specified by:
      setTexture in class SelectSparseStandardWta<float[]>
      Parameters:
      texture - Texture threshold.
    • select

      public boolean select(DisparitySparseRectifiedScoreBM<float[],?> scorer, int x, int y)
      Description copied from interface: DisparitySparseSelect
      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