Class SelectCorrelationWta_F32_U8

java.lang.Object
boofcv.alg.disparity.block.SelectDisparityBasicWta<float[],GrayU8>
boofcv.alg.disparity.block.select.SelectCorrelationWta_F32_U8
All Implemented Interfaces:
DisparitySelect<float[],GrayU8>, Compare_F32

public class SelectCorrelationWta_F32_U8 extends SelectDisparityBasicWta<float[],GrayU8> implements Compare_F32

Implementation of SelectDisparityBasicWta for scores of type F32 and correlation. Since it's correlation it pixels the score with the highest value.

  • Constructor Details

    • SelectCorrelationWta_F32_U8

      public SelectCorrelationWta_F32_U8()
  • Method Details

    • configure

      public void configure(GrayU8 imageDisparity, @Nullable @Nullable GrayF32 imageScore, int disparityMin, int disparityMax, int radiusX)
      Description copied from interface: DisparitySelect
      Specifies the output and algorithmic configuration.
      Specified by:
      configure in interface DisparitySelect<float[],GrayU8>
      Overrides:
      configure in class SelectDisparityBasicWta<float[],GrayU8>
      Parameters:
      imageDisparity - Output disparity image.
      imageScore - If not null, then the score for best fit disparity will be stored here.
      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, float[] blockOfScores)
      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(T, boofcv.struct.image.GrayF32, int, int, int).
      Specified by:
      process in interface DisparitySelect<float[],GrayU8>
      Parameters:
      row - Image row the scores are from.
      blockOfScores - Array containing scores. (int[] or float[])
    • concurrentCopy

      public DisparitySelect<float[],GrayU8> concurrentCopy()
      Description copied from interface: DisparitySelect
      Creates a copy with separate working space. Used for concurrency. Data structures which are threadsafe can be shared
      Specified by:
      concurrentCopy in interface DisparitySelect<float[],GrayU8>
    • getDisparityType

      public Class<GrayU8> getDisparityType()
      Description copied from interface: DisparitySelect
      Type of image the disparity is
      Specified by:
      getDisparityType in interface DisparitySelect<float[],GrayU8>
      Returns:
      Image type for disparity
    • compare

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