Turn from: http://www.xuebuyuan.com/2149290.html
HSV color model
HSV (Hue, saturation, Value) is based on the visual characteristics of the color by a. R. Smith created a color space in 1978, also known as the hexagonal cone model (hexcone). The color parameters in this model are: Hue (H), saturation (S), Brightness (V).
Tonal h: Use angle measure, take value range for 0°~360°, start from red counterclockwise direction, red is 0°, Green is 120°, Blue is 240 °. Their complementary colors are: Yellow is 60°, cyan is 180°, magenta is 300°, saturation s: The value range is 0.0~1.0; brightness V: The value range is 0.0 (black) ~1.0 (white). Both the RGB and CMY color models are hardware-oriented, while the HSV (Hue saturation Value) color model is user-oriented. The three-dimensional representation of the HSV model evolved from an RGB cube. Visualize the hexagonal shape of the cube by observing the black vertex from the RGB white vertex along the diagonal of the cube. The hexagonal boundary represents the color, the horizontal axis represents purity, and the lightness is measured along the vertical axis.
HSV Color Component Range
Generally, the effective processing of color space images is done in the HSV space, and then the corresponding HSV component in the basic color needs to be given a strict range, the following is the experimental calculation of the fuzzy range (the exact range is not given on the net).
h:0-180
s:0-255
v:0-255
Here, part of the red is the Purple range:
Black
Gray
White
Red
Orange
Yellow
Green
Green
Blue
Purple
Hmin
0
0
0
0
156
11
26
35
78
100
125
Hmax
180
180
180
10
180
25
34
77
99
124
155
Smin
0
0
0
43
43
43
43
43
43
43
Smax
255
43
30
255
255
255
255
255
255
255
Vmin
0
46
221
46
46
46
46
46
46
46
Vmax
46
220
255
255
255
255
255
255
255
255