boofcv.abst.filter.convolve
Class GenericConvolveDown<Input extends ImageGray,Output extends ImageGray>
- java.lang.Object
-
- boofcv.abst.filter.convolve.GenericConvolveDown<Input,Output>
-
- All Implemented Interfaces:
- ConvolveInterface<Input,Output>, FilterImageInterface<Input,Output>
public class GenericConvolveDown<Input extends ImageGray,Output extends ImageGray> extends java.lang.Object implements ConvolveInterface<Input,Output>
Generalized interface for filtering images with convolution kernels while skipping pixels. Can invoke different techniques for handling image borders. The first pixel sampled is always (0,0) and the sampled pixels are (x*skip,y*skip).
-
-
Constructor Summary
Constructors Constructor and Description GenericConvolveDown(java.lang.reflect.Method m, KernelBase kernel, BorderType type, int skip, java.lang.Class<Input> inputType, java.lang.Class<Output> outputType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description BorderTypegetBorderType()Returns how the image border is handled.intgetHorizontalBorder()How many pixels are not processed along the horizontal border.ImageType<Input>getInputType()Specifies the input image typeImageType<Output>getOutputType()Specifies the output image typeintgetSkip()intgetVerticalBorder()How many pixels are not processed along the vertical border.voidprocess(Input input, Output output)Processes the input image and writes the results to the output image.voidsetSkip(int skip)
-
-
-
Constructor Detail
-
GenericConvolveDown
public GenericConvolveDown(java.lang.reflect.Method m, KernelBase kernel, BorderType type, int skip, java.lang.Class<Input> inputType, java.lang.Class<Output> outputType)
-
-
Method Detail
-
getSkip
public int getSkip()
-
setSkip
public void setSkip(int skip)
-
process
public void process(Input input, Output output)
Description copied from interface:FilterImageInterfaceProcesses the input image and writes the results to the output image.
-
getHorizontalBorder
public int getHorizontalBorder()
Description copied from interface:FilterImageInterfaceHow many pixels are not processed along the horizontal border.- Specified by:
getHorizontalBorderin interfaceFilterImageInterface<Input extends ImageGray,Output extends ImageGray>- Returns:
- Border size in pixels.
-
getVerticalBorder
public int getVerticalBorder()
Description copied from interface:FilterImageInterfaceHow many pixels are not processed along the vertical border.- Specified by:
getVerticalBorderin interfaceFilterImageInterface<Input extends ImageGray,Output extends ImageGray>- Returns:
- Border size in pixels.
-
getBorderType
public BorderType getBorderType()
Description copied from interface:ConvolveInterfaceReturns how the image border is handled.- Specified by:
getBorderTypein interfaceConvolveInterface<Input extends ImageGray,Output extends ImageGray>
-
getInputType
public ImageType<Input> getInputType()
Description copied from interface:FilterImageInterfaceSpecifies the input image type- Specified by:
getInputTypein interfaceFilterImageInterface<Input extends ImageGray,Output extends ImageGray>- Returns:
- Input image type.
-
getOutputType
public ImageType<Output> getOutputType()
Description copied from interface:FilterImageInterfaceSpecifies the output image type- Specified by:
getOutputTypein interfaceFilterImageInterface<Input extends ImageGray,Output extends ImageGray>- Returns:
- Output image type.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG