diff --git a/tools/anisotropic_diffusion/anisotropic_diffusion.py b/tools/anisotropic_diffusion/anisotropic_diffusion.py index a4075965..95e6acdd 100644 --- a/tools/anisotropic_diffusion/anisotropic_diffusion.py +++ b/tools/anisotropic_diffusion/anisotropic_diffusion.py @@ -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 diff --git a/tools/anisotropic_diffusion/anisotropic_diffusion.xml b/tools/anisotropic_diffusion/anisotropic_diffusion.xml index 2dab21c5..4077414a 100644 --- a/tools/anisotropic_diffusion/anisotropic_diffusion.xml +++ b/tools/anisotropic_diffusion/anisotropic_diffusion.xml @@ -4,7 +4,7 @@ creators.xml tests.xml 0.4.0 - 0 + 1 @@ -16,6 +16,7 @@ medpy numpy scikit-image + giatools