The sensor used in color models of the camera is equipped with an additive color separation filter
known as a Bayer filter. The pixel data output formats available on color cameras are related to the
Bayer pattern, so you need a basic knowledge of the Bayer filter to understand the pixel formats.
With the Bayer filter, each individual pixel is covered by a micro-lens that allows light of only one
color to strike the pixel. The pattern of the Bayer filter used on the camera is as shown in Figure 37
(the alignment of the Bayer filter with repect to the sensor is shown as an example only; the figure
shows the "BG" filter alignment). Asthe figure illustrates, within each square of four pixels, one pixel
sees only red light, one sees onlyblue light, and two pixels see only green light. (This combination
mimics the human eye’s sensitivity to color.)
(不知道怎么把图片传上来,图片在空间的博客文章用图 - BayerBG.jpg)
Bayer GB alignment means that pixel zero and pixel one of the first line in each image transmitted
will be green and blue respectively. And for the second linetransmitted, pixel zero and pixel one will
be red and green respectively. Since the pattern ofthe Bayer filter is fixed, you can use this
information to determine the color of all of the other pixels in the image.
Bayer BG alignment means that pixel zero and pixel one of the first line in each image transmitted
will be blue and green respectively. And for the second linetransmitted, pixel zero and pixel one will
be green and red respectively. Since the pattern ofthe Bayer filter is fixed, you can use this
information to determine the color of all of the other pixels in the image.
本文介绍了相机中使用的Bayer滤镜的工作原理。Bayer滤镜通过将不同颜色通道分配给图像传感器上的各个像素来实现颜色分离。每个像素仅接收一种颜色的光,这通常模仿人眼的颜色敏感度。文章还详细解释了Bayer滤镜的不同排列方式,例如BG和GB排列,以及如何根据这些排列确定图像中所有像素的颜色。
5862

被折叠的 条评论
为什么被折叠?



