Differences between HSI, HSV, RGB, CMYK, HSL, HSB, Ycc, XYZ, Lab, and YUV color models

Source: Internet
Author: User
Tags color gamut
HSV Color Space
The model of HSV (hue, saturation, value) color space corresponds to a conical subset in the cylindrical coordinate system, and the top surface of the cone corresponds to V = 1. it contains the R = 1, G = 1, B = 1 in the RGB model, and the color is bright. Color H is given by the rotation angle around the V axis. The red color corresponds to the angle 0 °, the green color corresponds to the angle 120 °, and the blue color corresponds to the angle 240 °. In the HSV color model, each color is 180 ° different from its complementary color. The saturation S value ranges from 0 to 1, so the radius of the top surface of the cone is 1. The color field represented by the HSV color model is a subset of the CIE color chart. In this model, the saturation is, and the purity is generally less. V = 0, H, and S are not defined at the vertex (that is, the origin point) of the cone, indicating black. S = 0, V = 1, H at the center of the top surface of the cone, Which is white. From this point to the origin, it indicates that the brightness is dimmed, that is, it has different gray levels. Values of S = 0 and H for these points are not defined. It can be said that the V-axis pairs in the HSV model should be the primary diagonal lines in the RGB color space. The color V = 1, S = 1 on the circumference of the top surface of the cone. This color is solid color. The HSV model corresponds to the painter's color scheme. The painter uses the method of changing the color concentration and color depth to obtain different colors from a solid color. In a solid color, add white to change the color concentration, and add black to change the color depth, at the same time, add a different proportion of white, black to get a variety of different colors.


HSI color space
The HSI color space is used to describe the color from the human's visual system, using Hue, Saturation or Chroma, and Brightness (Intensity or Brightness. The HSI color space can be described using a conical space model. The cone model used to describe HIS color space is quite complex, but it can clearly show the variation of the color tone, brightness, and color saturation. Generally, the color and saturation are called the color, which is used to indicate the color category and depth. Human Vision is much more sensitive to brightness than to brightness. To facilitate color processing and recognition, human vision systems often use HSI color space, it is more human visual than RGB color space. A large number of algorithms in image processing and computer vision can be conveniently used in HSI color space. They can be processed separately and are independent of each other. Therefore, the workload of image analysis and processing can be greatly simplified in the HSI color space. The HSI color space and the RGB color space are different representations of the same physical quantity, so there is a conversion relationship between them.

Other color models:

RGB Color Space
The most common use of RGB (red, green, blue) color space is the display system, Color cathode ray tube, the R, G, and B numeric values are used to drive the electron emission from the R, G, and B electron guns, the R, G, and B phosphor in the fluorescent screen are respectively stimulated to emit light of different brightness, and various colors are produced by adding and mixing; the scanner also absorbs the R, G, and B Components in the light sent by reflection or transmission of the source, and uses it to represent the color of the source. The RGB color space is called the color space related to the device. Because different scanners scan the same image to obtain the image data of different colors, different models of displays display the same image, different colors are displayed. The RGB space used by the display and scanner is different from that used by the CIE 1931 RGB real three-color system. The latter is a color space unrelated to the device. Btw: Color Picker of Photoshop ). Displays the color values of each color in the HSB, RGB, LAB, and CMYK color spaces.

CMYK color space
CMYK (cyan, magenta, yellow) color space is used in the printing industry, the printing industry through the green (C), product (M), yellow (Y) different Sites of primary color ink are stacked to show a variety of colors and order adjustment, which is the CMY color space of the primary color. In actual printing, the blue (C), product (M), yellow (Y), Black (BK) four-color printing is generally used, and the black version is adjusted to the dark tone in the middle of the printing. When the three primary colors of red, green, and blue are mixed, they are white, but black is generated when the three primary colors of blue, purple, and yellow are mixed. Since the actual ink does not produce pure color, black is included in the separate color, and this model is called CMYK. CMYK color space is related to the equipment or printing process. The process method, the characteristics of the ink, and the characteristics of the paper have different printing results under different conditions. Therefore, the CMYK color space is called the table color space related to the device. In addition, CMYK has multiple values. That is to say, for the same color with the same absolute color, the CMYK digital combination can be used to represent and print the same printing process. This feature brings a lot of trouble to color management, as well as a lot of flexibility to control. In the printing process, it is necessary to go through a color separation process. The so-called color separation is to convert the RGB color used in the computer into the CMYK color used for printing. There are two complicated problems in the conversion process. One is that the two color spaces are not identical in the display color range, the RGB color gamut is large, and the CMYK is small, therefore, Color Gamut compression is required. The other two colors are related to specific devices, and the color itself is not absolute. Therefore, a device-independent color space is required for conversion, that is, the above XYZ or LAB color space can be used for conversion.

HSL Color Space
HSL (hue, saturation, lightness) color space, which is represented by the color of the user's desktop graphics program. It uses a hexagonal cone to represent its own color model.

