object is fragmented when applied BG method

asked 2017-02-17 04:01:21 -0600

hoang anh tuan gravatar image

I used background subtraction method to detect the move of object.The object I checked is split into pieces as the figure. How could I combine them to one with specific distance?

image description

(It is Foreground Mask)

edit retag flag offensive close merge delete

Comments

  • Apply some morphological operators, first some erosion, then a tons of dilation.
    • Calculate contours
    • Apply a convex hull operator on the contour
StevenPuttemans gravatar imageStevenPuttemans ( 2017-02-17 04:53:15 -0600 )edit

My above pic is applied eroding and dilating. And now, what need I do?

hoang anh tuan gravatar imagehoang anh tuan ( 2017-02-17 22:55:20 -0600 )edit

Supply original images please. You must be doing something wrong.

StevenPuttemans gravatar imageStevenPuttemans ( 2017-02-20 02:29:29 -0600 )edit