Struct lcms2::CIECAM02
[−]
[src]
pub struct CIECAM02 { /* fields omitted */ }
CIE CAM02
Methods
impl CIECAM02
[src]
pub fn new(conditions: ViewingConditions) -> LCMSResult<Self>
[src]
A CAM02 object based on given viewing conditions.
Such object may be used as a color appearance model and evaluated in forward and reverse directions. Viewing conditions structure is detailed in Table 43. The surround member has to be one of the values enumerated in Table 44. Degree of chromatic adaptation (d), can be specified in 0...1.0 range, or the model can be instructed to calculate it by using D_CALCULATE constant (-1).
Viewing conditions. Please note those are CAM model viewing conditions, and not the ICC tag viewing conditions, which I'm naming cmsICCViewingConditions to make differences evident. Unfortunately, the tag cannot deal with surround La, Yb and D value so is basically useless to store CAM02 viewing conditions.
pub fn forward(&mut self, input: &CIEXYZ) -> JCh
[src]
Evaluates the CAM02 model in the forward direction
pub fn reverse(&mut self, input: &JCh) -> CIEXYZ
[src]
Evaluates the CAM02 model in the reverse direction