Class ImplMedianHistogramInner_MT


  • public class ImplMedianHistogramInner_MT
    extends java.lang.Object

    A faster version of the histogram median filter that only processes the inner portion of the image. Instead of rebuilding the histogram from scratch for each pixel the histogram is updated using results from the previous pixel. When computing the histogram the previous median is used as a hint to the new median. The original implementation is similar to the algorithm proposed in [1]. If you need to cite something cite this library and mention that paper.

    [1] Huang, T.S., Yang, G.J. and Tang, G.Y. (1979) A fast two-dimensional median filtering algorithm. IEEE Trans. Acoust. Speech Signal Process. 27, 13-18

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void process​(boofcv.struct.image.GrayU8 input, boofcv.struct.image.GrayU8 output, int radius, boofcv.concurrency.IWorkArrays work)
      Applies a median image filter.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ImplMedianHistogramInner_MT

        public ImplMedianHistogramInner_MT()
    • Method Detail

      • process

        public static void process​(boofcv.struct.image.GrayU8 input,
                                   boofcv.struct.image.GrayU8 output,
                                   int radius,
                                   @Nullable
                                   boofcv.concurrency.IWorkArrays work)
        Applies a median image filter.
        Parameters:
        input - Input image. Not modified.
        output - Filtered output image. Modified.
        radius - Size of the filter region.
        work - (Optional) used to create local workspace