Created
December 8, 2014 16:25
-
-
Save MarieLaureB/6d26fdc744083efa3f3f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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