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:
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
yikes, you posted 8 duplicates of this silly question. don't do that again, please.
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
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)