Package boofcv.abst.filter.blur
Class BlurStorageFilter<T extends ImageBase<T>>
java.lang.Object
boofcv.abst.filter.blur.BlurStorageFilter<T>
- All Implemented Interfaces:
BlurFilter<T>
,FilterImageInterface<T,
T>
Simplified interface for using a blur filter that requires storage. Reflections are used to look up a function inside
of
BlurImageOps
which is then invoked later on.-
Constructor Summary
ConstructorDescriptionBlurStorageFilter
(String functionName, ImageType<T> inputType, double sigmaX, int radiusX, double sigmaY, int radiusY) BlurStorageFilter
(String functionName, ImageType<T> inputType, int radius) BlurStorageFilter
(String functionName, ImageType<T> inputType, int radiusX, int radiusY) -
Method Summary
Modifier and TypeMethodDescriptionint
How many pixels are not processed along the x-axis border, left and right.int
How many pixels are not processed along the y-axis border, top and bottom.Specifies the input image typeSpecifies the output image typeint
Radius of the square region.void
Processes the input image and writes the results to the output image.void
setRadius
(int radius)
-
Constructor Details
-
BlurStorageFilter
-
BlurStorageFilter
-
BlurStorageFilter
-
-
Method Details
-
getRadius
public int getRadius()Radius of the square region. The width is defined as the radius*2 + 1.- Specified by:
getRadius
in interfaceBlurFilter<T extends ImageBase<T>>
- Returns:
- Blur region's radius.
-
setRadius
public void setRadius(int radius) - Specified by:
setRadius
in interfaceBlurFilter<T extends ImageBase<T>>
-
process
Description copied from interface:FilterImageInterface
Processes the input image and writes the results to the output image. -
getBorderX
public int getBorderX()Description copied from interface:FilterImageInterface
How many pixels are not processed along the x-axis border, left and right.- Specified by:
getBorderX
in interfaceFilterImageInterface<T extends ImageBase<T>,
T extends ImageBase<T>> - Returns:
- Border size in pixels.
-
getBorderY
public int getBorderY()Description copied from interface:FilterImageInterface
How many pixels are not processed along the y-axis border, top and bottom.- Specified by:
getBorderY
in interfaceFilterImageInterface<T extends ImageBase<T>,
T extends ImageBase<T>> - Returns:
- Border size in pixels.
-
getInputType
Description copied from interface:FilterImageInterface
Specifies the input image type- Specified by:
getInputType
in interfaceFilterImageInterface<T extends ImageBase<T>,
T extends ImageBase<T>> - Returns:
- Input image type.
-
getOutputType
Description copied from interface:FilterImageInterface
Specifies the output image type- Specified by:
getOutputType
in interfaceFilterImageInterface<T extends ImageBase<T>,
T extends ImageBase<T>> - Returns:
- Output image type.
-