Raster Devices
Output Devices
Display
-
Transmissive: LCD (liquid crystal display)(液晶显示器)
-
Emissive: LED (light-emitting diode) display (发光二极管显示器)
Hardcopy Devices
- Binary: ink-jet printer(喷墨打印机)
2.Continuous tone:dye sublimation printer(热升华打印机)
与显示器不同,打印机的分辨率由像素密度决定而不是像素总数;还有一些术语:
- ppi(pixxels per inch)(每英寸像素)
- dpi(dots per inch)(每英寸点数)
- MP(megapixel)(百万像素)
Input Devices
- 2D array sensor:digital camera(数码相机)
相机的分辨率由数组中固定的像素数确定,通常使用像素总数表示。 - 1D array sensor:flatbed scanner(平板扫描仪)
Images, Pixels, and Geometry
宽度为 nx,高度为 ny 的图像的矩阵区域为:
R = [-0.5, nx - 0.5] X [-0.5, ny - 0.5]
Pixel Values
- HDR(high dynamic range):浮点数存储
- LDR(low dynamic range):整数存储
如下是一些应用的像素表示:
Monitor Intensities and Gamma
实际的显示器关闭时,其强度会出现一些非零值,因为屏幕会反射一些光线;显示器强度公式如下:
displayed intensity = (maximum intensity) aγ
a 为输入的区间[0, 1]内的像素值;a = 0 表示 zero intensity,a = 1 表示 maximum intensity。
RGB Color
black = (0, 0, 0)
red = (1, 0, 0)
green = (0, 1, 0)
blue = (0, 0, 1)
yellow = (1, 1, 0)
magenta = (1, 0, 1)
cyan = (0, 1, 1)
white = (1, 1, 1)
Alpha Compositing
有些时候想要在给定的背景图片上添加部分前景;如果前景颜色为 cf,后景颜色为 cb,前景覆盖的像素比例为 α,那么有公式:c = αcf + (1 - α)cb
Image Storage
为了减少存储需求,大部分图像形式允许进行压缩,对图像进行压缩可能会有损失。如下所示: