1. A device for spatially resolved photodetection and demodulation of temporally modulated elctromagnetic waves, comprising a one-dimensional or two-dimensional arrangement of pixels ( 50 ), a pixel ( 50 ) comprising at least two elements ( 51. 1, 51. 2 ) for transducing incident electromagnetic radiation into an electric signal, each transducer element ( 51. 1, 51. 2 ) being associated with at least one element ( 54. 1 - 54. 4 ) for storing said electric signal said at least one storage element ( 54. 1 - 54. 4 ) being inaccessible or insensitive to incident electromagnetic radiation, characterized in that a pixel ( 50 ) comprises an optical element ( 41 ) for spatially averaging the electromagnetic radiation incident on the pixel ( 50 ) and equally distributing the averaged electromagnetic radiation onto said transducer elements ( 51. 1, 51. 2 ) of the pixel ( 50 ).