how to remove shadows from face image in matlab ?
1 次查看(过去 30 天)
显示 更早的评论
I want to detect lip in the face , in step one I convert the RGB image to Binary image but there is a problem , the quality and light effect on output mostly. some times when a person laugh the shadow changes the light so the result changes.I want try to change my code to create binary image according to light and shadow in the image to gain correct out put
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/164573/image.jpeg)
after execute my code :
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/164574/image.jpeg)
as you can see around of lip we have shadow , how do I remove shadow of face ? or how do I set variable on my code ?
I attached my code .
0 个评论
回答(1 个)
Image Analyst
2014-6-20
There's nothing in MATLAB built in to do that. I'd recommend you find the algorithm for "Shadows and Highlights" that Photoshop uses. It's probably discussed online somewhere - I don't have it handy. Then code that up. It does a pretty good job.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Convert Image Type 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!