|
RGB to HSV colorspace converter. More...
Functions | |
AFAPI array | rgb2hsv (const array &in) |
C++ Interface for converting RGB to HSV. More... | |
AFAPI af_err | af_rgb2hsv (af_array *out, const af_array in) |
C Interface for converting RGB to HSV. More... | |
RGB to HSV colorspace converter.
RGB (Red, Green, Blue) is the most common format used in computer imaging. RGB stores individual values for red, green and blue, and hence the 3 values per pixel. A combination of these three values produces the gamut of unique colors.
HSV (Hue, Saturation, Value), also known as HSB (hue, saturation, brightness), is often used by artists because it is more natural to think about a color in terms of hue and saturation than in terms of additive or subtractive color components (as in RGB). HSV is a transformation of RGB colorspace; its components and colorimetry are relative to the RGB colorspace from which it was derived. Like RGB, HSV also uses 3 values per pixel.
C Interface for converting RGB to HSV.
[out] | out | is an array in the HSV color space |
[in] | in | is an array in the RGB color space |
in
must be three dimensional