![]() | [using it] | Interface Manipulation Package v4.0 (2008-06-25) | ![]() | ©copyright | ![]() |
java.lang.Objectimp.ima.util.RgbFilter
imp.ima.util.Smooth
public class Smooth
Defines the smoothing algorithm on one red-green-blue channel.
S[i,j] = ((1-a)/(1+a))^2 >_u >_v a^(|u|+|v|) I[i+u,j+v]corresponding to a normalized, zero-phase, exponential filter of the form:
y(i+1) = y(i) + (x(i)-y(i)) / N with 0 < N and a = (1 - c) with c = 1 / NThe window size corresponds to 90% of the energy of the signal and is given in pixel. The R-G-B channels are smoothed in parallel. Computation time does not depend on the smoothing window size.
Constructor Summary | |
---|---|
Smooth(int window)
Constructs a smoother. |
Method Summary | |
---|---|
static double |
getCoeff(int window)
Returns the coefficient for a given window. |
Methods inherited from class imp.ima.util.RgbFilter |
---|
filterRGB, getChannel, getChannel, getRGB, getRGB |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Smooth(int window)
window
- Window size in pixelMethod Detail |
---|
public static double getCoeff(int window)