Skip to content

Instantly share code, notes, and snippets.

@MarieLaureB
Created December 8, 2014 16:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MarieLaureB/6d26fdc744083efa3f3f to your computer and use it in GitHub Desktop.
Save MarieLaureB/6d26fdc744083efa3f3f to your computer and use it in GitHub Desktop.
//example from http://fiji.sc/Morphological_Segmentation
// load the Blobs sample image
run("Blobs (25K)");
// run the plugin
run("Morphological Segmentation");
// wait for the plugin to load
wait(1000);
// select input image as "object"
call("inra.ijpb.plugins.MorphologicalSegmentation.setInputImageType", "object");
// set gradient radius as 1
call("inra.ijpb.plugins.MorphologicalSegmentation.setGradientRadius", "1");
// run segmentation with tolerance 32, calculating the watershed dams,
// 4-connectivity
call("inra.ijpb.plugins.MorphologicalSegmentation.segment", "tolerance=32",
"calculateDams=true", "connectivity=4");
// display the overlaid dams
call("inra.ijpb.plugins.MorphologicalSegmentation.setDisplayFormat", "Overlaid dams");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment