boofcv.alg.filter.blur.impl
Class ImplMedianHistogramInner
- java.lang.Object
-
- boofcv.alg.filter.blur.impl.ImplMedianHistogramInner
-
public class ImplMedianHistogramInner extends java.lang.ObjectA 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.
Based on the description in some papers I believe this algorithm is similar to the one proposed in:
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
Constructors Constructor and Description ImplMedianHistogramInner()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidprocess(GrayU8 input, GrayU8 output, int radius, int[] offset, int[] histogram)Applies a median image filter.
-
-
-
Method Detail
-
process
public static void process(GrayU8 input, GrayU8 output, int radius, int[] offset, int[] histogram)
Applies a median image filter.- Parameters:
input- Input image. Not modified.output- Filtered output image. Modified.radius- Size of the filter region.offset- Array used to store relative pixel offsets.histogram- Saves the image histogram. Must be at least 256 elements.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG