diff slice_image.py @ 4:a72590196440 draft default tip

planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/slice_image/ commit c86a1b93cb7732f7331a981d13465653cc1a2790
author imgteam
date Wed, 24 Apr 2024 08:13:20 +0000
parents 1faa7e3c94ff
children
line wrap: on
line diff
--- a/slice_image.py	Thu Apr 04 15:26:38 2024 +0000
+++ b/slice_image.py	Wed Apr 24 08:13:20 2024 +0000
@@ -3,6 +3,7 @@
 import random
 import warnings
 
+import giatools.io
 import numpy as np
 import skimage.feature
 import skimage.io
@@ -15,7 +16,7 @@
     if seed is not None:
         random.seed(seed)
 
-    img_raw = skimage.io.imread(input_file)
+    img_raw = giatools.io.imread(input_file)
     if len(img_raw.shape) == 2:
         img_raw = np.expand_dims(img_raw, 3)