how to remove glare of an image with matlab code?

15 vues (au cours des 30 derniers jours)
Jack
Jack le 26 Nov 2014
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.

Réponses (2)

Image Analyst
Image Analyst le 24 Oct 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 le 15 Août 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