MATLAB Answers


How to extract object after edge-detection?

Asked by Sayak
on 3 Dec 2012
Latest activity Answered by Mojeed Salmon Olatunde on 16 Dec 2016

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?



Log in to comment.

2 Answers

Answer by Image Analyst
on 3 Dec 2012
 Accepted Answer

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


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.

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.

Log in to comment.

Answer by Mojeed Salmon Olatunde on 16 Dec 2016

Please after applying canny, and getting the edge, please how can I extract only the edge I get to aquire the pixels of edge only without background, and get the gray value of the pixels of edge only, without background.


Log in to comment.

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today