[][src]Struct lcms2::CIECAM02

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

Trait Implementations

impl Drop for CIECAM02[src]

Auto Trait Implementations

impl !Send for CIECAM02

impl Unpin for CIECAM02

impl !Sync for CIECAM02

impl UnwindSafe for CIECAM02

impl RefUnwindSafe for CIECAM02

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]