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.
  1. Rafael C. Gonzalez and Richard E. Woods, "Digital Image Processing" 4nd Ed. 2018.

DO NOT MODIFY. Automatically generated code created by GenerateAdaptiveMeanFilter

  • Constructor Details

    • AdaptiveMeanFilter

      public AdaptiveMeanFilter(int radiusX, int radiusY)
    • AdaptiveMeanFilter

      public AdaptiveMeanFilter()
  • Method Details

    • process

      public <T extends ImageGray<T>> void process(T src, T dst)
      Generic version for single band images. Applies filter to the input image.
      Parameters:
      src - (Input) Image. Not modified.
      dst - (Output) Image. Modified.
    • process

      public void process(GrayU8 src, GrayU8 dst)
      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

      public void process(GrayU16 src, GrayU16 dst)
      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

      public void process(GrayF32 src, GrayF32 dst)
      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

      public void process(GrayF64 src, GrayF64 dst)
      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.