Optimal CFA spectral response

JimKasson

Community Leader
Forum Moderator
Messages
52,270
Solutions
52
Reaction score
59,055
Location
Monterey, CA, US
There is a widespread belief about Bayer color filter array (CFA) response spectra. It goes something like this:
  1. The old CCD cameras used to have great color.
  2. The reason they had such good color is the dye layers in the CFA were thick.
  3. Thick dye layers led to highly selective (narrow band) spectral responses.
  4. Modern CMOS cameras have lousy color.
  5. The reason is that they are trying to reduce photon noise in the images.
  6. Making the CFA filters less selective reduced the photon noise, but made the colors bad.
I have seen no evidence that the color is better -- which, for the purpose of this post, I'll define as more accurate -- on old CCD cameras than it is on new CMOS ones. I've owned and used several old medium format CCD cameras and backs, and I don't think the color was more accurate.

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:



f28cb68437bc4e75a22fff4c400a55df.jpg.png



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:



10c2676adc81474791448cca94b8c788.jpg.png



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:



1e3333a1f5c84671b9cc4a0038a4a901.jpg.png



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?



3aeb0fade974488c85de9ef52a012b9b.jpg.png



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:
  1. Too much overlap is bad for color accuracy.
  2. Too little overlap is bad for color accuracy.
  3. For optimal SMI performance, the red and green center wavelengths should be fairly close.
  4. For optimal SMI performance, the red and green overlap should be larger than we see in most cameras.
  5. You can achieve remarkably high SMIs -- much higher than we see with consumer cameras -- with simple Gaussian spectra.
  6. The CFA spectra for high SMI isn't that far off the CFA spectra for low chroma noise.
  7. My guess is that the reason we don't have better SMIs in consumer cameras is the availability of chemical compounds, not noise considerations.
Caveats:
  • I optimized and tested with the same patch set. This is not ideal.
  • 24 patches is a small number.
  • I didn't simulate demosaicing.


--
 
There is a widespread belief about Bayer color filter array (CFA) response spectra. It goes something like this:
  1. The old CCD cameras used to have great color.
  2. The reason they had such good color is the dye layers in the CFA were thick.
  3. Thick dye layers led to highly selective (narrow band) spectral responses.
  4. Modern CMOS cameras have lousy color.
  5. The reason is that they are trying to reduce photon noise in the images.
  6. Making the CFA filters less selective reduced the photon noise, but made the colors bad.
I have seen no evidence that the color is better -- which, for the purpose of this post, I'll define as more accurate -- on old CCD cameras than it is on new CMOS ones. I've owned and used several old medium format CCD cameras and backs, and I don't think the color was more accurate.

... / ...

Here are my conclusions from this exercise:
  1. Too much overlap is bad for color accuracy.
  2. Too little overlap is bad for color accuracy.
  3. For optimal SMI performance, the red and green center wavelengths should be fairly close.
  4. For optimal SMI performance, the red and green overlap should be larger than we see in most cameras.
  5. You can achieve remarkably high SMIs -- much higher than we see with consumer cameras -- with simple Gaussian spectra.
  6. The CFA spectra for high SMI isn't that far off the CFA spectra for low chroma noise.
  7. My guess is that the reason we don't have better SMIs in consumer cameras is the availability of chemical compounds, not noise considerations.
Caveats:
  • I optimized and tested with the same patch set. This is not ideal.
  • 24 patches is a small number.
  • I didn't simulate demosaicing.
Very interesting and informative as usual,

thanks Jim !

Is there substantial SNR improvements to expect from 'RCCB' CFAs, without too much penalty to the SMI, as it was said by several sites a few years ago (+/-2016-18) ?

the rightmost pattern 'RCCB' seem interesting...
the rightmost pattern 'RCCB' seem interesting...

?

---
https://www.dpreview.com/galleries/7467909648/albums/marseille-by-night
 
There is a widespread belief about Bayer color filter array (CFA) response spectra. It goes something like this:
  1. The old CCD cameras used to have great color.
  2. The reason they had such good color is the dye layers in the CFA were thick.
  3. Thick dye layers led to highly selective (narrow band) spectral responses.
  4. Modern CMOS cameras have lousy color.
  5. The reason is that they are trying to reduce photon noise in the images.
  6. Making the CFA filters less selective reduced the photon noise, but made the colors bad.
I have seen no evidence that the color is better -- which, for the purpose of this post, I'll define as more accurate -- on old CCD cameras than it is on new CMOS ones. I've owned and used several old medium format CCD cameras and backs, and I don't think the color was more accurate.

... / ...

