Previous changeset 3:6c4b22ef2b81 (2024-04-04) |
Commit message:
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit c86a1b93cb7732f7331a981d13465653cc1a2790 |
modified:
filter.xml filter_image.py |
b |
diff -r 6c4b22ef2b81 -r d51310ab328a filter.xml --- 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[ |
b |
diff -r 6c4b22ef2b81 -r d51310ab328a filter_image.py --- 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') |