There is a widespread belief about Bayer color filter array (CFA) response spectra. It goes something like this:
I decided to apply some analysis to the issue. Jack Hogan has demonstrated that you can get pretty darned close to a Macbeth CC24 Sensory Metamerism Index (SMI) of 100 with three Gaussian spectral responses of well-chosen peak wavelengths and standard deviations. I fired up a Matlab simulator that started a long time ago with some code I got from Jack, made some changes, and found such an optimal CFA response set for the CIE 1931 2-degree Standard Observer:

There are four quadrants in the above chart. On the top right is the response of the optimal Gaussians. The standard deviations in nanometers are given in the subtitle. To the left of that is the error, in CIELab DeltaE 2000, for each of the Macbeth CC24 patches, with an optimal compromise matrix. The overall SMI, 99.3, is shown. A perfect SMI is 100. I've never seen a real consumer camera get above the low 90s. Most real cameras are in the 80s. Below that, on the left, in red, is the response of the simulated camera and compromise matrix to a range of spectral inputs spanning the visible wavelengths. The blue curve is the correct response.
The bottom right graph needs some explication. I simulated a camera with a full well capacity of 10,000 electrons, or a camera with a FWC of 40,000 electrons at two stops above base ISO. I simulated an exposure sufficient to illuminate the raw values of the lightest gray patch to 95% of full scale. I simulated a 40,000-pixel patch, and, assuming a Poisson distribution for photon counting, measured the mean chroma noise in CIElab DeltaAB. The average for all 24 patches is a bit over 6 DeltaAB.
Now let's tighten up the standard deviations, and make them all 20 nm. Then we'll search for the optimal wavelengths for the peaks:

The color accuracy is much worse, but about the same as many consumer cameras, and the noise is slightly better. This is with the same exposure as the top chart. Since the filters are more selective and less light is hitting the sensor, the signal to noise ratio of the photon noise is worse, but the compromise matrix means that that degradation doesn't result in greater chroma noise.
If we tighten the standard deviations down to 10 nm and reoptimize the peak locations, here's what happens:

Now both the SMI and the chroma noise is worse, and the locus of spectral colors is very short.
What happens if we make the standard deviations large?

The SMI isn't too bad, but the chroma noise is worse, in spite of more light hitting the sensor. The spectral coverage looks pretty good.
Here are my conclusions from this exercise:
--
blog.kasson.com
- The old CCD cameras used to have great color.
- The reason they had such good color is the dye layers in the CFA were thick.
- Thick dye layers led to highly selective (narrow band) spectral responses.
- Modern CMOS cameras have lousy color.
- The reason is that they are trying to reduce photon noise in the images.
- Making the CFA filters less selective reduced the photon noise, but made the colors bad.
I decided to apply some analysis to the issue. Jack Hogan has demonstrated that you can get pretty darned close to a Macbeth CC24 Sensory Metamerism Index (SMI) of 100 with three Gaussian spectral responses of well-chosen peak wavelengths and standard deviations. I fired up a Matlab simulator that started a long time ago with some code I got from Jack, made some changes, and found such an optimal CFA response set for the CIE 1931 2-degree Standard Observer:

There are four quadrants in the above chart. On the top right is the response of the optimal Gaussians. The standard deviations in nanometers are given in the subtitle. To the left of that is the error, in CIELab DeltaE 2000, for each of the Macbeth CC24 patches, with an optimal compromise matrix. The overall SMI, 99.3, is shown. A perfect SMI is 100. I've never seen a real consumer camera get above the low 90s. Most real cameras are in the 80s. Below that, on the left, in red, is the response of the simulated camera and compromise matrix to a range of spectral inputs spanning the visible wavelengths. The blue curve is the correct response.
The bottom right graph needs some explication. I simulated a camera with a full well capacity of 10,000 electrons, or a camera with a FWC of 40,000 electrons at two stops above base ISO. I simulated an exposure sufficient to illuminate the raw values of the lightest gray patch to 95% of full scale. I simulated a 40,000-pixel patch, and, assuming a Poisson distribution for photon counting, measured the mean chroma noise in CIElab DeltaAB. The average for all 24 patches is a bit over 6 DeltaAB.
Now let's tighten up the standard deviations, and make them all 20 nm. Then we'll search for the optimal wavelengths for the peaks:

The color accuracy is much worse, but about the same as many consumer cameras, and the noise is slightly better. This is with the same exposure as the top chart. Since the filters are more selective and less light is hitting the sensor, the signal to noise ratio of the photon noise is worse, but the compromise matrix means that that degradation doesn't result in greater chroma noise.
If we tighten the standard deviations down to 10 nm and reoptimize the peak locations, here's what happens:

Now both the SMI and the chroma noise is worse, and the locus of spectral colors is very short.
What happens if we make the standard deviations large?

The SMI isn't too bad, but the chroma noise is worse, in spite of more light hitting the sensor. The spectral coverage looks pretty good.
Here are my conclusions from this exercise:
- Too much overlap is bad for color accuracy.
- Too little overlap is bad for color accuracy.
- For optimal SMI performance, the red and green center wavelengths should be fairly close.
- For optimal SMI performance, the red and green overlap should be larger than we see in most cameras.
- You can achieve remarkably high SMIs -- much higher than we see with consumer cameras -- with simple Gaussian spectra.
- The CFA spectra for high SMI isn't that far off the CFA spectra for low chroma noise.
- My guess is that the reason we don't have better SMIs in consumer cameras is the availability of chemical compounds, not noise considerations.
- I optimized and tested with the same patch set. This is not ideal.
- 24 patches is a small number.
- I didn't simulate demosaicing.
--
the last word the last word - Photography meets digital computer technology. Photography wins -- most of the time.
Photography meets digital computer technology. Photography wins -- most of the time.
blog.kasson.com












