imColorRGB2YCbCr

Converts R'G'B' to Y'CbCr (all nonlinear). \n * ITU-R Recommendation 601-1 with no headroom/footroom. \verbatim 0 <= Y <= 1 ; -0.5 <= CbCr <= 0.5 ; 0 <= RGB <= 1

Y' = 0.299 *R' + 0.587 *G' + 0.114 *B' Cb = -0.169 *R' - 0.331 *G' + 0.500 *B' Cr = 0.500 *R' - 0.419 *G' - 0.081 *B' \endverbatim * \ingroup color

version(IM)
pure nothrow @nogc @safe
void
imColorRGB2YCbCr
(
T
)
(
const T R
,
const T G
,
const T B
,
ref T Y
,
ref T Cb
,
ref T Cr
,
ref const(T) zero
)
if (
isNumeric!T
)

Meta