An image sensor that has a temperature sensor. The temperature sensor senses
the
temperature of a pixel array of the image sensor. The sensed temperature is used
to scale a dark frame image generated by the pixel array. The scaled dark frame
image is subtracted from a light image frame generated by the pixel array. The
scaled dark image frame compensates for temperature variations in the pixel array.
The scaled dark image frame may be generated by multiplying the dark frame by a
scale factor(s). The scale factor may be computed from an equation or determined
from a look-up table. The equation or look-up table may compensate for thermal
gradients across the pixel.