Segmenting Tablets

asked 2017-10-30 21:07:34 -0500

KansaiRobot gravatar image

Hello. I would like to ask how can I segment tablet-like shapes from an image (in order to count them). In concrete this image:

Three tablets and one circle

Now before you continue reading, I have done some work on this that I am going to explain. But I am open to any other alternative method so please if you have a totally different method by all means suggest it to me.

What I have done

I have used distance transform and later watershed (Both marker based and marker less). Also I applied Gauss filtering to the distance transform image.

My results is that although watershed is very good for CIRCULAR shapes, in the case of tablet like ones it does not work well. This is a simple case. A more complicated case would be two tablets touching each other by the side.

My best result so far has been succesfully segmenting the two upper tablets and the circle but the lower one still gets cut in two.

Any advice will be greatly appreciated

edit retag flag offensive close merge delete


yikes, you posted 8 duplicates of this silly question. don't do that again, please.

berak gravatar imageberak ( 2017-10-31 01:28:27 -0500 )edit

Actually it was more. (I managed to delete some) Something in the post button made it call the post many many times... I am trying to delete the rest. Since it has been long since I posted here I am not sure if I am managing to delete the duplicates

KansaiRobot gravatar imageKansaiRobot ( 2017-10-31 01:42:17 -0500 )edit

ok, accident. they're all gone now, let's get over it. ;)

(btw, if it happens again, and you think, there's a problem with the website, please raise an issue here , so the maintainers can look at it)

berak gravatar imageberak ( 2017-10-31 01:46:24 -0500 )edit