Mercurial > repos > imgteam > overlay_moving_and_fixed_image
diff overlay_moving_and_fixed_image.py @ 1:f9df2b32b632 draft
"planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/overlay_moving_and_fixed_image/ commit 3d389fdec0db29cf6fbd783c0501455bf624fa90"
| author | imgteam |
|---|---|
| date | Wed, 18 Dec 2019 09:58:34 +0000 |
| parents | 5cda6b23a47e |
| children | 93533276bf1d |
line wrap: on
line diff
--- 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")
