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)

> Transform a colormap or image from the RGB space to the HSV space.

> A color in 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.