Algorithm for lining contour boundaries in Mean Shift

asked 2017-05-17 04:23:27 -0500

klinkenstein gravatar image

I am using the Mean Shift Algorithm for segmentation. To better the result image I would like to draw a white line in the contour boundaries. What algorithm fits this requirement and is there a code example in C++?

edit retag flag offensive close merge delete


If you want to make a white line thicker, a simple dilation operation will suffice:

Look into morphological operations on binary images. OpenCV provides all you need

Pedro Batista gravatar imagePedro Batista ( 2017-05-17 12:15:58 -0500 )edit

There is no white line yet. For example, this is the result:

I want to draw a line the between the segments.

klinkenstein gravatar imageklinkenstein ( 2017-05-17 12:43:19 -0500 )edit