| Package | de.popforge.imageprocessing.filters.noise |
| Class | public final class GaussianNoise |
| Inheritance | GaussianNoise NoiseFilter |
Supported formats:
var filter: GaussianNoise = GaussianNoise(); var video: WebCam = new WebCam( 160, 120 ); var image: Image = new Image( 160, 120, ImageFormat.RGB ); image.loadBitmapData( video.getCurrentFrame(), true ); filter.apply( image );
| Method | Defined by | ||
|---|---|---|---|
|
GaussianNoise(amount:Number = 0.5, monochrom:Boolean = true, mean:int = 0x80, variance:int = 800)
Creates a GaussianNoise object.
| GaussianNoise | ||
![]() |
Applies the filter to the given Image object.
| NoiseFilter | |
|
toString():String
Builds and returns a string containing the name of the class.
| GaussianNoise | ||
| Method | Defined by | ||
|---|---|---|---|
|
noise():Number
| GaussianNoise | ||
| GaussianNoise | () | constructor |
public function GaussianNoise(amount:Number = 0.5, monochrom:Boolean = true, mean:int = 0x80, variance:int = 800)Creates a GaussianNoise object.
Parametersamount:Number (default = 0.5) — Strengt of the noise in percent.
|
|
monochrom:Boolean (default = true) — Monochromatic mode uses same noise for each channel.
|
|
mean:int (default = 0x80) — The mean value for the noise function.
|
|
variance:int (default = 800) — The variance for the noise function.
|
| noise | () | method |
protected override function noise():Number
Returns
Number |
| toString | () | method |
public override function toString():StringBuilds and returns a string containing the name of the class.
ReturnsString — A string containing the name of the class.
|