Mercurial > repos > imgteam > image_registration_affine
diff image_registration_affine.py @ 2:16eedbaba295 draft default tip
"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:34:34 +0000 |
parents | 704881eab59f |
children |
line wrap: on
line diff
--- a/image_registration_affine.py Thu Jan 20 00:44:29 2022 +0000 +++ b/image_registration_affine.py Mon Feb 28 17:34:34 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")