Previous: Plotting on top of Images, Up: Image Processing

### 31.5 Color Conversion

Octave supports conversion from the RGB color system to NTSC and HSV and vice versa.

— Function File: hsv_map = rgb2hsv (rgb_map)

> Transform a colormap or image from the rgb space to the hsv space.

> A color n the RGB space consists of the red, green and blue intensities.

> In the HSV space each color is represented by their hue, saturation and value (brightness). Value gives the amount of light in the color. Hue describes the dominant wavelength. Saturation is the amount of Hue mixed into the color.

> See also: hsv2rgb.

— Function File: rgb_map = hsv2rgb (hsv_map)

> Transform a colormap or image from the hsv space to the rgb space.

> See also: rgb2hsv.

— Function File: rgb2ntsc (rgb)

> Transform a colormap or image from RGB to NTSC.

> See also: ntsc2rgb.

— Function File: ntsc2rgb (yiq)

> Transform a colormap or image from NTSC to RGB.

> See also: rgb2ntsc.