Navigation

Operators and Keywords

Function List:

C++ API

Function File: hsv_map = rgb2hsv (rgb)
Function File: hsv_map = rgb2hsv (rgb)

Transform a colormap or image from red-green-blue (RGB) space to hue-saturation-value (HSV) space.

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

A color in HSV space is represented by hue, saturation, and value (brightness) levels. 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, rgb2ind, rgb2ntsc.

Package: octave