Reducing Noise in Images by Forcing Monotonic Change Between Extrema