I want to process an image for which I need the method to be robust to lighting conditions. For that the only thing I can think of is normalising intensity. I did this by dividing the image with average intensity and then scaled the values to be between 0-255. This method doesn't seem to work well. What other approach can I follow to make my processing robust to variation in lighting conditions?