| Package | de.popforge.imageprocessing.filters.color |
| Class | public final class ContrastCorrection |
| Inheritance | ContrastCorrection LUTFilter |
The formula of this filter is new = contrast * ( old - mean ) + mean.
Supported formats:
var filter: ContrastCorrection = new ContrastCorrection( 1.5 ); var video: WebCam = new WebCam( 160, 120 ); var image: Image = new Image( 160, 120, ImageFormat.RGB ); image.loadBitmapData( video.getCurrentFrame(), true ); filter.apply( image );
See also
| Method | Defined by | ||
|---|---|---|---|
|
ContrastCorrection(contrast:Number = 1.2)
Creates a new ContrastCorrection object with given contrast value.
| ContrastCorrection | ||
|
Applies the filter to the given Image object.
| ContrastCorrection | ||
|
toString():String
Builds and returns a string containing the name of the class.
| ContrastCorrection | ||
| ContrastCorrection | () | constructor |
public function ContrastCorrection(contrast:Number = 1.2)Creates a new ContrastCorrection object with given contrast value.
Parameterscontrast:Number (default = 1.2) — The contrast value. Values greater 1 add contrast, values lower 1 remove contrast.
|
| 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.
|