public class ImplMedianHistogramInner 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.
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 and Description |
|---|
ImplMedianHistogramInner() |
| Modifier and Type | Method and Description |
|---|---|
static void |
process(ImageUInt8 input,
ImageUInt8 output,
int radius,
int[] offset,
int[] histogram)
Applies a median image filter.
|
public static void process(ImageUInt8 input, ImageUInt8 output, int radius, int[] offset, int[] histogram)
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.Copyright © 2013. All Rights Reserved.