Lynkeos
Instance Methods | Class Methods | Public Attributes | List of all members
LynkeosGammaCorrecter Class Reference

Class which handle the gamma correction. More...

#import <LynkeosGammaCorrecter.h>

Inheritance diagram for LynkeosGammaCorrecter:
Inheritance graph
[legend]
Collaboration diagram for LynkeosGammaCorrecter:
Collaboration graph
[legend]

Instance Methods

(void) - releaseCorrecter
 Let the gamma converter be reused for another gamma value if needed.
 

Class Methods

(LynkeosGammaCorrecter *) + getCorrecterForGamma:
 get a converter for a gamma value, it is created if needed More...
 

Public Attributes

double _gamma
 Current gamma value.
 
double _exponent
 Real exponent applied to the curve.
 
double _linearExtent
 Raw value extent of the linear part.
 
double _offset
 Offset for the linear part.
 
double _slope
 Slope of the linear part.
 
u_char * _lut
 Look Up Table for 8 bit conversion.
 
u_long _lutSize
 Size of the LUT.
 
u_long _inUse
 To avoid changing the gamma while used.
 

Detailed Description

Class which handle the gamma correction.

It is instanciated once per window controller to allow caching gamma related data (LUT for instance).

Method Documentation

+ (LynkeosGammaCorrecter *) getCorrecterForGamma: (double)  gamma

get a converter for a gamma value, it is created if needed

Parameters
gammaThe gamma value
Returns
The converter

References _gamma, and _inUse.


The documentation for this class was generated from the following files: