The extraordinary sensitivity of single-photon avalanche diodes (SPADs) makes these devices the ideal option for vision systems aimed at low-light applications. Nevertheless, there exist large dark count rate and photon detection probability non-uniformities, which reduce the dynamic range of the detector. As a result, the capability to create image contrast is severely damaged or even lost. This paper presents the implementation of a correction algorithm to compensate for the mentioned non-uniformities and thus extend the contrast of the generated images. To demonstrate its efficiency, the proposed technique is applied to real images obtained with a fabricated SPAD image sensor. An increase of more than 3 b of contrast is obtained.