Class ImageGradient_Gaussian<I extends boofcv.struct.image.ImageGray<I>,​D extends boofcv.struct.image.ImageGray<D>>

  • All Implemented Interfaces:
    ImageDerivative<I,​D>, ImageGradient<I,​D>

    public class ImageGradient_Gaussian<I extends boofcv.struct.image.ImageGray<I>,​D extends boofcv.struct.image.ImageGray<D>>
    extends java.lang.Object
    implements ImageGradient<I,​D>
    Finds the derivative using a Gaussian kernel. This is the same as convolving the image and then computing the derivative
    • Constructor Summary

      Constructors 
      Constructor Description
      ImageGradient_Gaussian​(double sigma, int radius, java.lang.Class<I> inputType, java.lang.Class<D> derivType)  
      ImageGradient_Gaussian​(int radius, java.lang.Class<I> inputType, java.lang.Class<D> derivType)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getBorder()
      How many pixels wide is the region that is not processed along the outside border of the image.
      boofcv.struct.border.BorderType getBorderType()
      Returns how the image borders are handled.
      boofcv.struct.image.ImageType<D> getDerivativeType()
      Image type for derivative output
      boofcv.struct.image.ImageType<I> getInputType()
      Image type of input image
      void process​(I inputImage, D derivX, D derivY)
      Computes the image gradient from the input image and stores the results into 'derivX' and 'derivY'
      void setBorderType​(boofcv.struct.border.BorderType type)
      Overrides using BorderType.EXTENDED along the image border.
      • Methods inherited from class java.lang.Object

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

      • ImageGradient_Gaussian

        public ImageGradient_Gaussian​(int radius,
                                      java.lang.Class<I> inputType,
                                      java.lang.Class<D> derivType)
      • ImageGradient_Gaussian

        public ImageGradient_Gaussian​(double sigma,
                                      int radius,
                                      java.lang.Class<I> inputType,
                                      java.lang.Class<D> derivType)
    • Method Detail

      • process

        public void process​(I inputImage,
                            D derivX,
                            D derivY)
        Description copied from interface: ImageGradient
        Computes the image gradient from the input image and stores the results into 'derivX' and 'derivY'
        Specified by:
        process in interface ImageGradient<I extends boofcv.struct.image.ImageGray<I>,​D extends boofcv.struct.image.ImageGray<D>>
        Parameters:
        inputImage - Original input image. Not modified.
        derivX - First order image derivative along the x-axis. Modified.
        derivY - First order image derivative along the y-axis. Modified.
      • setBorderType

        public void setBorderType​(boofcv.struct.border.BorderType type)
        Description copied from interface: ImageDerivative
        Overrides using BorderType.EXTENDED along the image border. Don't change this behavior unless you know what you're doing.
        Specified by:
        setBorderType in interface ImageDerivative<I extends boofcv.struct.image.ImageGray<I>,​D extends boofcv.struct.image.ImageGray<D>>
        Parameters:
        type - Specify image border behavior
      • getBorderType

        public boofcv.struct.border.BorderType getBorderType()
        Description copied from interface: ImageDerivative
        Returns how the image borders are handled.
        Specified by:
        getBorderType in interface ImageDerivative<I extends boofcv.struct.image.ImageGray<I>,​D extends boofcv.struct.image.ImageGray<D>>
        Returns:
        Image border type.
      • getBorder

        public int getBorder()
        Description copied from interface: ImageDerivative
        How many pixels wide is the region that is not processed along the outside border of the image.
        Specified by:
        getBorder in interface ImageDerivative<I extends boofcv.struct.image.ImageGray<I>,​D extends boofcv.struct.image.ImageGray<D>>
        Returns:
        number of pixels.
      • getInputType

        public boofcv.struct.image.ImageType<I> getInputType()
        Description copied from interface: ImageGradient
        Image type of input image
        Specified by:
        getInputType in interface ImageGradient<I extends boofcv.struct.image.ImageGray<I>,​D extends boofcv.struct.image.ImageGray<D>>
      • getDerivativeType

        public boofcv.struct.image.ImageType<D> getDerivativeType()
        Description copied from interface: ImageDerivative
        Image type for derivative output
        Specified by:
        getDerivativeType in interface ImageDerivative<I extends boofcv.struct.image.ImageGray<I>,​D extends boofcv.struct.image.ImageGray<D>>