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
pratibha rane 2013년 4월 9일
this link is for upload..not giving any idea of solution to my problem
Walter Roberson
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
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
pratibha rane 2013년 4월 9일
Input image is as shown in- http://snag.gy/WSDpR.jpg, which is output of mixture of gaussian method, This image I wanna to convert into binary image with human body in white and background in black
pratibha rane
pratibha rane 2013년 4월 9일
How do i remove noise that may be because of shadow.So that I will get proper binary image.Thanks

댓글을 달려면 로그인하십시오.

답변 (2개)

Walter Roberson
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
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
pratibha rane 2013년 4월 10일
편집: Walter Roberson 2013년 4월 10일
The pic- http://snag.gy/WSDpR.jpg is one of the frame of my video , I want get a posture of the person from it such that only human body in white and remaining in black as shown in http://snag.gy/5JnKj.jpg .Thanks
Walter Roberson
Walter Roberson 2013년 4월 10일
What will you do with the posture image?
pratibha rane
pratibha rane 2013년 4월 10일
output after thresholding-http://snag.gy/1wB2y.jpg.I don't want output this way

댓글을 달려면 로그인하십시오.

태그

질문:

2013년 4월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by