diff projective_transformation.py @ 7:6a8ae8cd7167 draft default tip

planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/projective_transformation/ commit c86a1b93cb7732f7331a981d13465653cc1a2790
author imgteam
date Wed, 24 Apr 2024 08:13:05 +0000
parents 37b079c98c38
children
line wrap: on
line diff
--- a/projective_transformation.py	Thu Apr 04 15:26:07 2024 +0000
+++ b/projective_transformation.py	Wed Apr 24 08:13:05 2024 +0000
@@ -9,6 +9,7 @@
 import argparse
 import warnings
 
+import giatools.io
 import numpy as np
 import pandas as pd
 import skimage.color
@@ -47,7 +48,7 @@
 
 
 def transform(moving_fn, fixed_fn, warp_mat, output_fn):
-    moving = skimage.io.imread(moving_fn)
+    moving = giatools.io.imread(moving_fn)
     nDims = len(moving.shape)
     assert nDims in [2, 3, 4, 5, 6], 'this tool only supports up to 6 dimensions'
 
@@ -62,7 +63,7 @@
     else:
         isMulCh = False
 
-    fixed = skimage.io.imread(fixed_fn)
+    fixed = giatools.io.imread(fixed_fn)
     if fixed.shape[-1] in [3, 4] and len(fixed.shape) > 2:
         hw_fixed = fixed.shape[-3:-1]
     else: