Watershed process get splitting points

Tags: #<Tag:0x00007fd546d8f338>


Dear Forum,
is already implemented somewhere an easy way to get splitting points of the watershed process?

from this API:
it doesn’t seem.

Any suggestion?
thank you,


Hi @emartini,

from your question it doesn’t get clear if you need these points inside a java plugin or simply as a readout.

Here would be a possibility to get them via a macro. might not be the most elegant way but works.

The only drawback is, that it sometimes gives you a 1-pixel shift of the point depending on the orientation of the splitting line. but it might help to get started as an idea.

originalImage = getTitle();
run("Duplicate...", "title=[" + originalImage + "_ws]");
watershededImage = getTitle();
imageCalculator("Difference", originalImage, watershededImage);
setOption("BlackBackground", true);
run("Analyze Skeleton (2D/3D)", "prune=none show");
IJ.renameResults("Branch information", "Results");


Dear @biovoxxel,
thank you for your suggestion.

I prefer a python plugin but it’s ok even this macro.

Have a nice day,
thank you


What you want, I think, are the boundary points of maximal concavity.
Sati M & Laroye GJ. A simple algorithm for measuring the the concavtity/convexity ratio and lobe counting of a closed contour. Analytical and Quantitative Cytology and Histology, 1996. 16: 269-283.