How to remove shadow from image ?
24 ビュー (過去 30 日間)
古いコメントを表示
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):
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/162171/image.jpeg)
Here is the Binary image:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/162172/image.jpeg)
Histogram of the Orignal Image:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/162174/image.bmp)
採用された回答
Image Analyst
2017 年 3 月 27 日
Try this example: https://www.mathworks.com/help/images/examples/correcting-nonuniform-illumination.html?prodcode=IP&language=en
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.
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!