fractsplinewavelets
Class CoefProcessing

java.lang.Object
  |
  +--fractsplinewavelets.CoefProcessing

public final class CoefProcessing
extends java.lang.Object


Plugin of ImageJ:
Fractional Spline Wavelet

Authors:
Daniel Sage daniel.sage@epfl.ch
Swiss Federal Institute of Technology Lausanne, Biomedical Imaging Group, CH-1015 Lausanne, Switzerland, http://bigwww.epfl.ch

Version:
24 January 2002

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


Purpose of the class:
Some example of wavelet coefficients processing.


Constructor Summary
CoefProcessing()
           
 
Method Summary
static void doEnhancement(fractsplinewavelets.ImageAccess coef, double factor, int scale)
          Compute the number of non zero pixels.
static void doHardThreshold(fractsplinewavelets.ImageAccess coef, double threshold)
          Apply a hard thresholding to all coefficients.
static void doProcessing(fractsplinewavelets.ImageAccess coef)
          Template for a processing routine.
static void doSoftThreshold(fractsplinewavelets.ImageAccess coef, double threshold)
          Apply a soft thresholding to all coefficients.
static void rescale(fractsplinewavelets.ImageAccess coef, int scale)
          Apply a rescaling.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoefProcessing

public CoefProcessing()
Method Detail

doProcessing

public static final void doProcessing(fractsplinewavelets.ImageAccess coef)
Template for a processing routine.
Parameters:
coef - an ImageAcess object representing the wavelet coefficients

doSoftThreshold

public static final void doSoftThreshold(fractsplinewavelets.ImageAccess coef,
                                         double threshold)
Apply a soft thresholding to all coefficients. All the image values lower than '-threshold' and greater than 'threshold' are set to 0. The remaining positive values are reduced by 'threshold'; the remaining negative values are augmented by 'threshold'.
Parameters:
coef - an ImageAcess object representing the wavelet coefficients
threshold - a value giving the threshold

doHardThreshold

public static final void doHardThreshold(fractsplinewavelets.ImageAccess coef,
                                         double threshold)
Apply a hard thresholding to all coefficients. All the image values lower than '-threshold' and greater than 'threshold' are set to 0.
Parameters:
coef - an ImageAcess object representing the wavelet coefficients
threshold - a value giving the threshold

doEnhancement

public static final void doEnhancement(fractsplinewavelets.ImageAccess coef,
                                       double factor,
                                       int scale)
Compute the number of non zero pixels.
Parameters:
coef - an ImageAcess object representing the wavelet coefficients
factor - enhancement's factor

rescale

public static final void rescale(fractsplinewavelets.ImageAccess coef,
                                 int scale)
Apply a rescaling. Stretches the contrast inside High-High,High-Low and Low-High so that the gray levels are in the range : the positivy values are stretched to center-max and the negative values are stretched to min-center and a contrast stretching is applied on the Low-Low
Parameters:
coef - an ImageAcess object representing the wavelet coefficients
scale - number of iterations realised