Here are my conclusions from this exercise:
  1. Too much overlap is bad for color accuracy.
  2. Too little overlap is bad for color accuracy.
  3. For optimal SMI performance, the red and green center wavelengths should be fairly close.
  4. For optimal SMI performance, the red and green overlap should be larger than we see in most cameras.
  5. You can achieve remarkably high SMIs -- much higher than we see with consumer cameras -- with simple Gaussian spectra.
  6. The CFA spectra for high SMI isn't that far off the CFA spectra for low chroma noise.
  7. My guess is that the reason we don't have better SMIs in consumer cameras is the availability of chemical compounds, not noise considerations.
Caveats:
  • I optimized and tested with the same patch set. This is not ideal.
  • 24 patches is a small number.
  • I didn't simulate demosaicing.
Very interesting and informative as usual,

thanks Jim !

Is there substantial SNR improvements to expect from 'RCCB' CFAs, without too much penalty to the SMI, as it was said by several sites a few years ago (+/-2016-18) ?

the rightmost pattern 'RCCB' seem interesting...
the rightmost pattern 'RCCB' seem interesting...

?
I’m guessing that improves luminance noise at the expense of either chroma noise or spatial resolution, depending on the pattern.



I haven’t run any tests, and don’t plan to do so.

--
 
Here's the reason for the increased chroma noise:

0b91986abdcb4819b827025ec97ab834.jpg.png

Note the large off-diagonal term
Large off diagnoal term indeed. And for those following along, the 2.3406 and -1.6160 are primarily responsible for multiplying the noise in each channel and adding them together, while each the total amount of signal stays the same.

--
Stay Calm and Carry Cameras
 
Hi,

All I ever noticed, CCD v CMOS is some had better color than others. And that had as much to do with the processing as it did the sensor and CFA combination.

Kodak had the tendency to mimic their film with their systems. And they were mostly CCD. There was a noticable difference with the 14 MP CMOS v the 6 MP and 16 MP CCDs at that particular time. But the CMOS wasn't Kodak although the CFA was probably theirs.

To me, it was always the signal to noise ratio that got my attention. For example the Sony sensor in the D1 via the later variant in the D1H.

My bottom line is I figure out how to best diddle with processing whatever whichever gives me to produce a print which pleases me in the end.

Stan
 
Any people shots with studio lights from those old CCD sensors? Thanks.
 
Last edited:
Image made about the same time with a CMOS camera:

100bb63dd2e843f8adf16da88ccad083.jpg

I made no attempt to set the same WB. H2D image developed in Phocus. d2X image develo0ped in early version of Lr.
Thanks. I am not seeing any particular differences. Will check on my monitor later.
The WB is certainly different.

--
 
Image made about the same time with a CMOS camera:

100bb63dd2e843f8adf16da88ccad083.jpg

I made no attempt to set the same WB. H2D image developed in Phocus. d2X image develo0ped in early version of Lr.
Both images white balanced to the shirt collar.



57ab1c4b9b8f4ec3a88f73f01261cca5.jpg





a98d9bb41ebf442c9faa476588e5b727.jpg



--
 
Hi,

In all the various CCD v CMOS comparison shots I have ever seen, I see all sorts of differences, but never any which seem important. Well, at base ISO. Boosted, the CCD noise loses.

As far as color accuracy goes, not having the seen the scene with my own eyes, I can never tell diddly/squat. And, usually, either would do for me as I doubt they are all that far off. Even the ones Jim posted earlier where the WB was different wasn't enough to bother me. Better when reset, of course.

Stan
 
Any people shots with studio lights from those old CCD sensors? Thanks.
P45+
P45+

A7rII
A7rII
Hi Erik,

The image from the P45+ seems to have richer tonality to me. But the shirt and backdrop also have a magenta cast to them whereas the wood paneling is greener.

Is there weak IR-cut filtration on the P45+ by chance that is skewing the colors?

fPrime

--
Half of my heart is a shotgun wedding to a bride with a paper ring,
And half of my heart is the part of a man who's never truly loved anything.
 
Any people shots with studio lights from those old CCD sensors? Thanks.
P45+
P45+

A7rII
A7rII
Hi Erik,

The image from the P45+ seems to have richer tonality to me. But the shirt and backdrop also have a magenta cast to them whereas the wood paneling is greener.

Is there weak IR-cut filtration on the P45+ by chance that is skewing the colors?

fPrime
I did consider that...

On the other hand, Doug Peterson from DT suggested that lime-fruit had a high IR content, and one of my test shoots I had three lime-fruits and they rendered very well on P45+.

Kodak delivered CCD sensors to Phase One without the IR-filter, so IR-filtering was Phase One's choice, not Kodak's.

Best regards

Erik

--
Erik Kaffehr
Website: http://echophoto.dnsalias.net
Magic uses to disappear in controlled experiments…
Gallery: http://echophoto.smugmug.com
Articles: http://echophoto.dnsalias.net/ekr/index.php/photoarticles
 

Keyboard shortcuts

Back
Top