| Package | de.popforge.imageprocessing.filters.noise |
| Class | public class NoiseFilter |
| Implements | IFilter |
| Subclasses | GaussianNoise, UniformNoise |
The formula of this filter is new = (noise() - old) * amount.
Supported formats:
| Property | Defined by | ||
|---|---|---|---|
| amount : Number
Amount of the noise in percent.
| NoiseFilter | ||
| monochrom : Boolean
True uses for each channel the same noise value which results in a monochromatic noise.
| NoiseFilter | ||
| Method | Defined by | ||
|---|---|---|---|
|
NoiseFilter(amount:Number = 1, monochrom:Boolean = true)
Creates a new NoiseFilter object.
| NoiseFilter | ||
|
Applies the filter to the given Image object.
| NoiseFilter | ||
|
toString():String
Builds and returns a string containing the name of the class.
| NoiseFilter | ||
| Method | Defined by | ||
|---|---|---|---|
|
noise():Number
Calculates a new noise value and should be overriden.
| NoiseFilter | ||
| amount | property |
protected var amount:NumberAmount of the noise in percent.
| monochrom | property |
protected var monochrom:BooleanTrue uses for each channel the same noise value which results in a monochromatic noise.
| NoiseFilter | () | constructor |
public function NoiseFilter(amount:Number = 1, monochrom:Boolean = true)Creates a new NoiseFilter object.
Parametersamount:Number (default = 1) — Strengt of the noise in percent.
|
|
monochrom:Boolean (default = true) — Monochromatic mode uses same noise for each channel.
|
| apply | () | method |
public function apply(image:Image):voidApplies the filter to the given Image object.
Parametersimage:Image — The image that will be manipulated.
|
| noise | () | method |
protected function noise():NumberCalculates a new noise value and should be overriden.
ReturnsNumber — Noise value.
|
| toString | () | method |
public function toString():StringBuilds and returns a string containing the name of the class.
ReturnsString — A string containing the name of the class.
|