denoise
Class Filters

java.lang.Object
  extended by denoise.Filters

public final class Filters
extends java.lang.Object


Plugin of ImageJ:
Fractional Spline Wavelet + Some Symlets

Authors:
Gil Gaillard, Florian Luisier, Daniel Sage, Dimitri Van De Ville florian.luisier@a3.epfl.ch
Swiss Federal Institute of Technology Lausanne, Biomedical Imaging Group, CH-1015 Lausanne, Switzerland, http://bigwww.epfl.ch

Original Version:
April 2003

Updated Version:
2007

Copyright
Copyright 2003, Swiss Federal Institute of Technology, Lausanne, Switzerland, (EPFL)


Purpose of the class:
Generate the coefficients of the filter.


Field Summary
protected static int BSPLINE
           
protected static int DUAL
           
protected static int HAAR
           
protected static int ORTHONORMAL
           
protected static int SYMLET4
           
protected static int SYMLET8
           
protected static int UNHAAR
           
 
Constructor Summary
protected Filters(int size, int filter, double degree, double shift, int GDC)
          Prepare the computation the spectrum of the desired filter with the same number of samples as the signal to filter.
 
Method Summary
protected  void generateAnalysisFilters()
          Generate all the analysis filter.
protected  void generateSynthesisFilters()
          Generate all the synthesis filter.
protected  double[] getImaginaryHighpassFilter()
          Return the imaginary parts of the Highpass filter.
protected  double[] getImaginaryLowpassFilter()
          Return the imaginary parts of the Lowpass filter.
protected  double[] getRealHighpassFilter()
          Return the real parts of the Highpass filter.
protected  double[] getRealLowpassFilter()
          Return the real parts of the Lowpass filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HAAR

protected static final int HAAR
See Also:
Constant Field Values

ORTHONORMAL

protected static final int ORTHONORMAL
See Also:
Constant Field Values

SYMLET4

protected static final int SYMLET4
See Also:
Constant Field Values

SYMLET8

protected static final int SYMLET8
See Also:
Constant Field Values

BSPLINE

protected static final int BSPLINE
See Also:
Constant Field Values

DUAL

protected static final int DUAL
See Also:
Constant Field Values

UNHAAR

protected static final int UNHAAR
See Also:
Constant Field Values
Constructor Detail

Filters

protected Filters(int size,
                  int filter,
                  double degree,
                  double shift,
                  int GDC)
Prepare the computation the spectrum of the desired filter with the same number of samples as the signal to filter. There are Haar and unnormalized Haar filters, spline filters, and symlet filters (with 4 and 8 vanishing moments), but new filters can be added. After having executed the methods generateSynthesisFilter() and generateAnalysisFilters() the result is in four arrays : Lowpass filter in H (Hreal[size], Himag[size]) Highpass filter in G (Greal[size], Gimag[size])

Parameters:
size - length of the signal to process
filter - HAAR/UNHAAR/ORTHONORMAL/BSPLINE/DUAL/SYMLET4/SYMLET8
degree - degree of the splines (fractional degree)
shift - shift, for the symmetrical version of the filter shift = 0.0
GDC - if GDC=1, compute group-delay compensated filters
Method Detail

generateAnalysisFilters

protected void generateAnalysisFilters()
Generate all the analysis filter.


generateSynthesisFilters

protected final void generateSynthesisFilters()
Generate all the synthesis filter.


getRealHighpassFilter

protected double[] getRealHighpassFilter()
Return the real parts of the Highpass filter.


getImaginaryHighpassFilter

protected double[] getImaginaryHighpassFilter()
Return the imaginary parts of the Highpass filter.


getRealLowpassFilter

protected double[] getRealLowpassFilter()
Return the real parts of the Lowpass filter.


getImaginaryLowpassFilter

protected double[] getImaginaryLowpassFilter()
Return the imaginary parts of the Lowpass filter.