# HG changeset patch # User imgteam # Date 1713946385 0 # Node ID 6a8ae8cd71679ae0e8ea523db7fc1cdfe30e8210 # Parent 2f504e075496061bae033743841dcad527fb1982 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/projective_transformation/ commit c86a1b93cb7732f7331a981d13465653cc1a2790 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: 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 @@ creators.xml tests.xml 0.1.2 - 3 + 4 @@ -21,6 +21,7 @@ numpy scipy tifffile + giatools