Skip to content

Commit

Permalink
Update anisotropic_diffusion tool
Browse files Browse the repository at this point in the history
  • Loading branch information
kostrykin committed Apr 23, 2024
1 parent 3774860 commit b29279f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tools/anisotropic_diffusion/anisotropic_diffusion.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import sys
import warnings

import giatools.io
import skimage.io
import skimage.util
from medpy.filter.smoothing import anisotropic_diffusion
Expand All @@ -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
Expand Down
3 changes: 2 additions & 1 deletion tools/anisotropic_diffusion/anisotropic_diffusion.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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" />
Expand All @@ -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[
Expand Down

0 comments on commit b29279f

Please sign in to comment.