Package boofcv.abst.filter.blur
Class BlurStorageFilter<T extends boofcv.struct.image.ImageBase<T>>
- java.lang.Object
-
- boofcv.abst.filter.blur.BlurStorageFilter<T>
-
- All Implemented Interfaces:
BlurFilter<T>,FilterImageInterface<T,T>
public class BlurStorageFilter<T extends boofcv.struct.image.ImageBase<T>> extends java.lang.Object implements BlurFilter<T>
Simplified interface for using a blur filter that requires storage. Reflections are used to look up a function inside ofBlurImageOpswhich is then invoked later on.
-
-
Constructor Summary
Constructors Constructor Description BlurStorageFilter(java.lang.String functionName, boofcv.struct.image.ImageType<T> inputType, double sigmaX, int radiusX, double sigmaY, int radiusY)BlurStorageFilter(java.lang.String functionName, boofcv.struct.image.ImageType<T> inputType, int radius)BlurStorageFilter(java.lang.String functionName, boofcv.struct.image.ImageType<T> inputType, int radiusX, int radiusY)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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<T>getInputType()Specifies the input image typeboofcv.struct.image.ImageType<T>getOutputType()Specifies the output image typeintgetRadius()Radius of the square region.voidprocess(T input, T output)Processes the input image and writes the results to the output image.voidsetRadius(int radius)
-
-
-
Constructor Detail
-
BlurStorageFilter
public BlurStorageFilter(java.lang.String functionName, boofcv.struct.image.ImageType<T> inputType, int radius)
-
BlurStorageFilter
public BlurStorageFilter(java.lang.String functionName, boofcv.struct.image.ImageType<T> inputType, int radiusX, int radiusY)
-
BlurStorageFilter
public BlurStorageFilter(java.lang.String functionName, boofcv.struct.image.ImageType<T> inputType, double sigmaX, int radiusX, double sigmaY, int radiusY)
-
-
Method Detail
-
getRadius
public int getRadius()
Radius of the square region. The width is defined as the radius*2 + 1.- Specified by:
getRadiusin interfaceBlurFilter<T extends boofcv.struct.image.ImageBase<T>>- Returns:
- Blur region's radius.
-
setRadius
public void setRadius(int radius)
- Specified by:
setRadiusin interfaceBlurFilter<T extends boofcv.struct.image.ImageBase<T>>
-
process
public void process(T input, T 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<T extends boofcv.struct.image.ImageBase<T>,T extends boofcv.struct.image.ImageBase<T>>- 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<T extends boofcv.struct.image.ImageBase<T>,T extends boofcv.struct.image.ImageBase<T>>- Returns:
- Border size in pixels.
-
getInputType
public boofcv.struct.image.ImageType<T> getInputType()
Description copied from interface:FilterImageInterfaceSpecifies the input image type- Specified by:
getInputTypein interfaceFilterImageInterface<T extends boofcv.struct.image.ImageBase<T>,T extends boofcv.struct.image.ImageBase<T>>- Returns:
- Input image type.
-
getOutputType
public boofcv.struct.image.ImageType<T> getOutputType()
Description copied from interface:FilterImageInterfaceSpecifies the output image type- Specified by:
getOutputTypein interfaceFilterImageInterface<T extends boofcv.struct.image.ImageBase<T>,T extends boofcv.struct.image.ImageBase<T>>- Returns:
- Output image type.
-
-