I’m often asked how CMOS Active Pixel Sensors differ from CCD sensors in terms of image calibration. For me, as a camera designer and a user, it’s been something of a learning process—not all CMOS sensors behave the same way. There are some rather surprising differences compared to CCD sensors. The basic principles are largely the same, but the details can be very different.
I’ll first discuss the differences from a technical standpoint. If you aren’t interested in the nitty-gritty technical details, skip to Part II for some specific recommendations on your calibration process.
Part I – What’s Different Between CMOS and CCD?
Both types of sensors detect light the same way, but the readout process is vastly different.
CCD sensors are simple analog devices running at relatively slow speeds (typically 1 to 20 MHz). They have very few active transistors, possibly as few as two, just to read out the pixels in one corner of the sensor. Some sensors have four readout amplifiers for each corner to speed up readout. Some have limited additional onboard electronics to handle substrate bias or other basic functions.
The electronics that transfer the pixels to the readout are all external to the sensor; they strobe electrodes inside. Likewise, the electronics that process and convert the sensor output to digital numbers are also external. The designer is responsible for the external circuitry, such as selecting the analog-to-digital converter, power supply, amplifiers, and other items needed for a reliable, low-noise, and accurate camera.
CMOS APS sensors are quite the opposite. Instead of a handful of transistors, there are millions. These transistors run at very high speeds, often well over 100 MHz. There are transistors at every pixel. They amplify and switch photoelectrons onto internal wires. Along the sides of the silicon sensor itself (often top and bottom), there are large sections full of electronics – typically eight or more sets top and bottom that include: double-correlated samplers, multiplexers, analog-to-digital converters, drive electronics, high-speed data encoding and transfer electronics, and output line drivers.
Why does this matter? I’ll explain.
Frame Cycle
CCDs don’t have a frame cycle, which is a repeating process for each image frame to come out immediately after the other in a fixed time interval, as is typical for video. Instead, the camera flushes the pixels, waits a while for photoelectrons to accumulate, and reads them out. High-speed versions of CCD sensors can do video rates; making them do longer exposures is as simple as waiting longer between flush and readout.
Most CMOS sensors are fundamentally designed as high-speed video sensors, with some tricks for longer exposures. As such, they output data every frame cycle. The frame cycle time (or frame time for short) can be tens to hundreds of milliseconds depending on the size of the sensor, the readout mode used, and the detailed electronics design of the specific sensor.
Rolling shutter sensors reset the lines of pixels one after the other down the chip. They then read the lines one after the other, with a slight delay between the reset and the readout—this is your exposure time. This runs continuously if the exposure is shorter than the frame time.
To take a long exposure, the sensor skips cycles. The electronics prevented from reading out the sensor for a certain number of frames. The sensor will typically go through the motions of reading out without doing anything, but more advanced models can optionally partially power down during this time.
It isn’t hard to see that the behavior of the sensor could be very different when operating for continuous frames versus skipping frames to take a long exposure. It’s possible for different makes or models of a camera using the same sensor to behave very differently – the camera designer has many choices they can make.
Amp Glow
Camera designers—and users—must constantly cope with the well-known problem of “amp glow.” This is the built-in electronics generating areas of glow within the sensor itself. However, you may not know this glow’s source is very different between CCD and CMOS sensors.
CCD sensors have a small number of transistors, but they are biased at relatively large voltages. Typically, 15V is used for the readout transistors. The transistors act as tiny, inefficient light-emitting diodes (LEDs) at those voltage levels. They may not generate much light, but they do it right inside the chip, resulting in a glow in the corner where the readout amplifier is located (and, depending on the sensor design, possibly in other areas too). The solution is temporarily reducing the voltage during integration while the photons accumulate. You can’t turn it off entirely without disabling the sensor, but you can set it low enough to prevent significant LED emission. The voltage is turned back up a few seconds before the readout starts, and everything returns to the same as before.
CMOS sensors have millions of transistors operating at low voltages but at high speeds. The low voltage means they don’t generate LED effects. Unfortunately, operating at high speed means they generate heat—lots of heat. That heat results in hot spots where the dark current is higher. There’s some extra heat at every pixel, but it’s massively more heightened in the readout electronics at the sensor’s top and bottom edges (or sides).
Managing this heat is difficult. If you have a series of short, one-frame exposures, the heat generated by the onboard readout electronics is very significant. On the other hand, if you take a long exposure and the sensor design allows you to turn things off during that time, the chip cools down during integration but heats back up a bit during readout. This cycle doesn’t make calibration impossible if it’s consistent, but when you change exposure time, you change the heat pattern.
A key implication is that you can’t scale dark frames to match the exposure like you can with a CCD. When you change the exposure, the amp glow pattern changes. Some modern sensor designs have improved characteristics, which helps mitigate the obvious glow, but it can still adversely impact calibration.
Bias Stability
Many CMOS sensor models automatically adjust the bias level on every exposure. This allows the manufacturer to ensure maximum sensor dynamic range on long exposures where dark current increases the apparent background bias level.
That’s a good idea for a consumer DSLR camera but a bad idea for a scientific sensor! You want the ultimate stability at the bias level. If you add a small constant to any calibration frame, flat-field calibration will become inaccurate – it’s simple math. [(A + Offset) / (B + Offset) is not the same as A / B!]
Some manufacturers allow the camera designer to turn this function on or off; others do not. One sensor I’ve been working on in recent weeks defaults off, but the manufacturer strongly recommends that you turn it on. That is advice I am not following! Other manufacturers may recommend something different.
The practical impact is that temperature and exposure time changes could impact the bias level. So if you’re wondering why your flat-fields aren’t working perfectly, this is possibly the cause.
The solution? First, take all your frames at the same sensor temperature. That includes light frames, flat-field frames, and dark frames. Try to make everything as consistent as possible; in extreme cases, that might even mean matching your flat-field frame exposure times to your light frames—which could be very difficult to achieve.
Thermal Regulation
CCD sensors have minimal on-chip heat generation. However, because of the active electronics, CMOS active pixel sensors are very much the opposite—larger sensors can make several watts of heat. In addition, they generate much more heat when reading out than when they are idle (or integrating).
The temperature of a CMOS sensor will always increase when the readout is active. That is unavoidable, but the key thing is consistency. Don’t run a series of 100 back-to-back 0.1-second exposures to focus, and immediately start running long exposures (dark or light). Let the temperature of the sensor re-stabilize first. Also, bear in mind that some camera manufacturers may not understand the subtleties of temperature regulation with these devices. I’m going to some lengths in my designs to ensure as stable a temperature as possible, but I don’t know what other manufacturers are doing. Even with careful camera design, the sensors’ variable thermal generation effects make it impossible to be perfect.
The best advice I can give is to wait a while for the sensor to cool down after focusing/centering before you start doing science images. Or better yet, start imaging and throw away any early frames contaminated by extra heat. This is better because you know the camera is in a stable operating mode, generating the same amount of heat in the same pattern.
Thermal Regulation, Again!
How do you do this with a CMOS sensor? In practice, this can be a challenge. Some sensors have onboard temperature sensors, but they’re located with the readout electronics. As a result, the pixels themselves can be a couple of degrees cooler. When it comes to image calibration, that’s a lot! I always recommend +/-0.1C regulation for accurate calibration.
What about a thermistor on top of the cold finger? That seems reasonable, but the sensor generates heat – a small amount right at the pixels and a larger amount at the readout electronics. The reality is that the pixels can be warmer than the cold finger by a couple of degrees.
You don’t need to know the exact temperature as long as it’s consistent. That said, the temperature difference between the sensor and your measuring device will change depending on whether you’re doing long or short exposures. So, you may need to wait for the sensor temperature to stabilize after changing exposure times.
An even more pernicious problem can present itself – ambient temperature coupling. You can sometimes see that changes in the heat sink temperature affect the sensor temperature slightly. The camera says it’s the same, but it’s not. Depending on the sensor’s dark current levels, this might not be a significant problem.
We’ve gone to great lengths to ensure stability over ambient temperature on some of our camera designs, including using copper cold fingers to minimize temperature differences and, in some cases, advanced algorithms to compensate for known effects.
My recommendation: verify. Try doing a set of dark frames at the same sensor temperature but in different ambient temperature conditions at least 10C apart. Generate master darks for both and subtract them from each other. Better yet, make two sets at each temperature to compare subtracting master frames at identical ambient temperatures versus subtracting master frames at different temperatures. Either way, make sure you get a nice clean frame with no extra dark current noise and no offset. I will cover this in more detail in the next section.
Part II – Calibration Recommendations
Validate Your Hardware
Different CMOS APS cameras will behave differently, even with the same sensor. The camera designer can change the operating mode of the sensor, often in subtle ways, and the thermal design will be different. Further, the noise characteristics of CMOS cameras can vary, as the sensors are exceedingly sensitive to tiny power supply fluctuations. Be sure that your camera is operating to the manufacturer’s specifications.
To ensure the highest quality data, you need to validate your hardware. If you find some hardware limitations, you can adapt to them.
Here are some recommendations of things to check:
- Check for random pattern noise.
- All CMOS cameras are susceptible to a certain amount of random line noise. This should be very low in a well-designed camera, but the human eye can pick up on it at levels of less than 1 ADU.
- Cameras may also have random patterns all over the sensor—this is typically caused by power supply noise coming from the switching regulators that power the camera. External noise on the power supply can sometimes cause problems, so ensure you have clean power.
- Take two very short dark exposures (bias frames) and subtract them from each other. Then, look closely at the image and see if any odd patterns are going on.
- If you have MaxIm DL software, you can use the Analyze / FFT function to check for patterns. There may be a spot or a small bar at the center, but if you see lines everywhere, there is random pattern noise. A little bit is usually not a big deal, but if there is a lot, then you have a problem.
- Check for Drift
- Check if running a fast exposure series affects the cooler stability, bias level, and/or amp glow:
- Cap your camera to ensure no light hits the sensor.
- Take a series of 0.1 s exposures for five minutes. This will heat up the sensor.
- Throw out all but the last exposure. Call this your “hot frame.”
- Now take a single 15-minute exposure. This allows your sensor to cool down. Immediately after the 15-minute exposure completes, take a single 0.1-second exposure. Call this your “cold frame.” Look at the FITS header for each frame. The sensor temperature shown should be the same to a fraction of a degree. If not, the camera can’t maintain the same temperature on a fast series of images.
- Increase the cooler setpoint to 5 or 10 degrees C and start over.
- Measure the average level in each frame (Tip: in MaxIm DL, use the View menu Information Window.) It should be very close to the same number. If not, then you see bias level drift. Subtract the cold frame from the hot frame (In MaxIm DL, use Process / Pixel math, subtract mode, and add a constant of 1000 to ensure the resulting image doesn’t clip to zero). Boost the display contrast. Do you see amp glow (typically along the top and bottom)?
- See if dark current changes when you change exposure time:
- Take a series of 0.1-second darks, back-to-back, for 10 minutes.
- Now take a series of ten 120-second darks.
- Make a Master Dark from the last five dark images.
- Use this Master Dark to calibrate the first and last images.
- Now measure the Standard Deviation of each image (Information Window again in MaxIm DL). This is a direct measurement of dark current noise. If the first image has a higher number than the last one, then the temperature stability is affected by a fast series of images.
- If the numbers are different, compare the average values. If they’re the same, then the sensor internally adjusts the bias level. This can cause calibration errors for flat-fielding.
- Check ambient temperature stability:
- With the camera at room temperature, set your cooler to -5C. Let it stabilize for 30 minutes, and then take a 120-second dark exposure.
- Then put the camera in your fridge, let it stabilize for 30 minutes, and take another 120-second dark exposure.
- Check the FITS header to ensure the camera maintains the sensor temperature at -5C in each case. If not, you may need to do this experiment with a more negligible temperature difference (perhaps outdoors on different days). Check flat-field stability:
- Take a series of flat-field exposures (and flat-darks).
- Create a master frame.
- Use the master frame to calibrate the first and last flat – see if there is any difference.
- Try doing this just after running a series of short exposures.
- Try doing this just after running a series of long exposures.
- Check if running a fast exposure series affects the cooler stability, bias level, and/or amp glow:
- Try different flat-field ADU levels:
- The classical CCD advice of 30% to 50% of full ADU level works well for some sensors but not for others.
- The best way to check is to calibrate individual flats against master flats taken at different ADU levels,
- Collect a set of flat-fields with average ADU levels of:
- 50%
- 30%
- 10% – you may need to average more flats to reduce noise.
- Note that in some cameras, the maximum ADU level is 4095 ADUs, while in others, it is 16838 or 65535.
- Create master flats for each image set.
Now, pick one flat image and try calibrating it with the 10% master. Then try again with the 30% master and then again with the 50% master. See if that affects the uniformity of the result. If the results look different, you probably need lower ADU percentage flats. Compare flat-fields taken at the same ADU level but with different exposure times. Make a master flat for one set, then try calibrating images from both sets. They should work the same; if not, there’s a drift based on exposure time.
Mitigations
If you find some issues, here are some mitigations you can try:
- Wait for the camera to thermally stabilize after power-up.
- Yes, the sensor must stabilize at the setpoint temperature, but that’s not all.
- Even after the sensor reaches operating temperature, the camera’s heat sink and body continue to heat up. For some camera models, this can affect calibration.
- This stabilization process may take 15-30 minutes.
- Wait for the sensor to thermally stabilize after changing the exposure time.
- The best procedure is to start an exposure sequence and throw out one or more early frames.
- If you are doing short flat-field exposures, consider adding throw-away longer exposures between images to allow the sensor to cool.
- Be aware that this can affect both light frames and calibration frames.
- Operate the camera at as low a sensor temperature as you can reliably reach to minimize dark current variability (a change in a smaller number is inherently smaller).
- Make sure it doesn’t wander up to 100% as the camera heats up; otherwise, regulation will fail. Most users aim for a maximum of 90% to have some safety margin.
- If your camera supports it, consider using liquid cooling and use a large reservoir for stability.
- If you see variability in flat-field performance depending on the ADU level, try using a lower level. To minimize noise from shorter exposures, average more frames. For some sensors, this will improve residual fixed pattern noise.
- If your camera exhibits ambient temperature sensitivity, you may need to take calibration frames at a similar ambient temperature to your light frames.
Basic Calibration
Keep it simple – same basic math as for CCDs.
Output Image = (Light – Dark) / Normalized (Flat – Flat-Dark)
- Take all calibration and light frames at the exact same sensor temperature, including flats.
- Use the exact same gain levels and sensor operating modes for all frames.
- Do not use bias frames.
- Do not use exposure scaling.
- Take dark frames matching your light frames.
- Take dark frames matching your flat-field frames.
- Use lots of frames.
- Calibrate your flats using matching master dark frames.
- Calibrate your lights using matching master dark frames.
- Try different flat-field exposure times (and flat-darks) and compare results quantitatively.
- Finally, as described above, if you like to reuse calibration frames for a period of time, be aware that large ambient temperature changes or even a simple firmware update could potentially change the camera characteristics. This may require reshooting calibration sets more frequently than you are used to.
Advanced Techniques
- Some sensors have optional “overscan” dark pixels available.
- Use these to correct the bias level of each image.
- If on the side of the frame, you may be able to use them to correct for CMOS line noise.
Conclusions
Modern CMOS APS cameras do have advantages over the venerable CCD imagers. For example, modern CMOS sensors read out faster, often have lower read noise, and may cost less at the same performance level. They aren’t perfect, though; for some applications, high-performance CCD sensors are still superior. This is especially true for spectroscopy (due to their analog binning capabilities) and for infrared imaging applications.
As we have seen, scientific imaging has potential pitfalls compared to the more mature and well-understood CCD camera technology. This is particularly true when it comes to image calibration. These pitfalls can be caused by limitations in the sensors themselves, but they can also depend on the exact details of the camera design and its firmware. Also, be aware that no matter how good the camera design is, the inherently variable heat generation in the sensors can have an impact. Finally, don’t go by other people’s opinions on Internet forums – you really need to get some hard numbers to understand your camera’s performance.
At Diffraction Limited, we are working hard to produce the most stable, reliable cameras on the market today. Our powerful imaging software, MaxIm DL Pro, is designed to produce clean, well-calibrated, and stacked images with the least effort.
For more information, ask me a question on our forum at https://forum.diffractionlimited.com/.
Doug George
President/CEO and Lead Engineer
Diffraction Limited