Package boofcv.alg.filter.blur
Class AdaptiveMeanFilter
java.lang.Object
boofcv.alg.filter.blur.AdaptiveMeanFilter
@Generated("boofcv.alg.filter.blur.GenerateAdaptiveMeanFilter")
public class AdaptiveMeanFilter
extends Object
Given an estimate of image noise sigma, adaptive applies a mean filter dependent on local image statistics in order to preserve edges, see [1]. This implementation uses multiple images to store intermediate results to fully utilize efficient implementations of mean filters.
f(x,y) = g(x,y) - (noise)/(local noise)*[ g(x,y) - mean(x,y) ]Where noise is the estimated variance of pixel "noise", "local noise" is the local variance inside the region, mean is the mean of the local region at (x,y). If the ratio is more than one it is set to one.
- Rafael C. Gonzalez and Richard E. Woods, "Digital Image Processing" 4nd Ed. 2018.
DO NOT MODIFY. Automatically generated code created by GenerateAdaptiveMeanFilter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Applies the filter to the src image and saves the results to the dst image.void
Applies the filter to the src image and saves the results to the dst image.void
Applies the filter to the src image and saves the results to the dst image.void
Applies the filter to the src image and saves the results to the dst image.<T extends ImageGray<T>>
voidprocess
(T src, T dst) Generic version for single band images.
-
Constructor Details
-
AdaptiveMeanFilter
public AdaptiveMeanFilter(int radiusX, int radiusY) -
AdaptiveMeanFilter
public AdaptiveMeanFilter()
-
-
Method Details
-
process
Generic version for single band images. Applies filter to the input image.- Parameters:
src
- (Input) Image. Not modified.dst
- (Output) Image. Modified.
-
process
Applies the filter to the src image and saves the results to the dst image. The shape of dst is modified to match src.- Parameters:
src
- (Input) Image. Not modified.dst
- (Output) Image. Modified.
-
process
Applies the filter to the src image and saves the results to the dst image. The shape of dst is modified to match src.- Parameters:
src
- (Input) Image. Not modified.dst
- (Output) Image. Modified.
-
process
Applies the filter to the src image and saves the results to the dst image. The shape of dst is modified to match src.- Parameters:
src
- (Input) Image. Not modified.dst
- (Output) Image. Modified.
-
process
Applies the filter to the src image and saves the results to the dst image. The shape of dst is modified to match src.- Parameters:
src
- (Input) Image. Not modified.dst
- (Output) Image. Modified.
-