Class ImageGradientThenReduce<Input extends boofcv.struct.image.ImageMultiBand<Input>,​Middle extends boofcv.struct.image.ImageMultiBand<Middle>,​Output extends boofcv.struct.image.ImageGray<Output>>

  • All Implemented Interfaces:
    ImageDerivative<Input,​Output>, ImageGradient<Input,​Output>

    public class ImageGradientThenReduce<Input extends boofcv.struct.image.ImageMultiBand<Input>,​Middle extends boofcv.struct.image.ImageMultiBand<Middle>,​Output extends boofcv.struct.image.ImageGray<Output>>
    extends java.lang.Object
    implements ImageGradient<Input,​Output>
    First computes a multi-band image gradient then reduces the number of bands in the gradient to one.
    • Method Detail

      • 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<Input extends boofcv.struct.image.ImageMultiBand<Input>,​Middle extends boofcv.struct.image.ImageMultiBand<Middle>>
        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<Input extends boofcv.struct.image.ImageMultiBand<Input>,​Middle extends boofcv.struct.image.ImageMultiBand<Middle>>
        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<Input extends boofcv.struct.image.ImageMultiBand<Input>,​Middle extends boofcv.struct.image.ImageMultiBand<Middle>>
        Returns:
        number of pixels.
      • process

        public void process​(Input inputImage,
                            Output derivX,
                            Output 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<Input extends boofcv.struct.image.ImageMultiBand<Input>,​Middle extends boofcv.struct.image.ImageMultiBand<Middle>>
        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<Input> getInputType()
        Description copied from interface: ImageGradient
        Image type of input image
        Specified by:
        getInputType in interface ImageGradient<Input extends boofcv.struct.image.ImageMultiBand<Input>,​Middle extends boofcv.struct.image.ImageMultiBand<Middle>>