Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Segmenting Tablets

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