Each pixel must be calibrated separately. For doing this, you will need a light source very uniform with a error that you know. Example using a diffuser in front of a light source. The other method is to use a diffuser in front of the light to measure and the result will be an average of the real light minus some absobtion and reflection. If you want to measure different led color, you will need to callibrate your sensor for the complete visible spectrum. Good luck. Some time it's realy more simpler to buy a specialised instrument.
B.
Benoit Séguin
Software Designer