Among other things, devices for use in fluorescence or luminescence lifetime imaging are described. The devices include integrated complementary metal-oxide semiconductor (CMOS) chips that include an imaging region and a time-to-digital converter. The imaging region includes a photodetector for receiving optical signals. The time-to-digital converter provides digital phase output based on the received optical signals.