Converting between RGB and television images |
rgb_to_yiq(RGB) Returns single color vector or packed image matrix RGB in RGB color representation converted to YIQ color representation.
rgb_to_ycbcr(RGB) Returns single color vector or packed image matrix RGB in RGB color representation converted to YCbCr color representation.
yiq_to_rgb(YIQ) Returns single color vector or packed image matrix YIQ in YIQ color representation converted to RGB color representation.
ycbcr_to_rgb(YCbCr) Returns single color vector or packed image matrix YCbCr in YCbCr color representation converted to RGB color representation.
Alternatively, the functions described above can take three arguments, for example (R,G,B), where R, G, and B are scalars or matrices.