Image Processing Toolbox | ![]() ![]() |
Converting to Other Color Spaces
The Image Processing Toolbox represents colors as RGB values, either directly (in an RGB image) or indirectly (in an indexed image, where the colormap is stored in RGB format). However, there are other models besides RGB for representing colors numerically. For example, a color can be represented by its hue, saturation, and value components (HSV) instead. The various models for color data are called color spaces.
The functions in the Image Processing Toolbox that work with color assume that images use the RGB color space. However, the toolbox provides support for other color spaces though a set of conversion functions. You can use these functions to convert between RGB and the following color spaces:
These section describes these color spaces and the conversion routines for working with them:
![]() | Dithering | NTSC Color Space | ![]() |