In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "what is the color model of RGB and Lab". In the daily operation, I believe that many people have doubts about what the color model of RGB and Lab is. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts of "what is the color model of RGB and Lab?" Next, please follow the editor to study!
RGB
RGB color mode is a color standard in the industry, through the change of red (R), green (G), blue (B) three color channels and their superposition to get a variety of colors. RGB represents the color of red, green and blue channels. In general, RGB has 256 levels of brightness, represented by numbers from 0, 1, 2. Until 255. According to the calculation, the RGB colors of 256 levels can be combined into about 16.78 million colors, that is, 256 × 256 × 256 colors 16777216. It is also referred to as 16 million colors or ten million colors for short.
Lab
The Lab color model is composed of three elements: luminance (L) and an and b related to color. L represents Luminosity, a represents the range from magenta to green, and b represents the range from yellow to blue. The range of L is equal to 50% black when the range of L is from 0 to 100, and the range of an and b is from + 127 to-128, where + 127 an is red and turns green when it gradually transitions to-128 a; similarly, + 127 b is yellow and-128 b is blue. All colors are made up of these three values interacting with each other. For example, if the Labs value of a color is L = 100, a = 30, b = 0, the color is pink. (note: the color of a-axis and b-axis in this mode is different from that of RGB, magenta is redder, green is bluer, yellow is reddish, and blue is slightly cyan.)
In addition, a variety of other color models are involved, including CMYK, YCrCb, HSV and so on.
R language color selection
In R language, RGB color model can be selected directly based on rgb () function, HSV color selection can be done according to hsv function, and rgb can be converted into hsv with the help of rgb2hsv ().
At this point, the study of "what is the color model of RGB and Lab" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.