what about drawing a box around the donut - and then applying an evening algorithm to the illumination levels? If anything exceeds a certain threshold - normalize it to the average illumination? I guess the problem is that this only works on an even background. It won't work if there is a star or something along those lines...
I guess I am trying to apply an overly simple solution to a complex problem ;-)