Repository 'projective_transformation'
hg clone https://toolshed.g2.bx.psu.edu/repos/imgteam/projective_transformation

Changeset 7:6a8ae8cd7167 (2024-04-24)
Previous changeset 6:2f504e075496 (2024-04-04)
Commit message:
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/projective_transformation/ commit c86a1b93cb7732f7331a981d13465653cc1a2790
modified:
projective_transformation.py
projective_transformation.xml
b
diff -r 2f504e075496 -r 6a8ae8cd7167 projective_transformation.py
--- 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:
b
diff -r 2f504e075496 -r 6a8ae8cd7167 projective_transformation.xml
--- a/projective_transformation.xml Thu Apr 04 15:26:07 2024 +0000
+++ b/projective_transformation.xml Wed Apr 24 08:13:05 2024 +0000
[
@@ -4,7 +4,7 @@
         <import>creators.xml</import>
         <import>tests.xml</import>
         <token name="@TOOL_VERSION@">0.1.2</token>
-        <token name="@VERSION_SUFFIX@">3</token>
+        <token name="@VERSION_SUFFIX@">4</token>
     </macros>
     <creator>
         <expand macro="creators/bmcv"/>
@@ -21,6 +21,7 @@
         <requirement type="package" version="1.24.4">numpy</requirement>
         <requirement type="package" version="1.10.1">scipy</requirement>
         <requirement type="package" version="2021.7.2">tifffile</requirement>
+        <requirement type="package" version="0.1">giatools</requirement>
     </requirements>
     <command detect_errors="aggressive">
     <![CDATA[