An apparatus and method of processing images in a digital camera and
improving the quality of images produced by camera processing software.
In low-light digital camera photography, a dark frame image is subtracted
from an original picture image to form a resulting image. The resulting
image formed from the dark frame subtraction is evaluated for negative
and invalid pixel values. Each negative and invalid pixel value is
replaced using a pixel replacement algorithm with appropriate positive
values.