当前位置:网站首页>[CV basis] Color: rgb/hsv/lab
[CV basis] Color: rgb/hsv/lab
2022-06-11 10:47:00 【Koma_ zhe】
RGB Color space
RGB In mode , The three components of the channel vector represent R 、G 、B The color intensity of the three color channels .R 、G 、B Equivalent to three orthogonal bases of color space . The difference in color is through R 、G 、B To mix and adjust a variety of complex colors .
RGB Color model benefits :
- Easy to understand ;
- It is convenient for hardware implementation , Modern displays are generally based on RGB Model
- Introduce bit resolution ( Color depth ), Refers to... In a pixel , Number of bits per color component . Bit resolution determines the color level , for example 8 Bit color depth , Each color component has 256 Maybe .
RGB Disadvantages of color models :
- All three components are used to represent hue , That is, if you change the value of a component , The color of this pixel changes .
- In color positioning and other projects , Use RGB The model should consider R 、G 、B Three variables , More complicated .
HSV Color space
HSV Color space ratio RGB Closer to people's perception of color , Very intuitive expression of color tone 、 Brightness and shade .
stay HSV In mode , Channel vector C It consists of three parts :
- tonal 、 Hue (Hue): Refers to the appearance and characteristics of color , In the waveform, a specific wavelength corresponds to a hue .
- saturation (Saturation): Refers to the degree of bright color , Present a rational ( Grayscale ) To sensibility ( Pure color ) The change of .
- Lightness (Value, Brightness): Refers to the light transmission of a certain color . And brightness (Lightness) Different , Brightness refers specifically to the concentration diluted by white light , The highlight of any color tends to be white , But each color is different .

HSV advantage :
The hue value can be processed separately , Without affecting lightness and saturation ; Or change the brightness alone 、 Saturation without affecting the color itself , Therefore, in image processing ,HSV Commonly used for color location tracking 、 Extract color histogram, etc .
HSV shortcoming :
Currently, there is little hardware support , Need from RGB Or other color space .
Lab Color space
Lab Design based on people's feeling of color , With perceptual uniformity (Perceptual Uniform), That is, if the parameter L、a、b The range of change is the same , The range of changes in human vision is also similar .
stay Lab In mode , Channel vector C It consists of three parts :
- brightness (Lightness)
- a Color component : Represents the component from green to red
- b Color component : From blue to yellow

Lab advantage :
It's also easy to adjust , Adjust the brightness only by paying attention to L passageway , Adjust the color balance only by paying attention to a and b passageway .
Lab It also has a wide color gamut 、 Equipment independent and other properties .
In the practical application of computer vision :
For a color digital picture , It is usually expressed as a
W × H × COf 3 D matrix . amongWRepresents the width of the picture ;HRepresents the height of the picture ;CIndicates the number of channels in the picture ;W × HIt describes the resolution of the picture —— Indicates the total number of pixels contained in the image ;CDescribes the color represented by pixels
边栏推荐
- Waiting event enq: Ko - some feasible processing methods for fast object checkpoint
- Leetcode 1952. 三除数
- Why is Web3 a game changer for the "creator economy"
- C # introductory series (11) -- multidimensional array
- 金仓数据库KingbaseES中的PL/SQL 编译检查
- 链接器和链接器选项、运行时库和运行时库设置、配置设置、生成过程和方法
- Jedislock redis distributed lock implementation
- Arbitrum 基础架构:快速入门
- NFT 2.0: 下一代的NFT将是精简且值得信赖的NFT
- 数字藏品app系统源码
猜你喜欢

Circuit board made of real gold -- golden finger

MXNet对AlexNet模型的构建与实现(与LeNet的对比)

Summary of common constraints in MySQL foundation part I

Arbitrum infrastructure: a quick start
使用 Feign 实现声明式 REST 调用

Preview component packaging graphic tutorial in cadence OrCAD capture schematic design interface

解读USB3.0测试项目

安装MySQL ,出现由于找不到 MSVCR120.dll,无法继续执行代码解决方法”

金仓数据库KingbaseES UDP监控工具的使用

MySQL基础篇常用约束总结上篇
随机推荐
Mxnet construction and implementation of alexnet model (comparison with lenet)
NGUI,冷却效果
Install MySQL version 5.7 or above on windows (install in compressed package)
Arbitrum 基础架构:快速入门
Wsarecv: an existing connection was forcefully closed by the remote host
White screen time, first screen time
Kingbasees create database objects in batch
IPhone 15 forced to use type-C interface
[MySQL] use of stored procedures
Leetcode 1961. 检查字符串是否为数组前缀
FPGA infrastructure [reference ug998]
安全相关网站推荐
Using ribbon to realize client load balancing
Mn Monet pagoda host system v1.5 release
修复UICollectionView 没有到达底部安全区的问题
Leetcode 1995. Statistics special quads (brute force enumeration)
SAP Spartacus Reference App Structure
GameFi:您需要了解的关于“即玩即赚”游戏经济的一切
< Pytorch series 4 & gt;: Constructing neural network model
When installing mysql, an error occurred because msvcr120 could not be found DLL, unable to continue code resolution "