diff image_registration_affine.py @ 2:77dc68af2b40 draft

"planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/image_registration_affine/ commit ded1703bcd6e295b26201505edb58381991b265e"
author imgteam
date Mon, 28 Feb 2022 17:35:49 +0000
parents fa769715b6b0
children
line wrap: on
line diff
--- a/image_registration_affine.py	Thu Jan 20 00:45:30 2022 +0000
+++ b/image_registration_affine.py	Mon Feb 28 17:35:49 2022 +0000
@@ -109,6 +109,8 @@
     tmat[0, :] = result.x.take([0, 1, 2])
     tmat[1, :] = result.x.take([3, 4, 5])
 
+    tmat = np.linalg.inv(tmat)
+
     pd.DataFrame(tmat).to_csv(fn_out, header=None, index=False, sep="\t")