OpenCV HSV color Space Basic Color Range _ Basic Color range

Source: Internet
Author: User

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



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.