How to perform light correction when shooting images in various lighting conditions?

During my last project project, I take photos from a mobile phone, and then I will process the stages of image processing. I will take images under various lighting conditions (natural light, poor lightning conditions, etc.). Does anyone know of any algorithm that I can use to calculate it?

Thank you so much

+1
source share
3 answers
  • A good white balance is still an active field of research, I think. From your question it’s hard to say how the “advanced” solution you need should be and what you need.

    In some other context, I recently came across this document. They have a rather sophisticated approach to Whitebalancing and good results:

    Xu, Mertens, Paris, Avidan, Duran. "Evaluation of a light mixture for spatially changing white balance." In: ACM Transactions on Graphics, 2008

    Check the appropriate section of the work for additional hints, as usual.

  • If you are less interested in balancing but rather need to process the images further (this is a bit like this in your comment), you should aim for methods that are more invariant to lighting, or at least change lighting. For example. Converting an image to any color space that shares brightness / brightness (e.g. YUV, HSV) may help depending on your real problem. From my experience and intuition, I would suggest that in most cases it is better to make your “recognizing” algorithm reliable again with lighting changes - instead of adjusting the lighting first.

+2
source

One very simple way is to take the average pixel value of the image, adjust the exposure, make another image and calculate the average value again, continuing until the average reaches some arbitrary value.

0
source

Try the simplest method: first compare the histogram.

0
source

All Articles