Package boofcv.alg.filter.blur.impl
Class GeometricMeanFilter_MT
java.lang.Object
boofcv.alg.filter.blur.impl.GeometricMeanFilter_MT
@Generated("boofcv.alg.filter.blur.impl.GeometricMeanFilter")
public class GeometricMeanFilter_MT
extends Object
Implementation of Geometric Mean filter as describes in [1] with modifications to avoid numerical issues.
Compute a scale factor so that the average pixel intensity will be one. As a result, after scaling, the product of pixel values will also be close to 1, avoiding over and under flow issues.
NOTE: This could be made MUCH faster using a similar technique to how the mean filter is done by separating x and y axis computations. This has not been done yet since it's not yet a bottleneck in any application. Maybe you would want to add it?
- Rafael C. Gonzalez and Richard E. Woods, "Digital Image Processing" 4nd Ed. 2018.
DO NOT MODIFY. Automatically generated code created by GenerateGeometricMeanFilter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Applies the geometric mean blur operator.static void
Applies the geometric mean blur operator.static void
Applies the geometric mean blur operator.static void
Applies the geometric mean blur operator.static <T extends ImageGray<T>>
voidfilter
(T src, int radiusX, int radiusY, double mean, T dst) Applies filter with type determined at runtime.
-
Constructor Details
-
GeometricMeanFilter_MT
public GeometricMeanFilter_MT()
-
-
Method Details
-
filter
public static <T extends ImageGray<T>> void filter(T src, int radiusX, int radiusY, double mean, T dst) Applies filter with type determined at runtime. -
filter
Applies the geometric mean blur operator.- Parameters:
src
- Input imageradiusX
- Region's radius along x-axisradiusY
- Region's radius along y-axismean
- Mean of input image. Used to scale pixel values so that they average 1.0dst
- Output image with results
-
filter
Applies the geometric mean blur operator.- Parameters:
src
- Input imageradiusX
- Region's radius along x-axisradiusY
- Region's radius along y-axismean
- Mean of input image. Used to scale pixel values so that they average 1.0dst
- Output image with results
-
filter
Applies the geometric mean blur operator.- Parameters:
src
- Input imageradiusX
- Region's radius along x-axisradiusY
- Region's radius along y-axismean
- Mean of input image. Used to scale pixel values so that they average 1.0dst
- Output image with results
-
filter
Applies the geometric mean blur operator.- Parameters:
src
- Input imageradiusX
- Region's radius along x-axisradiusY
- Region's radius along y-axismean
- Mean of input image. Used to scale pixel values so that they average 1.0dst
- Output image with results
-