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 :

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.

Join the 15-year community celebration.

Play games and win prizes!

Learn more
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

MATLAB Academy

New to MATLAB?

Learn MATLAB today!