# HG changeset patch # User imgteam # Date 1576663114 0 # Node ID f9df2b32b63225b063f8127c4be94d08e7f31b82 # Parent 5cda6b23a47ea8b77c5e66f43fc6141ec18365ea "planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/overlay_moving_and_fixed_image/ commit 3d389fdec0db29cf6fbd783c0501455bf624fa90" diff -r 5cda6b23a47e -r f9df2b32b632 overlay_moving_and_fixed_image.py --- a/overlay_moving_and_fixed_image.py Sat Feb 09 14:20:06 2019 -0500 +++ b/overlay_moving_and_fixed_image.py Wed Dec 18 09:58:34 2019 +0000 @@ -29,7 +29,7 @@ tf_coords = tf_coords.T.reshape((-1, cols, rows)).swapaxes(1, 2) _stackcopy(coords[1, ...], tf_coords[0, ...]) - _stackcopy(coords[0, ...], tf_coords[1, ...]) + _stackcopy(coords[0, ...], tf_coords[1, ...]) if len(shape) == 3: coords[2, ...] = range(shape[2]) @@ -47,7 +47,7 @@ fixed_image = Image.fromarray(fixed_image).convert("RGBA") overlay_out = Image.blend(moving_image, fixed_image, factor) overlay_out.save(overlay_out_path, "PNG") - + if __name__=="__main__": parser = argparse.ArgumentParser(description = "Overlay two images") diff -r 5cda6b23a47e -r f9df2b32b632 overlay_moving_and_fixed_image.xml --- a/overlay_moving_and_fixed_image.xml Sat Feb 09 14:20:06 2019 -0500 +++ b/overlay_moving_and_fixed_image.xml Wed Dec 18 09:58:34 2019 +0000 @@ -1,4 +1,4 @@ - + moving and fixed image scikit-image @@ -6,11 +6,12 @@ numpy scipy pillow + tifffile -