I am implementing a workflow in a jython plugin.
At a certain point I would like to do a segmentation step using the morphological segmentation from the very nice morpholibJ suite.
I tested with the plugin and I’ve found a nice setting of parameters and I recorded that:
call(“inra.ijpb.plugins.MorphologicalSegmentation.segment”, “tolerance=3”, “calculateDams=true”, “connectivity=6”);
call(“inra.ijpb.plugins.MorphologicalSegmentation.setDisplayFormat”, “Catchment basins”);
for what I’ve understood from the javadocs all those operations are inside this API:
this class is to use with GUI.
How can I do the same but without the MorpholibJ GUI?
I surfed a little the javadoc but I am not able to understand which is the algorithm used in the Morphological Segmentation plugin.