[−][src]Trait prisma::ycbcr::Canonicalize
A YCbCrModel that can transform a color in its space to the "canonical representation".
Required methods
fn to_canonical_representation(from: &YCbCr<T, Self>) -> (T, T, T)
Convert a YCbCr value into a tuple of channels in the canonical range.
YUV and YIQ both define their chromaticity channels in a range other than
[-1, 1]
. This function will convert from the normalized representation
to that defined by the standard being used.
Implementors
impl<'a, T> Canonicalize<T> for &'a CustomYCbCrModel where
T: PosNormalChannelScalar + NormalChannelScalar + NumCast,
StandardShift<T>: YCbCrShift<T>,
[src]
T: PosNormalChannelScalar + NormalChannelScalar + NumCast,
StandardShift<T>: YCbCrShift<T>,
fn to_canonical_representation(from: &YCbCr<T, Self>) -> (T, T, T)
[src]
impl<T> Canonicalize<T> for Bt709Model where
T: PosNormalChannelScalar + NormalChannelScalar + NumCast,
StandardShift<T>: YCbCrShift<T>,
[src]
T: PosNormalChannelScalar + NormalChannelScalar + NumCast,
StandardShift<T>: YCbCrShift<T>,
fn to_canonical_representation(from: &YCbCr<T, Self>) -> (T, T, T)
[src]
impl<T> Canonicalize<T> for CustomYCbCrModel where
T: PosNormalChannelScalar + NormalChannelScalar + NumCast,
StandardShift<T>: YCbCrShift<T>,
[src]
T: PosNormalChannelScalar + NormalChannelScalar + NumCast,
StandardShift<T>: YCbCrShift<T>,
fn to_canonical_representation(from: &YCbCr<T, Self>) -> (T, T, T)
[src]
impl<T> Canonicalize<T> for JpegModel where
T: PosNormalChannelScalar + NormalChannelScalar + NumCast,
StandardShift<T>: YCbCrShift<T>,
[src]
T: PosNormalChannelScalar + NormalChannelScalar + NumCast,
StandardShift<T>: YCbCrShift<T>,
fn to_canonical_representation(from: &YCbCr<T, Self>) -> (T, T, T)
[src]
impl<T> Canonicalize<T> for YiqModel where
T: PosNormalChannelScalar + NormalChannelScalar + NumCast,
StandardShift<T>: YCbCrShift<T>,
[src]
T: PosNormalChannelScalar + NormalChannelScalar + NumCast,
StandardShift<T>: YCbCrShift<T>,