I work for a manufacturing industry producing cables. I have been using ImageJ to detect the wall thickness of a plastic extruded sample, as explained in this discussion. Basically, I take a picture from a microscope, I threshold it to get a binary image, then I apply a polar transformation to “unroll” the image and finally I use the plot profile to calculate the thickness. All these operations are done automatically by a macro.
I have now two problems related to some “noise” on the original image.
The first problem is related to the “frayed” edges of the sample. The sample is in plastic and is cut using a cutter, so the edges are non smooth. As you can see in the image below, there are some “threads” generated by the cut (circled in red). Those threads are still clearly visible in the thresholded image and for this reason the maximum thickness calculated is wrong. So, is there a way to “smooth” the edges of the image?
The second problem is related to some “holes” in the sample. Sometime, due to reflection, the sample has some areas clearer than others, as in the images below. Those clearer areas become “holes” in the thresholded image, thus causing the minimum thickness to be wrong. I would like that the “internal” part of the ring would be completely filled, is this possible?
Thanks for any suggestion.