init(Yp:Cr_R:Cr_G:Cb_G:Cb_B:)
Creates a 3 x 3 matrix for converting Y’CbCr signals to RGB.
Declaration
init(Yp: Float, Cr_R: Float, Cr_G: Float, Cb_G: Float, Cb_B: Float)Parameters
- Yp:
The
Ypin the conversion matrix. - Cr_R:
The
Cr_Rin the conversion matrix. - Cr_G:
The
Cr_Gin the conversion matrix. - Cb_G:
The
Cb_Gin the conversion matrix. - Cb_B:
The
Cb_Bin the conversion matrix.
Return Value
A 3 x 3 matrix for converting Y’CbCr signals to RGB.
Discussion
The vImage library uses this matrix to convert from YpCbCr to RGB using the following multiplication:
| R | | Yp 0 Cr_R | | Y' |
| G | = | Yp Cb_G Cr_G | * | Cb |
| B | | Yp Cb_B 0 | | Cr |