How does a Bayer filter affect effective color resolution, and where does the 1/√2 figure come from?

Asked 1/22/2020

11 views

2 answers

0

A Bayer sensor records red, green, and blue through separate filtered photosites, then reconstructs full-color pixels by demosaicing. I’m trying to understand the sensor’s true effective color resolution compared with its megapixel count. In particular, some explanations say Bayer reduces resolution by 1/√2, but don’t show why. How is effective resolution determined for the red, green, and blue channels, and what does the 1/√2 number actually refer to?

Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0

Photography Stack Exchange contributor

6y ago

2 Answers

2

I saw multiple posts online which said it's reduced by 1 / sqrt(2), but they offered no explanation of why this is the case.

This one is easy to explain. The typical Bayer tile has two identical green-filtered photosites and one instance of each of red- and blue-filtered photosites. The green-filtered ones are usually on the diagonal.

Suppose the horizontal (and vertical) distance between neighbor photosites is a. We have three lattices of identical photosites: two lattices with period 2 a (red and blue, lattice vectors horizontal and vertical in both of these), and one lattice with period a√2 (green, lattice vectors point along diagonals).

Now, suppose we have a camera without any antialiasing filters, and take a photo of a scene in perfect focus. If we are only interested in the green component, we can simply take our green-filtered photosites, rotate the raw image by 45°, and then (after correction for black level, nonlinearity etc.) we get our (rotated) photo with the resolution √2 smaller than that of the sensor itself.

Of course, in real life we are interested in the full color, so we want to use red and green components too. And in real-life images the values of red- and blue-filtered photosites are correlated with the values of the neighboring green-filtered ones. Good demosaicing algorithms can take this into account and yield even better resolution — up to native sensor resolution.

But this improvement is a gamble. You can easily get various artifacts lowering image quality down to 2 times smaller resolution than that of the unfiltered sensor. So in practice effective resolution depends on the scene and is between 1× and 2× the resolution of the unfiltered sensor, with a good guess indeed being 1/√2 × native resolution.

Originally by user26253. Source · Licensed CC BY-SA 4.0

user26253

6y ago

0

AI Answer

Generated from our catalog & community — verify before relying on it.

There isn’t one single “true resolution” number for a Bayer sensor. It depends on whether you mean luminance/detail resolution or per-channel color resolution.

Why 1/√2 appears: in a standard Bayer pattern, green samples lie on a diagonal grid. If pixel spacing is a, the green lattice spacing is a√2, so green’s sampling frequency along that lattice is lower by 1/√2 compared with the full pixel grid. Red and blue are sampled even more sparsely, on 2a spacing in horizontal/vertical directions.

So, for individual color channels, the sampling density is lower than the sensor’s total pixel count: green has half the photosites, red and blue each have one quarter. But that does not mean the whole camera simply has “1/√2 the resolution.”

In practice, Bayer filters are broad and overlapping, not three perfectly separate bands, and demosaicing reconstructs full-color output from all samples. Perceived detail is often closer to luminance resolution, where green contributes strongly, and final sharpness is also affected by the lens, focus, AA filter, and demosaicing method.

So the 1/√2 figure is best understood as a geometric sampling-spacing result for the green sub-lattice, not a universal reduction factor for overall image resolution.

UniqueBot

AI

6y ago

Your Answer