| Package | de.popforge.imageprocessing.filters.color |
| Class | public final class LevelsCorrection |
| Inheritance | LevelsCorrection LUTFilter |
The implementation of this filter has been derived from gimp-2.3.7 sources (/app/core/drawable-levels.c)
Supported formats:
var filter: LevelsCorrection = new LevelsCorrection( true ); var video: WebCam = new WebCam( 160, 120 ); var image: Image = new Image( 160, 120, ImageFormat.RGB ); image.loadBitmapData( video.getCurrentFrame(), true ); filter.apply( image );
| Property | Defined by | ||
|---|---|---|---|
| automatic : Boolean Indicates whether the parameters will be set automatically or not.
| LevelsCorrection | ||
| from : Array The start on the histogram's x-axis for every channel (0x00 to 0xff).
| LevelsCorrection | ||
| gamma : Array The gamme value which should be applied for every channel (0.1 to 5).
| LevelsCorrection | ||
| to : Array The end on the histogram's x-axis for every channel (0x00 to 0xff).
| LevelsCorrection | ||
| Method | Defined by | ||
|---|---|---|---|
|
LevelsCorrection(automatic:Boolean = true, from:Array = null, gamma:Array = null, to:Array = null)
Creates a new LevelsCorrection object.
| LevelsCorrection | ||
|
Applies the filter to the given Image object.
| LevelsCorrection | ||
|
toString():String
Builds and returns a string containing the name of the class.
| LevelsCorrection | ||
| automatic | property |
public var automatic:BooleanIndicates whether the parameters will be set automatically or not.
| from | property |
public var from:ArrayThe start on the histogram's x-axis for every channel (0x00 to 0xff).
| gamma | property |
public var gamma:ArrayThe gamme value which should be applied for every channel (0.1 to 5).
| to | property |
public var to:ArrayThe end on the histogram's x-axis for every channel (0x00 to 0xff).
| LevelsCorrection | () | constructor |
public function LevelsCorrection(automatic:Boolean = true, from:Array = null, gamma:Array = null, to:Array = null)
Creates a new LevelsCorrection object.
Using automatic levels correction is done by calling new LevelsCorrection( true ).
automatic:Boolean (default = true) — Indicates whether the parameters will be set automatically or not.
|
|
from:Array (default = null) — The start on the histogram's x-axis for every channel (0x00 to 0xff).
|
|
gamma:Array (default = null) — The end on the histogram's x-axis for every channel (0x00 to 0xff).
|
|
to:Array (default = null) — The gamme value which should be applied for every channel (0.1 to 5).
|
| apply | () | method |
public override function apply(image:Image):voidApplies the filter to the given Image object.
Parametersimage:Image — The image that will be manipulated.
|
| 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.
|