Are there any methods to remove/reduce shadows in this image?
Show older comments
In this image, the leaves are on a piece of white paper. I wonder in this particular case if there are any effective methods for shadow removal or reduction using Matlab. If it's not possible to completely remove the shadows, reducing them is also OK. Thank you!

Answers (1)
Image Analyst
on 23 Jan 2025
0 votes
Try the Color Thresholder on the Apps tab of the tool ribbon. Use HSV colorspace and find regions with saturation less than about 0.2 - that will be the white and gray regions.
4 Comments
Tao Hu
on 24 Jan 2025
Image Analyst
on 24 Jan 2025
You may have to adjust the thresholds some more. Or you may need to combine it with morphological methods like hole filling or bwareaopen. Or you may have to combine it with stdfilt to find the smooth areas and then mask those out. I don't have time now to try those things but try them yourself and I'll check back tomorrow to see if you still need help.
Tao Hu
on 24 Jan 2025
Image Analyst
on 25 Jan 2025
I'm working on something but it's not successful yet on your images. In the meantime, try this link. https://www.google.com/search?hl=En&as_sitesearch=www.visionbib.com%2F&bthG=Google%2BSearch&q=shadow+removal
Categories
Find more on Image Filtering and Enhancement in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!