| Package | de.popforge.imageprocessing.filters.color |
| Class | public class LUTFilter |
| Implements | IFilter |
| Subclasses | BrightnessCorrection, ContrastCorrection, Curves, Extract, GammaCorrection, Invert, LevelsCorrection |
The formula of this filter is new = lut[ old ].
Supported formats:
| Property | Defined by | ||
|---|---|---|---|
| cache : Boolean
The caching value.
| LUTFilter | ||
| tables : Array
The look-up tables stored in an array.
| LUTFilter | ||
| Method | Defined by | ||
|---|---|---|---|
|
LUTFilter(cache:Boolean = false)
Creates a new LUTFilter object.
| LUTFilter | ||
|
Applies the filter to the given Image object.
| LUTFilter | ||
|
toString():String
Builds and returns a string containing the name of the class.
| LUTFilter | ||
| Method | Defined by | ||
|---|---|---|---|
|
buildTables(image:Image):void
This function creates the amount of necessary look-up tables.
| LUTFilter | ||
|
getArray():Array
Creates a new look-up table.
| LUTFilter | ||
| cache | property |
protected var cache:Boolean
The caching value. Caching is enabled if cache is set to true.
| tables | property |
protected var tables:ArrayThe look-up tables stored in an array.
| LUTFilter | () | constructor |
public function LUTFilter(cache:Boolean = false)Creates a new LUTFilter object. If you set cache to true the tables will be cached and only created once.
Parameterscache:Boolean (default = false) — Set to true if you only want to create the tables once.
|
| apply | () | method |
public function apply(image:Image):voidApplies the filter to the given Image object.
Parametersimage:Image — The image that will be manipulated.
|
| buildTables | () | method |
protected function buildTables(image:Image):voidThis function creates the amount of necessary look-up tables.
Parametersimage:Image — The image that will be manipulated.
|
InvalidImageFormatError — When the ImageFormat is not supported.
|
| getArray | () | method |
protected function getArray():ArrayCreates a new look-up table.
ReturnsArray — A general look-up table from 0x00 to 0xff.
|
| 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.
|