Mercurial > repos > imgteam > anisotropic_diffusion
diff anisotropic_diffusion.py @ 4:6ad5de2c5b7c draft default tip
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/anisotropic-diffusion/ commit c86a1b93cb7732f7331a981d13465653cc1a2790
author | imgteam |
---|---|
date | Wed, 24 Apr 2024 08:12:09 +0000 |
parents | e6987afa0484 |
children |
line wrap: on
line diff
--- a/anisotropic_diffusion.py Thu Apr 04 15:23:48 2024 +0000 +++ b/anisotropic_diffusion.py Wed Apr 24 08:12:09 2024 +0000 @@ -2,6 +2,7 @@ import sys import warnings +import giatools.io import skimage.io import skimage.util from medpy.filter.smoothing import anisotropic_diffusion @@ -18,7 +19,7 @@ with warnings.catch_warnings(): warnings.simplefilter("ignore") # to ignore FutureWarning as well - img_in = skimage.io.imread(args.input_file.name, plugin='tifffile') + img_in = giatools.io.imread(args.input_file.name, plugin='tifffile') res = anisotropic_diffusion(img_in, niter=args.niter, kappa=args.kappa, gamma=args.gamma, option=args.eqoption) res[res < -1] = -1 res[res > +1] = +1