Mercurial > repos > imgteam > image_math
diff image_math.py @ 2:48fa3ac55df2 draft default tip
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/image_math commit c86a1b93cb7732f7331a981d13465653cc1a2790
author | imgteam |
---|---|
date | Wed, 24 Apr 2024 08:12:29 +0000 |
parents | 33b2ca53a566 |
children |
line wrap: on
line diff
--- a/image_math.py Thu Apr 04 15:25:35 2024 +0000 +++ b/image_math.py Wed Apr 24 08:12:29 2024 +0000 @@ -2,6 +2,7 @@ import ast import operator +import giatools.io import numpy as np import skimage.io @@ -77,7 +78,7 @@ im_shape = None for input in args.input: name, filepath = input.split(':') - im = skimage.io.imread(filepath) + im = giatools.io.imread(filepath) assert name not in inputs, 'Input name "{name}" is ambiguous.' inputs[name] = im if im_shape is None: