Package boofcv.alg.filter.blur.impl
Class ImplMedianHistogramInner_MT
java.lang.Object
boofcv.alg.filter.blur.impl.ImplMedianHistogramInner_MT
@Generated("boofcv.alg.filter.blur.impl.ImplMedianHistogramInner")
public class ImplMedianHistogramInner_MT
extends 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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
process
(GrayU8 input, GrayU8 output, int radiusX, int radiusY, GrowArray<DogArray_I32> work) Applies a median image filter.
-
Constructor Details
-
ImplMedianHistogramInner_MT
public ImplMedianHistogramInner_MT()
-
-
Method Details
-
process
public static void process(GrayU8 input, GrayU8 output, int radiusX, int radiusY, GrowArray<DogArray_I32> work) Applies a median image filter.- Parameters:
input
- Input image. Not modified.output
- Filtered output image. Modified.radiusX
- Size of the filter region. x-axisradiusY
- Size of the filter region. Y-axiswork
- Creates local work space arrays
-