Package boofcv.abst.filter.convolve
Class GenericConvolveDown<Input extends boofcv.struct.image.ImageBase<Input>,Output extends boofcv.struct.image.ImageBase<Output>>
- java.lang.Object
-
- boofcv.abst.filter.convolve.GenericConvolveDown<Input,Output>
-
- All Implemented Interfaces:
ConvolveDown<Input,Output>,ConvolveInterface<Input,Output>,FilterImageInterface<Input,Output>
public class GenericConvolveDown<Input extends boofcv.struct.image.ImageBase<Input>,Output extends boofcv.struct.image.ImageBase<Output>> extends java.lang.Object implements ConvolveDown<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 Description GenericConvolveDown(java.lang.reflect.Method m, boofcv.struct.convolve.KernelBase kernel, boofcv.struct.border.BorderType type, int skip, boofcv.struct.image.ImageType<Input> inputType, boofcv.struct.image.ImageType<Output> outputType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boofcv.struct.border.BorderTypegetBorderType()Returns how the image border is handled.intgetBorderX()How many pixels are not processed along the x-axis border, left and right.intgetBorderY()How many pixels are not processed along the y-axis border, top and bottom.boofcv.struct.image.ImageType<Input>getInputType()Specifies the input image typeboofcv.struct.image.ImageType<Output>getOutputType()Specifies the output image typeintgetSkip()voidprocess(Input input, Output output)Processes the input image and writes the results to the output image.voidsetSkip(int skip)
-
-
-
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.
-
getBorderX
public int getBorderX()
Description copied from interface:FilterImageInterfaceHow many pixels are not processed along the x-axis border, left and right.- Specified by:
getBorderXin interfaceFilterImageInterface<Input extends boofcv.struct.image.ImageBase<Input>,Output extends boofcv.struct.image.ImageBase<Output>>- Returns:
- Border size in pixels.
-
getBorderY
public int getBorderY()
Description copied from interface:FilterImageInterfaceHow many pixels are not processed along the y-axis border, top and bottom.- Specified by:
getBorderYin interfaceFilterImageInterface<Input extends boofcv.struct.image.ImageBase<Input>,Output extends boofcv.struct.image.ImageBase<Output>>- Returns:
- Border size in pixels.
-
getBorderType
public boofcv.struct.border.BorderType getBorderType()
Description copied from interface:ConvolveInterfaceReturns how the image border is handled.- Specified by:
getBorderTypein interfaceConvolveInterface<Input extends boofcv.struct.image.ImageBase<Input>,Output extends boofcv.struct.image.ImageBase<Output>>
-
getInputType
public boofcv.struct.image.ImageType<Input> getInputType()
Description copied from interface:FilterImageInterfaceSpecifies the input image type- Specified by:
getInputTypein interfaceFilterImageInterface<Input extends boofcv.struct.image.ImageBase<Input>,Output extends boofcv.struct.image.ImageBase<Output>>- Returns:
- Input image type.
-
getOutputType
public boofcv.struct.image.ImageType<Output> getOutputType()
Description copied from interface:FilterImageInterfaceSpecifies the output image type- Specified by:
getOutputTypein interfaceFilterImageInterface<Input extends boofcv.struct.image.ImageBase<Input>,Output extends boofcv.struct.image.ImageBase<Output>>- Returns:
- Output image type.
-
-