A 64x64 SPAD array for portable colorimetric sensing, fluorescence and x-ray imaging