| Package | de.popforge.imageprocessing.filters.color |
| Class | public final class ToneMapping |
| Implements | IFilter |
This filter calculates the world luminance first using
.
The scale for the luminance is defined by dividing the world luminance by 18. After all for each pixel is the new luminance function
used.
Supported formats:
var filter: ToneMapping = new ToneMapping(); 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 | ||
|---|---|---|---|
|
Applies the filter to the given Image object.
| ToneMapping | ||
|
toString():String
Builds and returns a string containing the name of the class.
| ToneMapping | ||
| apply | () | method |
public function apply(image:Image):voidApplies the filter to the given Image object.
Parametersimage:Image — The image that will be manipulated.
|
| 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.
|