JIGL
v1.6

jigl.image.ops
Class GaussianNoise

java.lang.Object
  |
  +--jigl.image.SimpleOperator
        |
        +--jigl.image.ops.GaussianNoise
All Implemented Interfaces:
Operator

public class GaussianNoise
extends SimpleOperator

Adds gaussion noise distributions to an image. Supports GrayImage, RealGrayImage, ColorImage, RealColorImage.


Field Summary
private  float m_stdDeviation
          Standard deviation of Gaussian noise.
 
Constructor Summary
GaussianNoise(float stdDev)
          constructor.
 
Method Summary
protected  Image apply(ColorImage image)
          Adds noise to image following the gaussian distribution.
protected  Image apply(ColorImage image, ROI roi)
          Adds noise to image in the specified Region of Interest, following the gaussian distribution.
protected  Image apply(GrayImage image)
          Adds noise to image following the gaussian distribution.
protected  Image apply(GrayImage image, ROI roi)
          Adds noise to image in the specified Region of Interest, following the gaussian distribution.
protected  Image apply(RealColorImage image)
          Adds noise to image following the gaussian distribution.
protected  Image apply(RealColorImage image, ROI roi)
          Adds noise to image in the specified Region of Interest, following the gaussian distribution.
protected  Image apply(RealGrayImage image)
          Adds noise to image following the gaussian distribution.
protected  Image apply(RealGrayImage image, ROI roi)
          Adds noise to image in the specified Region of Interest, following the gaussian distribution.
 
Methods inherited from class jigl.image.SimpleOperator
apply, apply, apply, apply, apply, apply
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_stdDeviation

private float m_stdDeviation
Standard deviation of Gaussian noise.

Constructor Detail

GaussianNoise

public GaussianNoise(float stdDev)
constructor.

Parameters:
stdDev - Standard Deviation
Method Detail

apply

protected Image apply(GrayImage image)
Adds noise to image following the gaussian distribution.

Overrides:
apply in class SimpleOperator
Parameters:
image - GrayImage to add noise to.
Returns:
image.

apply

protected Image apply(GrayImage image,
                      ROI roi)
Adds noise to image in the specified Region of Interest, following the gaussian distribution.

Overrides:
apply in class SimpleOperator
Parameters:
image - GrayImage to add noise to.
roi - Region of Interest of image.
Returns:
a GrayImage object.

apply

protected Image apply(RealGrayImage image)
Adds noise to image following the gaussian distribution.

Overrides:
apply in class SimpleOperator
Parameters:
image - RealGrayImage to add noise to.
Returns:
image.

apply

protected Image apply(RealGrayImage image,
                      ROI roi)
Adds noise to image in the specified Region of Interest, following the gaussian distribution.

Overrides:
apply in class SimpleOperator
Parameters:
image - RealGrayImage to add noise to.
roi - Region of Interest of image.
Returns:
image.

apply

protected Image apply(ColorImage image)
Adds noise to image following the gaussian distribution. This is done by adding noise to each plane seperately.

Overrides:
apply in class SimpleOperator
Parameters:
image - ColorImage to add noise to.
Returns:
image.

apply

protected Image apply(ColorImage image,
                      ROI roi)
Adds noise to image in the specified Region of Interest, following the gaussian distribution. This is done by adding noise to each plane seperately.

Overrides:
apply in class SimpleOperator
Parameters:
image - ColorImage to add noise to.
roi - Region of Interest of image.
Returns:
image.

apply

protected Image apply(RealColorImage image)
Adds noise to image following the gaussian distribution. This is done by adding noise to each plane seperately.

Overrides:
apply in class SimpleOperator
Parameters:
image - RealColorImage to add noise to.
Returns:
image.

apply

protected Image apply(RealColorImage image,
                      ROI roi)
Adds noise to image in the specified Region of Interest, following the gaussian distribution. This is done by adding noise to each plane seperately.

Overrides:
apply in class SimpleOperator
Parameters:
image - RealColorImage to add noise to.
roi - Region of Interest of image.
Returns:
image.

JIGL
v1.6

Submit a bug or feature
Revised in May 2002 by Weiming Liu