MATLAB: Adjust the intensity of images with nonuniform light

image processingImage Processing Toolboxnonuniform intensity

My laser light is blinking (I don't know why?!), so the images I have is something like the followings. The intensity is different for every frame. How can I fix this? I mean how can I have uniform intensity throughout?
I thought of normalizing by a reference image, but there could not be a unique reference frame for each image.
Thank you!
Steven

Best Answer

I'd contact the manufacturer of your laser.
If you're stuck with it, then the best you can do is to set the camera exposure so that no frame will be overexposed, then adjust all the frames by multiplying the image by the ratio of the desired mean to their current mean. That assumes you have a linear system, not one with a non-linear gamma being imposed by the camera.
Related Question