# HG changeset patch # User imgteam # Date 1646069749 0 # Node ID 77dc68af2b4019ab9d88cad3617b4d76be9beb11 # Parent fa769715b6b0afa90f6775c673743c3b8907e55e "planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/image_registration_affine/ commit ded1703bcd6e295b26201505edb58381991b265e" diff -r fa769715b6b0 -r 77dc68af2b40 image_registration_affine.py --- 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") diff -r fa769715b6b0 -r 77dc68af2b40 image_registration_affine.xml --- a/image_registration_affine.xml Thu Jan 20 00:45:30 2022 +0000 +++ b/image_registration_affine.xml Mon Feb 28 17:35:49 2022 +0000 @@ -1,4 +1,4 @@ - + based on intensity information scikit-image @@ -22,9 +22,9 @@ - - + + diff -r fa769715b6b0 -r 77dc68af2b40 test-data/fixed.png Binary file test-data/fixed.png has changed diff -r fa769715b6b0 -r 77dc68af2b40 test-data/moving.png Binary file test-data/moving.png has changed diff -r fa769715b6b0 -r 77dc68af2b40 test-data/tmat.tsv --- a/test-data/tmat.tsv Thu Jan 20 00:45:30 2022 +0000 +++ b/test-data/tmat.tsv Mon Feb 28 17:35:49 2022 +0000 @@ -1,3 +1,3 @@ -0.8513326357669146 0.5366986237200791 -51.80508130298601 --0.5191006904557887 0.8391654313316298 89.65319219211344 +0.9999953761892572 -3.4540516900938576e-06 0.0010064125193630824 +7.084236474277291e-06 1.0000016307496928 14.99826055220615 0.0 0.0 1.0