Class BlockRowScore.ArrayF32<T extends ImageBase<T>>

java.lang.Object
boofcv.alg.disparity.block.BlockRowScore.ArrayF32<T>
All Implemented Interfaces:
BlockRowScore<T,​float[],​float[]>
Direct Known Subclasses:
BlockRowScore.ArrayS32_BF32
Enclosing interface:
BlockRowScore<T extends ImageBase<T>,​ScoreArray,​ImageData>

public abstract static class BlockRowScore.ArrayF32<T extends ImageBase<T>>
extends Object
implements BlockRowScore<T,​float[],​float[]>
  • Constructor Details

    • ArrayF32

      public ArrayF32()
  • Method Details

    • setInput

      public void setInput​(T left, T right)
      Description copied from interface: BlockRowScore
      Specifies the input images
      Specified by:
      setInput in interface BlockRowScore<T extends ImageBase<T>,​float[],​float[]>
      Parameters:
      left - left image
      right - right image
    • scoreRow

      public void scoreRow​(int row, float[] leftRow, float[] rightRow, float[] scores, int disparityMin, int disparityMax, int regionWidth, float[] elementScore)
      Description copied from interface: BlockRowScore
      For a given disparity, the score for each region on the left share many components in common. Because of this the scores are computed with disparity being the outer most loop
      Specified by:
      scoreRow in interface BlockRowScore<T extends ImageBase<T>,​float[],​float[]>
      Parameters:
      row - Image row being examined
      scores - Storage for disparity scores.
      disparityMin - Minimum disparity to consider
      disparityMax - Maximum disparity to consider
      regionWidth - Size of the sample region's width
      elementScore - Storage for scores of individual pixels
    • normalizeRegionScores

      public void normalizeRegionScores​(int row, float[] scores, int disparityMin, int disparityMax, int regionWidth, int regionHeight, float[] scoresNorm)
      Description copied from interface: BlockRowScore
      Additional normalization that's applied after the score for a region is known. Currently only used by BlockRowScoreNcc.
      Specified by:
      normalizeRegionScores in interface BlockRowScore<T extends ImageBase<T>,​float[],​float[]>
      Parameters:
      row - Image row being examined
      scores - Storage for disparity scores.
      disparityMin - Minimum disparity to consider
      disparityMax - Maximum disparity to consider
      regionWidth - Size of the sample region's width
      regionHeight - Size of the sample region's height
    • normalizeScore

      public void normalizeScore​(int row, int colLeft, int colRight, int numCols, int regionWidth, int regionHeight, float[] scores, int indexScores, float[] scoresNorm)
      Description copied from interface: BlockRowScore
      Applies normalization to a single row
      Specified by:
      normalizeScore in interface BlockRowScore<T extends ImageBase<T>,​float[],​float[]>
      Parameters:
      row - Row that is being normalized
      colLeft - column in left image
      colRight - column in right image
      numCols - number of columns
      regionWidth - width of the region
      regionHeight - height of the region
      scores - array with scores that are to be normalized
      indexScores - first index in scores that is to be normalized
    • getMaxPerPixelError

      public int getMaxPerPixelError()
      Description copied from interface: BlockRowScore
      Returns the maximum error each pixel in the region can contribute RuntimeException should be thrown.
      Specified by:
      getMaxPerPixelError in interface BlockRowScore<T extends ImageBase<T>,​float[],​float[]>
      Returns:
      Largest possible error for the region.