Dark-frame subtraction is a digital image processing technique used to reduce noise in long-exposure photographs and astronomical images. The process is designed to minimize fixed-pattern noise, such as hot pixels and thermal noise, which are inherent to digital image sensors during extended exposure periods.
Mechanism
The technique involves capturing two separate images:
- The Light Frame: The primary image containing the intended subject.
- The Dark Frame: An image captured with the same exposure settings—specifically the same shutter speed, ISO sensitivity, and sensor temperature—but with no light reaching the sensor (typically achieved by keeping the lens cap on or the shutter closed).
Because the sensor generates a consistent pattern of thermal noise (dark current) under specific temperature and timing conditions, the dark frame serves as a map of these artifacts. During processing, the pixel values of the dark frame are subtracted from the corresponding pixel values of the light frame. This subtraction effectively removes the fixed-pattern noise that would otherwise appear as static bright spots or "glow" in the final image.
Applications
Dark-frame subtraction is standard practice in astrophotography, where exposure times often last several minutes, making thermal noise highly visible. Many consumer and professional digital cameras include a "Long Exposure Noise Reduction" (LENR) feature, which automatically performs dark-frame subtraction by taking a second, dark exposure of equal length immediately after the initial light exposure.
Limitations
While dark-frame subtraction is effective against fixed-pattern noise, it does not eliminate random noise (such as shot noise or read noise). In some instances, the process may slightly increase the total random noise in an image, as the random noise present in the dark frame is mathematically added to the light frame during subtraction. To mitigate this, practitioners often capture multiple dark frames and average them into a "master dark" to ensure a cleaner subtraction.