HSB Color Space
HSB (hue, saturation, brightness) color space, which is represented by the color of the user's desktop graphics program and uses a hexagonal cone to represent his own color model.

Ycc Color Space
The color space invented by Kodak, because PhotoCd requires a compression mode when storing images, PhotoCd uses the Ycc color space, and the Ycc space uses the brightness as its main component, it has two separate color channels and uses Ycc color space to save images, saving storage space.

XYZ Color Space
The International Lighting Commission (CIE) conducted a large number of visual measurements and statistics for normal people. In 1931, it established the "Standard Color observer", which laid the quantitative basis for the modern CIE standard color measurement. Because "Standard Color observer" is used to calibrate spectral colors with negative stimulus values, the calculation is inconvenient and difficult to understand. Therefore, in 1931, based on the RGB system, A new color system is built with three hypothetical primary colors X, Y, and Z. It matches the tristimulus value of the isoenergy spectrum, and is named "CIE1931 standard color observer's tristimulus value", referred to as "CIE1931 standard color observer ". This system is called "CIE1931 standard color system" or "2 ° field of view XYZ color system ". CIEXYZ color space can be converted to Yxy color space with a slight change. Among them, Y takes the value of Y in the three stimulus value to indicate brightness. x and y reflect the color properties. Definition: In color management, it is very important to select a color space irrelevant to the device. The color space irrelevant to the device is determined by the International Lighting Commission (CIE, this includes two standards: CIEXYZ and CIELAB. They contain all the colors that human eyes can tell. In addition, the establishment of the CIEYxy color measuring system creates conditions for the determination of colors. However, in this space, the distance between two different colors does not correctly reflect the difference in people's color perception, that is, in the CIEYxy color building diagram, the color tolerance varies in different positions and directions, which is the non-uniformity of the Yxy color space. The existence of this defect makes it impossible to intuitively evaluate the color in the Yxy and XYZ spaces.

Lab color space
The Lab color space is a color model developed by CIE (International Lighting Commission. Any color in nature can be expressed in the Lab space, and its color space is larger than the RGB space. In addition, this mode is used to describe human visual sensing in a digital way and has nothing to do with the device. Therefore, it makes up for the shortcomings that RGB and CMYK modes must depend on the Color Characteristics of devices. The color space of the Lab is larger than that of the RGB and CMYK modes. This means that the color information that RGB and CMYK can describe can be reflected in the Lab space. The Lab color space uses the coordinate Lab, where L brightness; positive numbers of a represent red, negative ends represent green; positive numbers of B represent yellow, negative ends represent blue (a, B) there are L = 116f (y)-16, a = 500 [f (x/0.982)-f (y)], B = 200 [f (y) -f (z/1.183)]; where: f (x) = 7.787x + 0.138, x <0.008856; f (x) = (x) 1/3, x> 0.008856

YUV color space
In Modern Color TV systems, a three-pipe color camera or a Color CCD (DOT coupler) camera is usually used to obtain the color image signal after color separation and amplification correction respectively, after the matrix conversion circuit, the Brightness Signal Y and two chromatic aberration Signals R-Y and B-Y are obtained. Finally, the sender encodes the brightness and chromatic aberration Signals respectively and sends them out through the same channel. This is our commonly used YUV color space. The importance of using YUV color space is that its brightness signal Y is separated from the color signal U and V. If only the Y Signal component is used, and the U and V components are not used, the black and white gray images are displayed. The color TV uses the YUV space to solve the compatibility problem between the color TV and the black and white TV with the Brightness Signal Y, so that the black and white TV can also receive the color signal. According to the NTSC standard, when the brightness of white light is expressed by Y, the relationship between the NTSC standard and red, green, and blue light can be described by the following equation: Y = 0.3R + 0.59G + 0.11B this is a commonly used brightness formula. Chromatic Aberration U, V is made of B-Y, R-Y compressed according to different proportions. If you want to convert the YUV space into an RGB space, you only need to perform inverse operations. Similar to the YUV color space, there is also the Lab color space. It also uses brightness and chromatic aberration to describe the color components, where L is the brightness, a and B are the color components respectively.

Alibaba Cloud Hot Products

Elastic Compute Service (ECS) Dedicated Host (DDH) ApsaraDB RDS for MySQL (RDS) ApsaraDB for PolarDB(PolarDB) AnalyticDB for PostgreSQL (ADB for PG)
AnalyticDB for MySQL(ADB for MySQL) Data Transmission Service (DTS) Server Load Balancer (SLB) Global Accelerator (GA) Cloud Enterprise Network (CEN)
Object Storage Service (OSS) Content Delivery Network (CDN) Short Message Service (SMS) Container Service for Kubernetes (ACK) Data Lake Analytics (DLA)

ApsaraDB for Redis (Redis)

ApsaraDB for MongoDB (MongoDB) NAT Gateway VPN Gateway Cloud Firewall
Anti-DDoS Web Application Firewall (WAF) Log Service DataWorks MaxCompute
Elastic MapReduce (EMR) Elasticsearch

Alibaba Cloud Free Trail

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.