1. An optical detection device, comprising: a photoelectric unit configured to sense incoming photons and to produce electrical signals pertaining to at least a few of said photons within a plurality of temporally resolved time-windows; an analog-to-digital unit configured to generate digital representation of said electrical signals; and a digital integrating unit configured to integrate said digital representation over at least part of said temporally resolved time-windows to provide integrated data corresponding to said photons.