Class FactoryCensusTransform


  • public class FactoryCensusTransform
    extends java.lang.Object
    Factory for creating different types of census transforms
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static boofcv.struct.border.BorderType CENSUS_BORDER
      For SGM it's important that you don't use a constant value border.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <In extends boofcv.struct.image.ImageGray<In>,​Out extends boofcv.struct.image.ImageBase<Out>>
      FilterCensusTransform<In,​Out>
      blockDense​(int radius, boolean border, java.lang.Class<In> imageType)
      Samples a dense square block
      static <In extends boofcv.struct.image.ImageGray<In>,​Out extends boofcv.struct.image.ImageBase<Out>>
      FilterCensusTransform<In,​Out>
      blockDense​(int radiusX, int radiusY, boolean border, java.lang.Class<In> imageType)  
      static <In extends boofcv.struct.image.ImageGray<In>,​Out extends boofcv.struct.image.ImageBase<Out>>
      FilterCensusTransform<In,​Out>
      variant​(CensusVariants type, boolean border, java.lang.Class<In> imageType)  
      • Methods inherited from class java.lang.Object

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

      • CENSUS_BORDER

        public static boofcv.struct.border.BorderType CENSUS_BORDER
        For SGM it's important that you don't use a constant value border. If it's say zero, it will always perfectly match the pixels outside the border in the right image, giving it a lower cost. That lower cost will bias the error making it more likely to select border pixel.
    • Constructor Detail

      • FactoryCensusTransform

        public FactoryCensusTransform()
    • Method Detail

      • variant

        public static <In extends boofcv.struct.image.ImageGray<In>,​Out extends boofcv.struct.image.ImageBase<Out>> FilterCensusTransform<In,​Out> variant​(CensusVariants type,
                                                                                                                                                                      boolean border,
                                                                                                                                                                      java.lang.Class<In> imageType)
      • blockDense

        public static <In extends boofcv.struct.image.ImageGray<In>,​Out extends boofcv.struct.image.ImageBase<Out>> FilterCensusTransform<In,​Out> blockDense​(int radius,
                                                                                                                                                                         boolean border,
                                                                                                                                                                         java.lang.Class<In> imageType)
        Samples a dense square block
        Type Parameters:
        In - Input image
        Out - Output image
        Parameters:
        radius - Radius of the block. Width = 2*radius+1
        border - If true then it will process the image border
        imageType - Type of input image
        Returns:
        Census Transform
      • blockDense

        public static <In extends boofcv.struct.image.ImageGray<In>,​Out extends boofcv.struct.image.ImageBase<Out>> FilterCensusTransform<In,​Out> blockDense​(int radiusX,
                                                                                                                                                                         int radiusY,
                                                                                                                                                                         boolean border,
                                                                                                                                                                         java.lang.Class<In> imageType)