views:

82

answers:

2

Does anyone know how to remove the effect of the bright white spots on the image? That is, these spots occur because of the lighting when photographing. As a result, these spots affect the further processing of the image. If you cut a white spot of light from the image, then the results will be very good. This happens if you make a picture at dark place, and because of the camera's flash the resulting image contains white spot. The whole image is dark, but with bright white spot. If you binarize that image the result is bad too. And histogram equalization doesn't help.

It is a program, it must deal with that images with white spot. So I need some algorithm of solving that problem automatically.

A: 

Can you paste a bit of the surrounding image over the white spot, and then process?

Martin Thompson
It must be done by a program, do you know any algorithms of finding such areas of white spot?
maximus
Look for areas of saturated pixels then take pixels from the surrounding areas and "migrate" them inwards?
Martin Thompson
Idea is interesting, but how you gonna look for saturated pixels?
maximus
By definition - just find pixels that are at the maximum value (e.g. 255 for 8-bit grayscale images). If they aren't truly saturated, then you might have to get cleverer and find areas (above some threshold, to avoid the dark bits) which are very close in intensity to surrounding pixels.
Martin Thompson
+1  A: 

There was some work done at MIT on compensating for poor lighting in photographs. I don't know if it is up to the task of a very bright flash, but from my reading of the paper it seems like it ought to be (provided there was only one other major source of light when the photo was taken). Certainly the results in the paper look very impressive. You will find more info, including many sample imaages, at http://people.csail.mit.edu/ehsu/work/sig08lme.

Norman Ramsey