how to remove glare of an image with matlab code?

15 visualizaciones (últimos 30 días)
Jack
Jack el 26 de Nov. de 2014
Respondida: kasthuri c el 15 de Ag. de 2019
I scanned a filament fuse with scanner. My requirement is measure the diameter of the filament. But during process, I found out that fuse image contains a lot of glare or shadow effect and this causes trouble during Image Preprocessing. Any matlab code can use to remove or reduce the glare effect?? Thank You. Below is the image that I get.

Respuestas (2)

Image Analyst
Image Analyst el 24 de Oct. de 2015
It's best if you can use crossed polarizers to eliminate the glare in the first place. One polarizer on the lamp and one over the lens.
For a worse way, you can do it in software, but like I said, it will be worse and inaccurate. You can threshold and use regionfill()
mask = grayImage > 230; % whatever value works.
fixedImage = regionfill(grayImage, mask);

kasthuri c
kasthuri c el 15 de Ag. de 2019
Any matlab coding is there to remove glare in image ?

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by