Class GCensusTransform


  • public class GCensusTransform
    extends java.lang.Object

    The Census Transform [1] computes a bit mask for each pixel in the image. If a neighboring pixel is greater than the center pixel in a region that bit is set to 1. A 3x3 region 9radius=1) is encoded in 8-bits and a 5x5 region (radius=2) in 24-bits. To compute the error between two pixels simply compute the hamming distance. The hamming distance for an input can be computed using DescriptorDistance.hamming().

    DEVELOPMENT NOTE: See if this can be speed up by only comparing each pixel with another once. Code will be complex

    [1] Zabih, Ramin, and John Woodfill. "Non-parametric local transforms for computing visual correspondence." European conference on computer vision. Springer, Berlin, Heidelberg, 1994.

    See Also:
    CensusTransform
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T extends boofcv.struct.image.ImageGray<T>>
      void
      dense3x3​(T input, boofcv.struct.image.GrayU8 output, boofcv.struct.border.ImageBorder<T> border)  
      static <T extends boofcv.struct.image.ImageGray<T>>
      void
      dense5x5​(T input, boofcv.struct.image.GrayS32 output, boofcv.struct.border.ImageBorder<T> border)  
      static <T extends boofcv.struct.image.ImageGray<T>>
      void
      sample_IU16​(T input, org.ddogleg.struct.FastAccess<georegression.struct.point.Point2D_I32> sample, boofcv.struct.image.InterleavedU16 output, boofcv.struct.border.ImageBorder<T> border, org.ddogleg.struct.GrowQueue_I32 workSpace)  
      static <T extends boofcv.struct.image.ImageGray<T>>
      void
      sample_S64​(T input, org.ddogleg.struct.FastAccess<georegression.struct.point.Point2D_I32> sample, boofcv.struct.image.GrayS64 output, boofcv.struct.border.ImageBorder<T> border, org.ddogleg.struct.GrowQueue_I32 workSpace)  
      • Methods inherited from class java.lang.Object

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

      • GCensusTransform

        public GCensusTransform()
    • Method Detail

      • dense3x3

        public static <T extends boofcv.struct.image.ImageGray<T>> void dense3x3​(T input,
                                                                                 boofcv.struct.image.GrayU8 output,
                                                                                 @Nullable
                                                                                 boofcv.struct.border.ImageBorder<T> border)
      • dense5x5

        public static <T extends boofcv.struct.image.ImageGray<T>> void dense5x5​(T input,
                                                                                 boofcv.struct.image.GrayS32 output,
                                                                                 @Nullable
                                                                                 boofcv.struct.border.ImageBorder<T> border)
      • sample_S64

        public static <T extends boofcv.struct.image.ImageGray<T>> void sample_S64​(T input,
                                                                                   org.ddogleg.struct.FastAccess<georegression.struct.point.Point2D_I32> sample,
                                                                                   boofcv.struct.image.GrayS64 output,
                                                                                   @Nullable
                                                                                   boofcv.struct.border.ImageBorder<T> border,
                                                                                   @Nullable
                                                                                   org.ddogleg.struct.GrowQueue_I32 workSpace)
      • sample_IU16

        public static <T extends boofcv.struct.image.ImageGray<T>> void sample_IU16​(T input,
                                                                                    org.ddogleg.struct.FastAccess<georegression.struct.point.Point2D_I32> sample,
                                                                                    boofcv.struct.image.InterleavedU16 output,
                                                                                    @Nullable
                                                                                    boofcv.struct.border.ImageBorder<T> border,
                                                                                    @Nullable
                                                                                    org.ddogleg.struct.GrowQueue_I32 workSpace)