Conversion to binary Image
显示 更早的评论
Hi, I have grayscale image of the person(output of mixture of gaussian method) with background(also shows shadow effect),I want to convert it into Binary image such that persons body in white and background in black.How can I do? Is there readymade code.Please reply.
6 个评论
pratibha rane
2013-4-9
Walter Roberson
2013-4-9
Upload a sample image so we have a better idea of how difficult it would be to deal with.
Jan
2013-4-9
@pratibha rane: Using this link would allow for giving us more information about your problem. Therefore it helps to get a solution indirectly. The less we have to guess, the more likely is a useful answer.
pratibha rane
2013-4-9
pratibha rane
2013-4-9
回答(2 个)
Walter Roberson
2013-4-9
0 个投票
bwareaopen() http://www.mathworks.com/help/images/ref/bwareaopen.html to remove a fair bit of the noise (but probably not all.)
To go further than that, you are going to need to close the border of the figure at the bottom edge. I have a couple of guesses about what might work for that, but I do not have the toolbox to experiment with.
Image Analyst
2013-4-9
0 个投票
What do you need? Really need? Because it may be possible to do what you want to do, like detect if a person is there or is moving, without actually getting the same outline as if you had hand-traced it. Why can't you just threshold and take the largest blob?
3 个评论
pratibha rane
2013-4-10
编辑:Walter Roberson
2013-4-10
Walter Roberson
2013-4-10
What will you do with the posture image?
pratibha rane
2013-4-10
类别
在 帮助中心 和 File Exchange 中查找有关 Color Segmentation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!