Class FactoryDerivative


  • public class FactoryDerivative
    extends java.lang.Object

    Factory for creating different types of ImageGradient, which are used to compute the image's derivative.

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <I extends boofcv.struct.image.ImageGray<I>,​D extends boofcv.struct.image.ImageGray<D>>
      ImageGradient<I,​D>
      gaussian​(double sigma, int radius, java.lang.Class<I> inputType, java.lang.Class<D> derivType)  
      static <I extends boofcv.struct.image.ImageBase<I>,​D extends boofcv.struct.image.ImageBase<D>>
      ImageGradient<I,​D>
      gradient​(DerivativeType type, boofcv.struct.image.ImageType<I> inputType, boofcv.struct.image.ImageType<D> derivType)
      Creates a ImageGradient for an arbitrary image type.
      static <I extends boofcv.struct.image.ImageGray<I>,​D extends boofcv.struct.image.ImageGray<D>>
      ImageGradient<boofcv.struct.image.Planar<I>,​boofcv.struct.image.Planar<D>>
      gradientPL​(DerivativeType type, int numBands, java.lang.Class<I> inputType, java.lang.Class<D> derivType)
      Returns the gradient filter for planar images of the specified type.
      static <I extends boofcv.struct.image.ImageMultiBand<I>,​M extends boofcv.struct.image.ImageMultiBand<M>,​D extends boofcv.struct.image.ImageGray<D>>
      ImageGradient<I,​D>
      gradientReduce​(ImageGradient<I,​M> gradient, DerivativeReduceType type, java.lang.Class<D> outputType)
      Computes the image gradient inside a multi-band image then reduces the output to a single band before returning the results
      static <I extends boofcv.struct.image.ImageGray<I>,​D extends boofcv.struct.image.ImageGray<D>>
      ImageGradient<I,​D>
      gradientSB​(DerivativeType type, java.lang.Class<I> inputType, java.lang.Class<D> derivType)
      Returns the gradient filter for single band images of the specified type.
      static <D extends boofcv.struct.image.ImageGray<D>>
      ImageHessian<D>
      hessian​(java.lang.Class<?> gradientType, java.lang.Class<D> derivType)  
      static <I extends boofcv.struct.image.ImageGray<I>,​D extends boofcv.struct.image.ImageGray<D>>
      ImageHessianDirect<I,​D>
      hessianDirectSobel​(java.lang.Class<I> inputType, java.lang.Class<D> derivType)  
      static <I extends boofcv.struct.image.ImageGray<I>,​D extends boofcv.struct.image.ImageGray<D>>
      ImageHessianDirect<I,​D>
      hessianDirectThree​(java.lang.Class<I> inputType, java.lang.Class<D> derivType)  
      static <D extends boofcv.struct.image.ImageGray<D>>
      ImageHessian<D>
      hessianPrewitt​(java.lang.Class<D> derivType)  
      static <D extends boofcv.struct.image.ImageGray<D>>
      ImageHessian<D>
      hessianSobel​(java.lang.Class<D> derivType)  
      static <D extends boofcv.struct.image.ImageGray<D>>
      ImageHessian<D>
      hessianThree​(java.lang.Class<D> derivType)  
      static <I extends boofcv.struct.image.ImageGray<I>,​D extends boofcv.struct.image.ImageGray<D>>
      ImageGradient<I,​D>
      prewitt​(java.lang.Class<I> inputType, java.lang.Class<D> derivType)  
      static <I extends boofcv.struct.image.ImageGray<I>,​D extends boofcv.struct.image.ImageGray<D>>
      ImageGradient<I,​D>
      sobel​(java.lang.Class<I> inputType, java.lang.Class<D> derivType)  
      static <I extends boofcv.struct.image.ImageGray<I>,​D extends boofcv.struct.image.ImageGray<D>>
      ImageGradient<I,​D>
      three​(java.lang.Class<I> inputType, java.lang.Class<D> derivType)  
      static <I extends boofcv.struct.image.ImageGray<I>,​D extends boofcv.struct.image.ImageGray<D>>
      ImageGradient<I,​D>
      two0​(java.lang.Class<I> inputType, java.lang.Class<D> derivType)  
      static <I extends boofcv.struct.image.ImageGray<I>,​D extends boofcv.struct.image.ImageGray<D>>
      ImageGradient<I,​D>
      two1​(java.lang.Class<I> inputType, java.lang.Class<D> derivType)  
      • Methods inherited from class java.lang.Object

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

      • FactoryDerivative

        public FactoryDerivative()
    • Method Detail

      • gradientReduce

        public static <I extends boofcv.struct.image.ImageMultiBand<I>,​M extends boofcv.struct.image.ImageMultiBand<M>,​D extends boofcv.struct.image.ImageGray<D>> ImageGradient<I,​D> gradientReduce​(ImageGradient<I,​M> gradient,
                                                                                                                                                                                                                       DerivativeReduceType type,
                                                                                                                                                                                                                       java.lang.Class<D> outputType)
        Computes the image gradient inside a multi-band image then reduces the output to a single band before returning the results
        Type Parameters:
        I - Input type
        M - Intermediate type
        D - Output type
        Parameters:
        gradient - Computes the multi-band image gradient
        type - Specifies which method is to be used to reduce the output into single band image
        outputType - Type of output image
        Returns:
        Gradient
      • gradientSB

        public static <I extends boofcv.struct.image.ImageGray<I>,​D extends boofcv.struct.image.ImageGray<D>> ImageGradient<I,​D> gradientSB​(DerivativeType type,
                                                                                                                                                        java.lang.Class<I> inputType,
                                                                                                                                                        java.lang.Class<D> derivType)
        Returns the gradient filter for single band images of the specified type. The border will be handled using the approach specified by BoofDefaults.DERIV_BORDER_TYPE
        Type Parameters:
        I - Input image
        D - Derivative image
        Parameters:
        type - Type of gradient
        inputType - Type of input image
        derivType - Type of gradient image. null for default
        Returns:
        gradient filter
      • gradientPL

        public static <I extends boofcv.struct.image.ImageGray<I>,​D extends boofcv.struct.image.ImageGray<D>> ImageGradient<boofcv.struct.image.Planar<I>,​boofcv.struct.image.Planar<D>> gradientPL​(DerivativeType type,
                                                                                                                                                                                                                int numBands,
                                                                                                                                                                                                                java.lang.Class<I> inputType,
                                                                                                                                                                                                                java.lang.Class<D> derivType)
        Returns the gradient filter for planar images of the specified type. The border will be handled using the approach specified by BoofDefaults.DERIV_BORDER_TYPE
        Type Parameters:
        I - Image type
        D - Derivative type
        Parameters:
        type - Which gradient to compute
        numBands - Number of bands in the image
        inputType - Type of data on input
        derivType - Type of data on output (null for default)
        Returns:
        the filter
      • gradient

        public static <I extends boofcv.struct.image.ImageBase<I>,​D extends boofcv.struct.image.ImageBase<D>> ImageGradient<I,​D> gradient​(DerivativeType type,
                                                                                                                                                      boofcv.struct.image.ImageType<I> inputType,
                                                                                                                                                      boofcv.struct.image.ImageType<D> derivType)
        Creates a ImageGradient for an arbitrary image type. The border will be handled using the approach specified by BoofDefaults.DERIV_BORDER_TYPE
        Type Parameters:
        I - Image type
        D - Derivative type
        Parameters:
        type - Which gradient to compute
        inputType - Type of data on input
        derivType - Type of data on output (null for default)
      • prewitt

        public static <I extends boofcv.struct.image.ImageGray<I>,​D extends boofcv.struct.image.ImageGray<D>> ImageGradient<I,​D> prewitt​(java.lang.Class<I> inputType,
                                                                                                                                                     java.lang.Class<D> derivType)
      • sobel

        public static <I extends boofcv.struct.image.ImageGray<I>,​D extends boofcv.struct.image.ImageGray<D>> ImageGradient<I,​D> sobel​(java.lang.Class<I> inputType,
                                                                                                                                                   java.lang.Class<D> derivType)
      • three

        public static <I extends boofcv.struct.image.ImageGray<I>,​D extends boofcv.struct.image.ImageGray<D>> ImageGradient<I,​D> three​(java.lang.Class<I> inputType,
                                                                                                                                                   java.lang.Class<D> derivType)
      • two0

        public static <I extends boofcv.struct.image.ImageGray<I>,​D extends boofcv.struct.image.ImageGray<D>> ImageGradient<I,​D> two0​(java.lang.Class<I> inputType,
                                                                                                                                                  java.lang.Class<D> derivType)
      • two1

        public static <I extends boofcv.struct.image.ImageGray<I>,​D extends boofcv.struct.image.ImageGray<D>> ImageGradient<I,​D> two1​(java.lang.Class<I> inputType,
                                                                                                                                                  java.lang.Class<D> derivType)
      • hessianDirectThree

        public static <I extends boofcv.struct.image.ImageGray<I>,​D extends boofcv.struct.image.ImageGray<D>> ImageHessianDirect<I,​D> hessianDirectThree​(java.lang.Class<I> inputType,
                                                                                                                                                                     java.lang.Class<D> derivType)
      • hessianDirectSobel

        public static <I extends boofcv.struct.image.ImageGray<I>,​D extends boofcv.struct.image.ImageGray<D>> ImageHessianDirect<I,​D> hessianDirectSobel​(java.lang.Class<I> inputType,
                                                                                                                                                                     java.lang.Class<D> derivType)
      • hessian

        public static <D extends boofcv.struct.image.ImageGray<D>> ImageHessian<D> hessian​(java.lang.Class<?> gradientType,
                                                                                           java.lang.Class<D> derivType)
      • gaussian

        public static <I extends boofcv.struct.image.ImageGray<I>,​D extends boofcv.struct.image.ImageGray<D>> ImageGradient<I,​D> gaussian​(double sigma,
                                                                                                                                                      int radius,
                                                                                                                                                      java.lang.Class<I> inputType,
                                                                                                                                                      java.lang.Class<D> derivType)
      • hessianSobel

        public static <D extends boofcv.struct.image.ImageGray<D>> ImageHessian<D> hessianSobel​(java.lang.Class<D> derivType)
      • hessianPrewitt

        public static <D extends boofcv.struct.image.ImageGray<D>> ImageHessian<D> hessianPrewitt​(java.lang.Class<D> derivType)
      • hessianThree

        public static <D extends boofcv.struct.image.ImageGray<D>> ImageHessian<D> hessianThree​(java.lang.Class<D> derivType)