Functions > Image Processing > Image Color Tools > Converting Between RGB and Television Images
  
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.
Arguments
RGB, YIQ, YCbCr are 3 × 1 vectors or packed image matrices with real values between 0 and 255.
Alternatively, the functions described above can take three arguments, for example (R,G,B), where R, G, and B are scalars or matrices.