Removing gaps between the boundary or filling inside the boundary

2 views (last 30 days)
Can anyone help in how to join the discontinuous boundary of this image. And how to fill inside this boundary. the image is obtained using 'Sobel edge detector in Matlab'.

Answers (1)

Image Analyst
Image Analyst on 5 May 2016
Sobel is probably not good, or not enough. If it's a video of a person walking, try optical flow. Why do you think edge detection is the best approach?
  1 Comment
BlueBee77
BlueBee77 on 9 May 2016
I tried the other edge detectors but they are giving some extra details. Sobel is good because it gives less detail and i am interested only in the boundary. Dilation and erosion gives exactly what i need (filling inside the boundary). But the problem comes when there is a long gap in the boundary. I need a perfect human silhouette, does optical flow can help me in getting a perfect boundary? And what you think about Viola jones?

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!