@@ -60,20 +60,14 @@ morphed = fastmorph.closing(labels, parallel=2)
6060morphed = fastmorph.dilate(labels, mode = fastmorph.Mode.grey)
6161morphed = fastmorph.erode(labels, mode = fastmorph.Mode.grey)
6262
63- # Dilate only supports binary images at this time.
6463# Radius is specified in physical units, but
6564# by default anisotropy = (1,1,1) so it is the
6665# same as voxels.
6766morphed = fastmorph.spherical_dilate(labels, radius = 1 , parallel = 2 , anisotropy = (1 ,1 ,1 ))
68-
69- # open and close require dialate to work and so are binary only for now
7067morphed = fastmorph.spherical_open(labels, radius = 1 , parallel = 2 , anisotropy = (1 ,1 ,1 ))
7168morphed = fastmorph.spherical_close(labels, radius = 1 , parallel = 2 , anisotropy = (1 ,1 ,1 ))
72-
73- # The rest support multilabel images.
7469morphed = fastmorph.spherical_erode(labels, radius = 1 , parallel = 2 , anisotropy = (1 ,1 ,1 ))
7570
76-
7771# Rapid multilabel hole filling. There are two versions that use different techniques
7872# and have different interfaces for their "aggressive" modes. Both modes fill
7973# holes appropriately by default.
0 commit comments