MATLAB Answers

How to remove shadow from image ?

138 views (last 30 days)
I am building a braille dots recognition program. After i acquire image through the camera and convert it into binary, the shadow also becomes significant and hence the result gets affected. Can you suggest me a code to avoid the effect of shadows?? Here is the example image(shadow is on the bottom half part of the image):
Here is the Binary image:
Histogram of the Orignal Image:

  1 Comment

Sign in to comment.

Accepted Answer

Image Analyst
Image Analyst on 27 Mar 2017
Other methods that would also work are adapthisteq() and imtophat() or imbothat().
You can also use John D'Errico's polyfitn() to fit the background to a 2-D polymonial. See my attached demo.

  1 Comment

Zaheer Abbas
Zaheer Abbas on 27 Mar 2017
Thanks alot. This example worked :)

Sign in to comment.

More Answers (0)

Sign in to answer this question.