Hi everyone,
I’m trying to use a macro to count the number of intersections or junction points in a starting image. I get the image below after thresholding and dilating to remove noise before running “Skeletonize (2D/3D)”. Afterwards I can analyze with “Analyze Skeleton (2D/3D)” and get the number of junctions in the image.
However, I need to remove the small endpoint noise branches before I run the analyze plugin. Image below shows where I’m at just before analyze plugin, and the small endpoint branches to be removed circled in red. Any help on how to do this would be much appreciated! Thanks!