Package boofcv.abst.filter.derivative
Class ImageGradientThenReduce<Input extends ImageMultiBand<Input>,Middle extends ImageMultiBand<Middle>,Output extends 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 ImageMultiBand<Input>,Middle extends ImageMultiBand<Middle>,Output extends ImageGray<Output>>
extends 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
ConstructorDescriptionImageGradientThenReduce
(ImageGradient<Input, Middle> gradient, GradientMultiToSingleBand<Middle, Output> reduce) -
Method Summary
Modifier and TypeMethodDescriptionint
How many pixels wide is the region that is not processed along the outside border of the image.Returns how the image borders are handled.Image type for derivative outputImage type of input imagevoid
Computes the image gradient from the input image and stores the results into 'derivX' and 'derivY'void
setBorderType
(BorderType type) Overrides usingBorderType.EXTENDED
along the image border.
-
Constructor Details
-
ImageGradientThenReduce
public ImageGradientThenReduce(ImageGradient<Input, Middle> gradient, GradientMultiToSingleBand<Middle, Output> reduce)
-
-
Method Details
-
setBorderType
Description copied from interface:ImageDerivative
Overrides usingBorderType.EXTENDED
along the image border. Don't change this behavior unless you know what you're doing.- Specified by:
setBorderType
in interfaceImageDerivative<Input extends ImageMultiBand<Input>,
Middle extends ImageMultiBand<Middle>> - Parameters:
type
- Specify image border behavior
-
getBorderType
Description copied from interface:ImageDerivative
Returns how the image borders are handled.- Specified by:
getBorderType
in interfaceImageDerivative<Input extends ImageMultiBand<Input>,
Middle extends 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 interfaceImageDerivative<Input extends ImageMultiBand<Input>,
Middle extends ImageMultiBand<Middle>> - Returns:
- number of pixels.
-
getDerivativeType
Description copied from interface:ImageDerivative
Image type for derivative output- Specified by:
getDerivativeType
in interfaceImageDerivative<Input extends ImageMultiBand<Input>,
Middle extends ImageMultiBand<Middle>>
-
process
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 interfaceImageGradient<Input extends ImageMultiBand<Input>,
Middle extends 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
Description copied from interface:ImageGradient
Image type of input image- Specified by:
getInputType
in interfaceImageGradient<Input extends ImageMultiBand<Input>,
Middle extends ImageMultiBand<Middle>>
-