Mercurial > repos > imgteam > overlay_moving_and_fixed_image
diff overlay_moving_and_fixed_image.py @ 1:bc324ec66719 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 05:02:39 -0500 |
parents | 165a9330fc90 |
children | b4fc6e09e576 |
line wrap: on
line diff
--- a/overlay_moving_and_fixed_image.py Sat Feb 09 14:39:40 2019 -0500 +++ b/overlay_moving_and_fixed_image.py Wed Dec 18 05:02:39 2019 -0500 @@ -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")