Imp
[using it]
Interface Manipulation Package v4.0 (2008-06-25) a-projector ©copyright Author


imp.ima.util
Class Smooth

java.lang.Object
  extended by imp.ima.util.RgbFilter
      extended by imp.ima.util.Smooth

public class Smooth
extends RgbFilter

Defines the smoothing algorithm on one red-green-blue channel.

The 1order Canny-Deriche smoothing is defined by convolution kernel is:
        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 / N
 
The 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

Smooth

public Smooth(int window)
Constructs a smoother.

Parameters:
window - Window size in pixel
Method Detail

getCoeff

public static double getCoeff(int window)
Returns the coefficient for a given window.