Class SelectErrorWithChecks_S32<DI extends ImageGray<DI>>

All Implemented Interfaces:
DisparitySelect<int[],​DI>, Compare_S32
Direct Known Subclasses:
SelectErrorSubpixel.S32_F32, SelectErrorWithChecks_S32.DispU8

public abstract class SelectErrorWithChecks_S32<DI extends ImageGray<DI>>
extends SelectDisparityWithChecksWta<int[],​DI>
implements Compare_S32

Implementation of SelectDisparityWithChecksWta as a base class for arrays of type S32. Extend for different output image types.

  • Field Details

    • textureThreshold

      protected int textureThreshold
    • discretizer

      protected static final int discretizer
      See Also:
      Constant Field Values
  • Constructor Details

    • SelectErrorWithChecks_S32

      protected SelectErrorWithChecks_S32​(int maxError, int rightToLeftTolerance, double texture, Class<DI> disparityType)
    • SelectErrorWithChecks_S32

      protected SelectErrorWithChecks_S32​(SelectErrorWithChecks_S32<DI> original)
  • Method Details

    • setTexture

      public void setTexture​(double threshold)
      Specified by:
      setTexture in class SelectDisparityWithChecksWta<int[],​DI extends ImageGray<DI>>
    • configure

      public void configure​(DI imageDisparity, int disparityMin, int disparityMax, int radiusX)
      Description copied from interface: DisparitySelect
      Specifies the output and algorithmic configuration.
      Specified by:
      configure in interface DisparitySelect<int[],​DI extends ImageGray<DI>>
      configure in class SelectDisparityWithChecksWta<int[],​DI extends ImageGray<DI>>
      imageDisparity - Output disparity image.
      disparityMin - Minimum disparity that can be computed
      disparityMax - Maximum disparity that is calculated
      radiusX - Radius of the rectangular region being matched along x-axis.
    • process

      public void process​(int row, int[] scores)
      Description copied from interface: DisparitySelect
      Processes the array of scores. The score format is described in DisparityBlockMatch. The results are written directly into the disparity image passed to it in DisparitySelect.configure(ImageGray, int, int, int).
      Specified by:
      process in interface DisparitySelect<int[],​DI extends ImageGray<DI>>
      row - Image row the scores are from.
      scores - Array containing scores. (int[] or float[])
    • compare

      public int compare​(int scoreA, int scoreB)
      Description copied from interface: Compare_S32
      • 1 = scoreA is better than scoreB
      • 0 = scoreA is equivalent than scoreB
      • -1 = scoreA is worse than scoreB
      Specified by:
      compare in interface Compare_S32