颜色模式
颜色模型和颜色空间
简单的说就是数字世界中颜色的表示方式,即使用数学抽象出颜色的表示方式。仅仅只是一种模型。色彩空间是一个标准,它定义了一组特定的颜色。对一种颜色进行编码的方法统称为“颜色空间”或“色域”。
英文是这样描述的:
Color Models and Color Spaces
The human eye apprehends color as light in a fairly narrow band of the electromagnetic spectrum. The biology of the eye makes it particularly receptive to red, blue, and green light. Humans can visualize a broad range of colors through mixtures of these three primary colors.
A color model is a geometric or mathematical framework that attempts to describe the colors we see. It uses numerical values pinned to dimensions of the model to represent the visible spectrum of color. A color model gives us a method for describing, classifying, comparing, and ordering colors.
A color space is a practical adaptation of a color model that specifies a gamut of colors that can be ?produced using that model. The color model determines the relationship between values, and the color space defines the absolute meaning of those values as colors. These values, called components, are in most instances floating-point values between 0.0 and 1.0.
计算机中的颜色格式
常见的颜色有 8位16位 24位32位色,其中24位及以上称为真彩,是PC上最常用的颜色,其他基本用于嵌入式系统或一些工控领域,详情可查阅一下表格:
Bit-深度 | 最大色彩 |
---|---|
1 | 2(monochrome) |
2 | 4(CGA) |
4 | 16(EGA) |
8 | 256(VGA) |
16 | 65536(XGA) |
24 | 16777216(True Color/真彩色,SVGA) |
32 | 16777216(True Color+Alpha Channel/控制透明度,-游戏特效) |
Bit-深度也代表了每个像素点所占用计算机的位数。
常用的颜色模型分类
RGB颜色模型
介绍
它是一种色光表色模式。现在已成为了工业界的一种颜色标准,