Merging/connecting blobs that belong to same object

조회 수: 6 (최근 30일)
BlueBee77
BlueBee77 2016년 6월 30일
댓글: BlueBee77 2016년 6월 30일
I am doing background subtraction and trying to extract the foreground object(humans). The problem is that when i am trying to crop the foreground object, due to some gape in the objects they are cropped as several blobs and not one. How can i merge/connect blobs that belong to same object but are disconnected due to some gape in the binary image. I am attaching some image to make my point clear.

답변 (1개)

Image Analyst
Image Analyst 2016년 6월 30일
You could find the centroids of all blobs and then burn a line between the centroids to connect all the blobs with a line. See attached demo.
  댓글 수: 1
BlueBee77
BlueBee77 2016년 6월 30일
Thanks alot for your response. I am going to try that but sometimes there are more than one persons in the image, what logic should be used for connecting the centroids of blobs e.g head, legs, hands or chest that belong to one person.

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by