[−][src]Struct lcms2::CIECAM02
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
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]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,