Package boofcv.abst.filter.derivative
Class ImageGradientThenReduce<Input extends boofcv.struct.image.ImageMultiBand<Input>,Middle extends boofcv.struct.image.ImageMultiBand<Middle>,Output extends boofcv.struct.image.ImageGray<Output>>
- java.lang.Object
-
- boofcv.abst.filter.derivative.ImageGradientThenReduce<Input,Middle,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.
-
-
Constructor Summary
Constructors Constructor Description ImageGradientThenReduce(ImageGradient<Input,Middle> gradient, GradientMultiToSingleBand<Middle,Output> reduce)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBorder()How many pixels wide is the region that is not processed along the outside border of the image.boofcv.struct.border.BorderTypegetBorderType()Returns how the image borders are handled.boofcv.struct.image.ImageType<Output>getDerivativeType()Image type for derivative outputboofcv.struct.image.ImageType<Input>getInputType()Image type of input imagevoidprocess(Input inputImage, Output derivX, Output derivY)Computes the image gradient from the input image and stores the results into 'derivX' and 'derivY'voidsetBorderType(boofcv.struct.border.BorderType type)Overrides usingBorderType.EXTENDEDalong the image border.
-
-
-
Constructor Detail
-
ImageGradientThenReduce
public ImageGradientThenReduce(ImageGradient<Input,Middle> gradient, GradientMultiToSingleBand<Middle,Output> reduce)
-
-
Method Detail
-
setBorderType
public void setBorderType(boofcv.struct.border.BorderType type)
Description copied from interface:ImageDerivativeOverrides usingBorderType.EXTENDEDalong the image border. Don't change this behavior unless you know what you're doing.- Specified by:
setBorderTypein interfaceImageDerivative<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:ImageDerivativeReturns how the image borders are handled.- Specified by:
getBorderTypein interfaceImageDerivative<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:ImageDerivativeHow many pixels wide is the region that is not processed along the outside border of the image.
-
getDerivativeType
public boofcv.struct.image.ImageType<Output> getDerivativeType()
Description copied from interface:ImageDerivativeImage type for derivative output- Specified by:
getDerivativeTypein interfaceImageDerivative<Input extends boofcv.struct.image.ImageMultiBand<Input>,Middle extends boofcv.struct.image.ImageMultiBand<Middle>>
-
process
public void process(Input inputImage, Output derivX, Output derivY)
Description copied from interface:ImageGradientComputes the image gradient from the input image and stores the results into 'derivX' and 'derivY'- Specified by:
processin interfaceImageGradient<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:ImageGradientImage type of input image- Specified by:
getInputTypein interfaceImageGradient<Input extends boofcv.struct.image.ImageMultiBand<Input>,Middle extends boofcv.struct.image.ImageMultiBand<Middle>>
-
-