Documentation of 'boofcv.alg.feature.disparity.impl.UtilDisparityScore' Java class
UtilDisparityScore
boofcv.alg.feature.disparity.impl

Class UtilDisparityScore



  • public class UtilDisparityScore
    extends java.lang.Object
    Contains common functions for computing disparity scores.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static void computeScoreRow(GrayF32 left, GrayF32 right, int row, float[] scores, int minDisparity, int maxDisparity, int regionWidth, float[] elementScore)
      Computes disparity score for an entire row.
      static void computeScoreRow(GrayS16 left, GrayS16 right, int row, int[] scores, int minDisparity, int maxDisparity, int regionWidth, int[] elementScore)
      Computes disparity score for an entire row.
      static void computeScoreRow(GrayU8 left, GrayU8 right, int row, int[] scores, int minDisparity, int maxDisparity, int regionWidth, int[] elementScore)
      Computes disparity score for an entire row.
      static void computeScoreRowSad(GrayF32 left, GrayF32 right, int elementMax, int indexLeft, int indexRight, float[] elementScore)
      compute the score for each element all at once to encourage the JVM to optimize and encourage the JVM to optimize this section of code.
      static void computeScoreRowSad(GrayS16 left, GrayS16 right, int elementMax, int indexLeft, int indexRight, int[] elementScore)
      compute the score for each element all at once to encourage the JVM to optimize and encourage the JVM to optimize this section of code.
      static void computeScoreRowSad(GrayU8 left, GrayU8 right, int elementMax, int indexLeft, int indexRight, int[] elementScore)
      compute the score for each element all at once to encourage the JVM to optimize and encourage the JVM to optimize this section of code.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UtilDisparityScore

        public UtilDisparityScore()
    • Method Detail

      • computeScoreRow

        public static void computeScoreRow(GrayU8 left,
                                           GrayU8 right,
                                           int row,
                                           int[] scores,
                                           int minDisparity,
                                           int maxDisparity,
                                           int regionWidth,
                                           int[] elementScore)
        Computes disparity score for an entire row. 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
        Parameters:
        left - left image
        right - Right image
        row - Image row being examined
        scores - Storage for disparity scores.
        minDisparity - Minimum disparity to consider
        maxDisparity - Maximum disparity to consider
        regionWidth - Size of the sample region's width
        elementScore - Storage for scores of individual pixels
      • computeScoreRowSad

        public static void computeScoreRowSad(GrayU8 left,
                                              GrayU8 right,
                                              int elementMax,
                                              int indexLeft,
                                              int indexRight,
                                              int[] elementScore)
        compute the score for each element all at once to encourage the JVM to optimize and encourage the JVM to optimize this section of code. Was original inline, but was actually slightly slower by about 3% consistently, It is in its own function so that it can be overridden and have different cost functions inserted easily.
      • computeScoreRow

        public static void computeScoreRow(GrayS16 left,
                                           GrayS16 right,
                                           int row,
                                           int[] scores,
                                           int minDisparity,
                                           int maxDisparity,
                                           int regionWidth,
                                           int[] elementScore)
        Computes disparity score for an entire row. 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
        Parameters:
        left - left image
        right - Right image
        row - Image row being examined
        scores - Storage for disparity scores.
        minDisparity - Minimum disparity to consider
        maxDisparity - Maximum disparity to consider
        regionWidth - Size of the sample region's width
        elementScore - Storage for scores of individual pixels
      • computeScoreRowSad

        public static void computeScoreRowSad(GrayS16 left,
                                              GrayS16 right,
                                              int elementMax,
                                              int indexLeft,
                                              int indexRight,
                                              int[] elementScore)
        compute the score for each element all at once to encourage the JVM to optimize and encourage the JVM to optimize this section of code. Was original inline, but was actually slightly slower by about 3% consistently, It is in its own function so that it can be overridden and have different cost functions inserted easily.
      • computeScoreRow

        public static void computeScoreRow(GrayF32 left,
                                           GrayF32 right,
                                           int row,
                                           float[] scores,
                                           int minDisparity,
                                           int maxDisparity,
                                           int regionWidth,
                                           float[] elementScore)
        Computes disparity score for an entire row. 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
        Parameters:
        left - left image
        right - Right image
        row - Image row being examined
        scores - Storage for disparity scores.
        minDisparity - Minimum disparity to consider
        maxDisparity - Maximum disparity to consider
        regionWidth - Size of the sample region's width
        elementScore - Storage for scores of individual pixels
      • computeScoreRowSad

        public static void computeScoreRowSad(GrayF32 left,
                                              GrayF32 right,
                                              int elementMax,
                                              int indexLeft,
                                              int indexRight,
                                              float[] elementScore)
        compute the score for each element all at once to encourage the JVM to optimize and encourage the JVM to optimize this section of code. Was original inline, but was actually slightly slower by about 3% consistently, It is in its own function so that it can be overridden and have different cost functions inserted easily.

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.