boofcv.abst.filter.blur
Class BlurStorageFilter<T extends ImageGray>
- java.lang.Object
-
- boofcv.abst.filter.blur.BlurStorageFilter<T>
-
- All Implemented Interfaces:
- BlurFilter<T>, FilterImageInterface<T,T>
public class BlurStorageFilter<T extends ImageGray> 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 and Description BlurStorageFilter(java.lang.String functionName, java.lang.Class<T> inputType, double sigma, int radius)BlurStorageFilter(java.lang.String functionName, java.lang.Class<T> inputType, int radius)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetHorizontalBorder()How many pixels are not processed along the horizontal border.ImageType<T>getInputType()Specifies the input image typeImageType<T>getOutputType()Specifies the output image typeintgetRadius()Radius of the square region.intgetVerticalBorder()How many pixels are not processed along the vertical border.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, java.lang.Class<T> inputType, int radius)
-
BlurStorageFilter
public BlurStorageFilter(java.lang.String functionName, java.lang.Class<T> inputType, double sigma, int radius)
-
-
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 ImageGray>- Returns:
- Blur region's radius.
-
setRadius
public void setRadius(int radius)
- Specified by:
setRadiusin interfaceBlurFilter<T extends ImageGray>
-
process
public void process(T input, T 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<T extends ImageGray,T 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<T extends ImageGray,T extends ImageGray>- Returns:
- Border size in pixels.
-
getInputType
public ImageType<T> getInputType()
Description copied from interface:FilterImageInterfaceSpecifies the input image type- Specified by:
getInputTypein interfaceFilterImageInterface<T extends ImageGray,T extends ImageGray>- Returns:
- Input image type.
-
getOutputType
public ImageType<T> getOutputType()
Description copied from interface:FilterImageInterfaceSpecifies the output image type- Specified by:
getOutputTypein interfaceFilterImageInterface<T extends ImageGray,T extends ImageGray>- Returns:
- Output image type.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG