They are called eyeballs.
In what manner do your eyes discriminate discrete individual quanta from a continuous stream of light?
Is this an your attempt at stump the dummy? If you wish to learn how the eye detects light, invest in a college course. Hint: eyes don't "measure" infrared or ultraviolet quanta.(except maybe as a peripheral consequence)