Mercurial > repos > imgteam > anisotropic_diffusion
changeset 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 | 097b803aeb5d |
children | |
files | anisotropic_diffusion.py anisotropic_diffusion.xml |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
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
--- a/anisotropic_diffusion.xml Thu Apr 04 15:23:48 2024 +0000 +++ b/anisotropic_diffusion.xml Wed Apr 24 08:12:09 2024 +0000 @@ -4,7 +4,7 @@ <import>creators.xml</import> <import>tests.xml</import> <token name="@TOOL_VERSION@">0.4.0</token> - <token name="@VERSION_SUFFIX@">0</token> + <token name="@VERSION_SUFFIX@">1</token> </macros> <creator> <expand macro="creators/bmcv" /> @@ -16,6 +16,7 @@ <requirement type="package" version="@TOOL_VERSION@">medpy</requirement> <requirement type="package" version="1.20">numpy</requirement> <requirement type="package" version="0.18.1">scikit-image</requirement> + <requirement type="package" version="0.1">giatools</requirement> </requirements> <command detect_errors="aggressive"> <![CDATA[