diff morphological_operations.py @ 2:4e25befab102 draft default tip

planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c86a1b93cb7732f7331a981d13465653cc1a2790
author imgteam
date Wed, 24 Apr 2024 08:12:39 +0000
parents f10112b317a1
children
line wrap: on
line diff
--- a/morphological_operations.py	Thu Apr 04 15:25:44 2024 +0000
+++ b/morphological_operations.py	Wed Apr 24 08:12:39 2024 +0000
@@ -1,5 +1,6 @@
 import argparse
 
+import giatools.io
 import numpy as np
 import scipy.ndimage as ndi
 import skimage.io
@@ -76,7 +77,7 @@
     parser.add_argument('output', type=str)
     args = parser.parse_args()
 
-    im = skimage.io.imread(args.input)
+    im = giatools.io.imread(args.input)
     assert im.ndim in (2, 3), 'Input image must be two-dimensional and either single-channel or multi-channel.'
 
     if im.ndim == 2: