Converting images or colors - RGB and HLS/HSV |
rgb_to_hls(RGB) Returns single color vector or packed image matrix RGB in RGB color representation converted to HLS color representation.
rgb_to_hsv(RGB) Returns single color vector or packed image matrix RGB in RGB color representation converted to HSV color representation.
hls_to_rgb(HLS) Returns single color vector or packed image matrix HLS in HLS color representation converted to RGB color representation.
hsv_to_rgb(HSV) Returns single color vector or packed image matrix HSV in HSV 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.