Digital camera
The lens forms an image on the sensor. Colour filters select the light that reaches each photosite. The sensor collects charge, reads it out and digitises it as a grid of RAW samples.
Incident light ↓MicrolensColour filterSilicon photodiode
Charge → voltage → digital code
RAW mosaicOne code per photosite
RAW samples feed Digital camera signal processing.