pub struct CIECAM02 { /* private fields */ }
Expand description
CIE CAM02
Implementations§
Source§impl CIECAM02
impl CIECAM02
Sourcepub fn new(conditions: ViewingConditions) -> LCMSResult<Self>
pub fn new(conditions: ViewingConditions) -> LCMSResult<Self>
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.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CIECAM02
impl RefUnwindSafe for CIECAM02
impl !Send for CIECAM02
impl !Sync for CIECAM02
impl Unpin for CIECAM02
impl UnwindSafe for CIECAM02
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more