Are there any methods to remove/reduce shadows in this image?

11 views (last 30 days)
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
Image Analyst on 23 Jan 2025
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
Tao Hu on 24 Jan 2025
Thank you for your time, I have tried all you mentioned, including entropyfilt. Also tried entropyfilt-stdfilt (to get rid of shadow margins) and then imopen, but the shadows persist. I'm at my wits end. I'd appreciate it if you could give me more ideas.

Sign in to comment.

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!