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

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

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

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)

Asked:

on 29 Aug 2014

Commented:

on 5 Oct 2014

Community Treasure Hunt

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

Start Hunting!