Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

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?

picture:: http://postimage.org/image/iri6wtrdl/

0 Comments

Sayak

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: http://blogs.mathworks.com/steve/2006/06/02/cell-segmentation/

5 Comments

Sayak 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 : http://postimage.org/image/iri6wtrdl/

plotted Image : http://s17.postimage.org/nnszu460v/untitled.jpg

Image Analyst on 5 Dec 2012

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

Sayak 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.

Image Analyst

Contact us