denoise
Class Denoising

java.lang.Object
  extended by denoise.Denoising

public class Denoising
extends java.lang.Object


Constructor Summary
Denoising(ImageWare input, double[] Alpha, double[] Delta, double[] Sigma, boolean FRAMEWISE, int CYCLESPIN, int MULTIFRAME)
          Constructor of the class Denoising.
 
Method Summary
 boolean estimateNoiseParameters()
          Method for automatic (either global or framewise) noise parameters estimation.
 double[] getAlpha()
          Method to get the value of the detector gain for each frame/slice.
 double[] getDelta()
          Method to get the value of the detector offset for each frame/slice.
 int getMaxThread()
          Method to get the maximum number of parallel threads launched.
 ImageWare getOutput()
          Method to get the output of the denoising task.
 double getProgress()
          Method to get the level of progression during the denoising process.
 double[] getSigma()
          Method to get the standard deviation of the additive-white-Gaussian-noise (AWGN) for each frame/slice.
 boolean getStop()
          Method to detect whether the denoising process has been stopped by the user.
 void perform()
          Method for parallel denoising of multidimensional images.
 void setAlpha(double[] alpha)
          Method to set the value of the detector gain for each frame/slice.
 void setCycleSpins(int cyclespin)
          Method to set the number of cycle-spin(s) for reducing potential blocking artifacts.
 void setDelta(double[] delta)
          Method to set the value of the detector offset for each frame/slice.
 void setFramewise(boolean framewise)
          Method to set the type of noise parmeters estimation (global or framewise).
 void setLog(boolean log)
          Method to display some messages related to the current denoising task.
 void setMultiFrame(int multiframe)
          Method to set the number of adjacent frames/slices for multi-frame/slices denoising.
 void setSigma(double[] sigma)
          Method to set the standard deviation of the additive-white-Gaussian-noise (AWGN) for each frame/slice.
 void setStop(boolean stop)
          Method to interrupt the current denoising task.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Denoising

public Denoising(ImageWare input,
                 double[] Alpha,
                 double[] Delta,
                 double[] Sigma,
                 boolean FRAMEWISE,
                 int CYCLESPIN,
                 int MULTIFRAME)
Constructor of the class Denoising.

Parameters:
input - input data to be denoised (3D ImageWare object)
Alpha - double array containing the estimated detector gain for each frame/slice.
Delta - double array containing the estimated detector of- fset for each frame/slice.
Sigma - double array containing the estimated AWGN standard deviation for each frame/slice.
FRAMEWISE - true->Framewise noise parameters estimation false->Global noise parameters estimation.
CYCLESPIN - number of cycle-spins (CS>0). A high value of CS yields a high-quality denoising result, but the computation time linearly increases with CS.
MULTIFRAME - number of adjacent frames/slices to be considered for multi-frame/slices denoising. MF>0 must be odd.
Method Detail

estimateNoiseParameters

public final boolean estimateNoiseParameters()
Method for automatic (either global or framewise) noise parameters estimation.


perform

public final void perform()
Method for parallel denoising of multidimensional images.


setFramewise

public final void setFramewise(boolean framewise)
Method to set the type of noise parmeters estimation (global or framewise).

Parameters:
framewise - type of noise parmeters estimation: true->Framewise. false->Global.

setCycleSpins

public final void setCycleSpins(int cyclespin)
Method to set the number of cycle-spin(s) for reducing potential blocking artifacts.

Parameters:
cyclespin - number of cycle-spins (cyclespin>0).

setStop

public final void setStop(boolean stop)
Method to interrupt the current denoising task.

Parameters:
stop - true->Stop the current denoising task.

setLog

public final void setLog(boolean log)
Method to display some messages related to the current denoising task.

Parameters:
log - true->Enable display. false->Disable display.

setMultiFrame

public final void setMultiFrame(int multiframe)
Method to set the number of adjacent frames/slices for multi-frame/slices denoising.

Parameters:
multiframe - number of adjacent frames/slices for multi-frame/slices denoising.

setAlpha

public final void setAlpha(double[] alpha)
Method to set the value of the detector gain for each frame/slice.

Parameters:
alpha - array containing the value of the detector gain for each frame/slice.

setDelta

public final void setDelta(double[] delta)
Method to set the value of the detector offset for each frame/slice.

Parameters:
delta - array containing the value of the detector offset for each frame/slice.

setSigma

public final void setSigma(double[] sigma)
Method to set the standard deviation of the additive-white-Gaussian-noise (AWGN) for each frame/slice.

Parameters:
sigma - array containing the standard deviation of the AWGN for each frame/slice.

getAlpha

public final double[] getAlpha()
Method to get the value of the detector gain for each frame/slice.

Returns:
Alpha array containing the value of the detector gain for each frame/slice.

getDelta

public final double[] getDelta()
Method to get the value of the detector offset for each frame/slice.

Returns:
Delta array containing the value of the detector offset for each frame/slice.

getSigma

public final double[] getSigma()
Method to get the standard deviation of the additive-white-Gaussian-noise (AWGN) for each frame/slice.

Returns:
Sigma array containing the standard deviation of the AWGN for each frame/slice.

getOutput

public final ImageWare getOutput()
Method to get the output of the denoising task.

Returns:
output 3D ImageWare containing the denoised image.

getMaxThread

public final int getMaxThread()
Method to get the maximum number of parallel threads launched.

Returns:
MAX_THREAD the maximum number of parallel threads launched.

getProgress

public final double getProgress()
Method to get the level of progression during the denoising process.

Returns:
progress level between 0 and 100.

getStop

public final boolean getStop()
Method to detect whether the denoising process has been stopped by the user.

Returns:
STOP boolean.