01-28-2011 03:40 AM
Hi,
I know this thread is getting a few days old, but I figured it was better to post here rather than to open a new thread.
So now I've RGB-tresholded the image, and applied watershed segmentation to separate the objects (as indicated in the solution wizard, big kudos to ChristopheC). However, "cracks" are appearing in some of the circles after the separation resulting in them not being detected as circles. I've tried to dilate the objects so that the fragmented parts may again form a circle, but this makes the objects join together rendering the watershed useless.
The script is attached
01-28-2011 10:16 AM
In the Image Processing Handbook, John C Russ explains a technique that should help with what you're describing (on page 496).
Give it a try.
-Christophe
01-28-2011 10:29 AM
Unfortunately, the book is not available online in my country (stupid limitations) 😕
01-28-2011 11:39 AM
I just managed to get hold of a copy, trying out a solution as we speak.
02-01-2011 08:05 AM
So I've been trying different settings to achieve optimum result, however cracks seem to appear no matter how much I try to filter out unwanted particles. I've tried the solution indicated in the Image Processing Handbook. The process I've created is as follows:
RGB to binary > binary inversion > keep small particles within the circles > mask the original binary image to fill the holes in circles > watershed segmentation to separate > remove small particles > remove border objects > object separation > object dilation > processing
The part in italics is what I've implemented to avoid cracking in the watershed segmented image. In spite of this, the circles are cracking up (fewer than before though). The script and an image is attached.