An apparatus for capturing an electronic image and for compensating noise in the captured image comprising: an array for capturing an electronic image by using an electronic shutter, said array comprising a plurality of light-sensitive elements arranged to be exposed to light in order to capture the electronic image and a plurality of optically shielded light-sensitive elements; means for reading out light-intensity values arranged to: obtain a first dark-current error by reading at least one optically shielded light-sensitive element; after obtaining the first dark-current error, read light-intensity values from a group of the light-sensitive elements to capture light-intensity values for the electronic image; and after reading the light-intensity values from the group of light-sensitive elements, obtain a second dark-current error by reading at least one optically shielded light-sensitive element; wherein the apparatus comprises means for noise-compensation arranged to: interpolate the first and second dark-current errors to calculate at least one dark-current error for at least one light-sensitive element from the group of light-sensitive elements, wherein said calculated at least one dark-current error corresponds to the dark-current error at the time of reading said at least one light-sensitive element; and subtract the calculated at least one dark-current error from the light-intensity value of the at least one light-sensitive element, from the group of light sensitive elements, to obtain a noise-compensated light-intensity value for the at least one light-sensitive element. an array for capturing an electronic image by using an electronic shutter, said array comprising a plurality of light-sensitive elements arranged to be exposed to light in order to capture the electronic image and a plurality of optically shielded light-sensitive elements; means for reading out light-intensity values arranged to: obtain a first dark-current error by reading at least one optically shielded light-sensitive element; after obtaining the first dark-current error, read light-intensity values from a group of the light-sensitive elements to capture light-intensity values for the electronic image; and after reading the light-intensity values from the group of light-sensitive elements, obtain a second dark-current error by reading at least one optically shielded light-sensitive element; obtain a first dark-current error by reading at least one optically shielded light-sensitive element; after obtaining the first dark-current error, read light-intensity values from a group of the light-sensitive elements to capture light-intensity values for the electronic image; and after reading the light-intensity values from the group of light-sensitive elements, obtain a second dark-current error by reading at least one optically shielded light-sensitive element; wherein the apparatus comprises means for noise-compensation arranged to: interpolate the first and second dark-current errors to calculate at least one dark-current error for at least one light-sensitive element from the group of light-sensitive elements, wherein said calculated at least one dark-current error corresponds to the dark-current error at the time of reading said at least one light-sensitive element; and subtract the calculated at least one dark-current error from the light-intensity value of the at least one light-sensitive element, from the group of light sensitive elements, to obtain a noise-compensated light-intensity value for the at least one light-sensitive element. interpolate the first and second dark-current errors to calculate at least one dark-current error for at least one light-sensitive element from the group of light-sensitive elements, wherein said calculated at least one dark-current error corresponds to the dark-current error at the time of reading said at least one light-sensitive element; and subtract the calculated at least one dark-current error from the light-intensity value of the at least one light-sensitive element, from the group of light sensitive elements, to obtain a noise-compensated light-intensity value for the at least one light-sensitive element.