Mercurial > repos > imgteam > orientationpy
diff orientationpy-cli.py @ 2:cc8fe984ec3e draft default tip
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/orientationpy commit c86a1b93cb7732f7331a981d13465653cc1a2790
author | imgteam |
---|---|
date | Wed, 24 Apr 2024 08:12:45 +0000 |
parents | 214f548481eb |
children |
line wrap: on
line diff
--- a/orientationpy-cli.py Thu Apr 04 15:25:49 2024 +0000 +++ b/orientationpy-cli.py Wed Apr 24 08:12:45 2024 +0000 @@ -1,6 +1,7 @@ import argparse import csv +import giatools.io import numpy as np import orientationpy import skimage.io @@ -19,7 +20,7 @@ parser.add_argument('--output_angle_tsv', type=str, default=None) args = parser.parse_args() - im = skimage.io.imread(args.input) + im = giatools.io.imread(args.input) im = skimage.util.img_as_float(im) im = np.squeeze(im) assert im.ndim == 2