Package boofcv.abst.filter.derivative
Class ImageGradient_PL<T extends boofcv.struct.image.ImageGray<T>,D extends boofcv.struct.image.ImageGray<D>>
- java.lang.Object
-
- boofcv.abst.filter.derivative.ImageGradient_PL<T,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 toPlanarimages.
-
-
Constructor Summary
Constructors Constructor Description ImageGradient_PL(ImageGradient<T,D> bandGradient, int numBands)
-
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<boofcv.struct.image.Planar<D>>getDerivativeType()Image type for derivative outputboofcv.struct.image.ImageType<boofcv.struct.image.Planar<T>>getInputType()Image type of input imagevoidprocess(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'voidsetBorderType(boofcv.struct.border.BorderType type)Overrides usingBorderType.EXTENDEDalong the image border.
-
-
-
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:ImageGradientComputes the image gradient from the input image and stores the results into 'derivX' and 'derivY'- Specified by:
processin interfaceImageGradient<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:ImageGradientImage type of input image- Specified by:
getInputTypein interfaceImageGradient<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:ImageDerivativeOverrides usingBorderType.EXTENDEDalong the image border. Don't change this behavior unless you know what you're doing.- Specified by:
setBorderTypein interfaceImageDerivative<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:ImageDerivativeReturns how the image borders are handled.- Specified by:
getBorderTypein interfaceImageDerivative<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:ImageDerivativeHow many pixels wide is the region that is not processed along the outside border of the image.
-
getDerivativeType
public boofcv.struct.image.ImageType<boofcv.struct.image.Planar<D>> getDerivativeType()
Description copied from interface:ImageDerivativeImage type for derivative output- Specified by:
getDerivativeTypein interfaceImageDerivative<T extends boofcv.struct.image.ImageGray<T>,D extends boofcv.struct.image.ImageGray<D>>
-
-