How to obtain improfile for shadow and non shadow regions in gray image ?

1 view (last 30 days)
In matlab we have a command called improfile. I want to use it to plot a graph of comparison between shadow and non shadow areas in an gray image... My input image is gray image with shadows on some regions... The Improfile should contain 2 graphs one representing shadow pixles and other non shadow pixles... any help on this...

Accepted Answer

Image Analyst
Image Analyst on 29 Aug 2014
Just call it and get the profile. Then threshold into dark and light areas and graph them. Did you have some trouble with the code?
  2 Comments
Image Analyst
Image Analyst on 29 Aug 2014
See attached demo for improfile.
There are more sophisticated shadow identification methods than simple thresholding. Let me know if you need references.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!