uk.ac.ed.ph.signal
Class Noise

java.lang.Object
  extended by uk.ac.ed.ph.signal.Noise

public class Noise
extends Object

Class to add noise to signals and images


Constructor Summary
Noise()
           
 
Method Summary
static void addGaussianDependantNoise(DataArray da, double scale)
          Static method to add signal dependant noise to a DataArray.
static void addGuassianIndependantNoise(DataArray da, double sd)
          Static method to add Guassian signal indepent noies to a general DataArray.
static void addGuassianIndependantNoise(RealImage im, double sd)
          Static method to add Guassian signal indepent noise to a RealImage
static void addGuassianIndependantNoise(RealSignal s, double sd)
          Static method to add Guassian signal indepent noies to a RealSignal
static void addPoissonNoise(DataArray da, double scale)
          Static method to add Poisson noise to a gneral DataArray after apply a scaling factor.
static void addPoissonNoise(RealImage im, double photons)
          Static method to add Poisson noise to a RealImage specifying the average number of photons per pixel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Noise

public Noise()
Method Detail

addGuassianIndependantNoise

public static void addGuassianIndependantNoise(RealSignal s,
                                               double sd)
Static method to add Guassian signal indepent noies to a RealSignal

Parameters:
s - the RealSignal
sd - standard deviation of the noise

addGuassianIndependantNoise

public static void addGuassianIndependantNoise(RealImage im,
                                               double sd)
Static method to add Guassian signal indepent noise to a RealImage

Parameters:
s - the RealSignal
sd - standard deviation of the noise

addGuassianIndependantNoise

public static void addGuassianIndependantNoise(DataArray da,
                                               double sd)
Static method to add Guassian signal indepent noies to a general DataArray.

Parameters:
da - the DataArray
sd - standard deviation of the noise

addGaussianDependantNoise

public static void addGaussianDependantNoise(DataArray da,
                                             double scale)
Static method to add signal dependant noise to a DataArray.


addPoissonNoise

public static void addPoissonNoise(RealImage im,
                                   double photons)
Static method to add Poisson noise to a RealImage specifying the average number of photons per pixel.

Parameters:
s - the RealImge
photons - mean number of photons per pixel.

addPoissonNoise

public static void addPoissonNoise(DataArray da,
                                   double scale)
Static method to add Poisson noise to a gneral DataArray after apply a scaling factor.