MATLAB Answers


How to extract object after edge-detection?

Asked by Sayak
on 3 Dec 2012

I have a picture that consists of 4 people. My goal is to extract the four people based on the edge detection only. Is it possible? If yes how do I make the approach?



1 Answer

Answer by Image Analyst
on 3 Dec 2012
 Accepted answer

Threshold to find the people, then use watershed. See this for an example:


on 5 Dec 2012

I have used sobel edge detection with threshold value of 0.15. Then used some methods to smoother the edges. Then plotted the image with bwboundary() to get the boundary of the images. But still some connected part is there.

Original image :

plotted Image :

Image Analyst
on 5 Dec 2012

That's because you haven't tried to implement Steve's example yet.

on 7 Dec 2012

Yes, yes. Let me study it first. I'm coming back to this thread after few days. Anyways thanks again for always helping me out.

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply today