Mercurial > repos > imgteam > 2d_simple_filter
changeset 4:d51310ab328a draft default tip
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit c86a1b93cb7732f7331a981d13465653cc1a2790
author | imgteam |
---|---|
date | Wed, 24 Apr 2024 08:12:03 +0000 |
parents | 6c4b22ef2b81 |
children | |
files | filter.xml filter_image.py |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/filter.xml Thu Apr 04 15:23:42 2024 +0000 +++ b/filter.xml Wed Apr 24 08:12:03 2024 +0000 @@ -4,7 +4,7 @@ <import>creators.xml</import> <import>tests.xml</import> <token name="@TOOL_VERSION@">1.12.0</token> - <token name="@VERSION_SUFFIX@">0</token> + <token name="@VERSION_SUFFIX@">1</token> </macros> <creator> <expand macro="creators/bmcv" /> @@ -20,6 +20,7 @@ <requirement type="package" version="1.26.4">numpy</requirement> <requirement type="package" version="0.22.0">scikit-image</requirement> <requirement type="package" version="2024.2.12">tifffile</requirement> + <requirement type="package" version="0.1">giatools</requirement> </requirements> <command detect_errors="aggressive"><![CDATA[
--- a/filter_image.py Thu Apr 04 15:23:42 2024 +0000 +++ b/filter_image.py Wed Apr 24 08:12:03 2024 +0000 @@ -1,5 +1,6 @@ import argparse +import giatools.io import scipy.ndimage as ndi import skimage.io import skimage.util @@ -23,6 +24,6 @@ parser.add_argument('size', type=float, help='Size of the filter (e.g., radius, sigma)') args = parser.parse_args() - im = skimage.io.imread(args.input.name) + im = giatools.io.imread(args.input.name) res = filters[args.filter](im, args.size) skimage.io.imsave(args.output.name, res, plugin='tifffile')