Class ImageGradient_PL<T extends boofcv.struct.image.ImageGray<T>,​D extends boofcv.struct.image.ImageGray<D>>

  • All Implemented Interfaces:
    ImageDerivative<boofcv.struct.image.Planar<T>,​boofcv.struct.image.Planar<D>>, ImageGradient<boofcv.struct.image.Planar<T>,​boofcv.struct.image.Planar<D>>

    public class ImageGradient_PL<T extends boofcv.struct.image.ImageGray<T>,​D extends boofcv.struct.image.ImageGray<D>>
    extends java.lang.Object
    implements ImageGradient<boofcv.struct.image.Planar<T>,​boofcv.struct.image.Planar<D>>
    Wrapper for applying image gradients to Planar images.
    • 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<boofcv.struct.image.Planar<D>> getDerivativeType()
      Image type for derivative output
      boofcv.struct.image.ImageType<boofcv.struct.image.Planar<T>> getInputType()
      Image type of input image
      void process​(boofcv.struct.image.Planar<T> inputImage, boofcv.struct.image.Planar<D> derivX, boofcv.struct.image.Planar<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_PL

        public ImageGradient_PL​(ImageGradient<T,​D> bandGradient,
                                int numBands)
    • Method Detail

      • process

        public void process​(boofcv.struct.image.Planar<T> inputImage,
                            boofcv.struct.image.Planar<D> derivX,
                            boofcv.struct.image.Planar<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<T extends boofcv.struct.image.ImageGray<T>,​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.
      • getInputType

        public boofcv.struct.image.ImageType<boofcv.struct.image.Planar<T>> getInputType()
        Description copied from interface: ImageGradient
        Image type of input image
        Specified by:
        getInputType in interface ImageGradient<T extends boofcv.struct.image.ImageGray<T>,​D extends boofcv.struct.image.ImageGray<D>>
      • 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<T extends boofcv.struct.image.ImageGray<T>,​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<T extends boofcv.struct.image.ImageGray<T>,​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<T extends boofcv.struct.image.ImageGray<T>,​D extends boofcv.struct.image.ImageGray<D>>
        Returns:
        number of pixels.
      • getDerivativeType

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