util.wavelet
Class SimpleWaveletSpace

java.lang.Object
  extended by util.wavelet.SimpleWaveletSpace

public class SimpleWaveletSpace
extends Object

A simple wavelet space contains a simple signal and its wavelet transform.

  1. The original SimpleSignal
  2. An ordered list of instances of SimpleSignal representing scales
  3. An instance of smoothed signal

Author:
John Talbot

Field Summary
 List<SimpleSignal> scales
          List of scales containing wavelet coefficients.
 SimpleSignal signal
          Reference to original signal.
 
Constructor Summary
SimpleWaveletSpace(SimpleSignal signal)
          Construct a discrete wavelet transform using the 1D A-Trous method with a b3-spline smoothing function.
 
Method Summary
 SimpleSignal getContinuum()
          Get the continuum of a signal.
 int getNumberOfScales()
          Get the number of scales as computed by the atrous wavelet transform.
 SimpleSignal getReconstruction()
          Discrete wavelet transform reconstruction using the 1D A-Trous method with a b3-spline smoothing function.
 SimpleSignal getReconstruction(WObject wObject)
          Discrete wavelet transform reconstruction using the 1D A-Trous method with a b3-spline smoothing function.
 SimpleSignal getScale(int scaleNumber)
          Get the specified scale as computed by the atrous wavelet transform.
 SimpleSignal getSmoothedSignal()
          Get the last smoothed array as computed by the atrous wavelet transform.
 void mask(WObject wObject)
          Use the WObject as a mask to eliminate wavelet coefficients not in the object.
 void setScale(int scaleNumber, SimpleSignal scale)
          Set the scale at the specified scale number.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

signal

public SimpleSignal signal
Reference to original signal.


scales

public List<SimpleSignal> scales
List of scales containing wavelet coefficients.

Constructor Detail

SimpleWaveletSpace

public SimpleWaveletSpace(SimpleSignal signal)
Construct a discrete wavelet transform using the 1D A-Trous method with a b3-spline smoothing function. (Starck 2002 p.29). Boundary conditions are handled by the simple signal object.

Parameters:
signal - the simple signal to be wavelet transformed
Method Detail

getContinuum

public SimpleSignal getContinuum()
Get the continuum of a signal. The continuum is computed by iteratively substracting the smoothed signal from the signal; the iteration is required due to border problems. (see Starck 1998 p.127).

Returns:
the continuum of the signal

getSmoothedSignal

public SimpleSignal getSmoothedSignal()
Get the last smoothed array as computed by the atrous wavelet transform.

Returns:
the last smoothed array as a simple signal

getScale

public SimpleSignal getScale(int scaleNumber)
Get the specified scale as computed by the atrous wavelet transform.

Parameters:
scaleNumber - the scale number
Returns:
the specified scale as an instance of simple signal

setScale

public void setScale(int scaleNumber,
                     SimpleSignal scale)
Set the scale at the specified scale number.

Parameters:
scaleNumber - the scale number
scale - the specified scale

getNumberOfScales

public int getNumberOfScales()
Get the number of scales as computed by the atrous wavelet transform.

Returns:
the number of scales

mask

public void mask(WObject wObject)
Use the WObject as a mask to eliminate wavelet coefficients not in the object.


getReconstruction

public SimpleSignal getReconstruction()
Discrete wavelet transform reconstruction using the 1D A-Trous method with a b3-spline smoothing function. Reconstruction is computed by summing up all the scales plus the last smoothed array. (see Starck 1998 p.21-26).

Returns:
the reconstructed signal as an instance of simple signal

getReconstruction

public SimpleSignal getReconstruction(WObject wObject)
Discrete wavelet transform reconstruction using the 1D A-Trous method with a b3-spline smoothing function. Reconstruction is computed by summing up all the structures belonging to the WObject plus the last smoothed array. (see Starck 1998 p.21-26).

Returns:
the reconstructed signal as an instance of simple signal