Mercurial > repos > imgteam > image_registration_affine
comparison 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 |
comparison
equal
deleted
inserted
replaced
1:704881eab59f | 2:16eedbaba295 |
---|---|
107 | 107 |
108 tmat = np.eye(3) | 108 tmat = np.eye(3) |
109 tmat[0, :] = result.x.take([0, 1, 2]) | 109 tmat[0, :] = result.x.take([0, 1, 2]) |
110 tmat[1, :] = result.x.take([3, 4, 5]) | 110 tmat[1, :] = result.x.take([3, 4, 5]) |
111 | 111 |
112 tmat = np.linalg.inv(tmat) | |
113 | |
112 pd.DataFrame(tmat).to_csv(fn_out, header=None, index=False, sep="\t") | 114 pd.DataFrame(tmat).to_csv(fn_out, header=None, index=False, sep="\t") |
113 | 115 |
114 | 116 |
115 if __name__ == "__main__": | 117 if __name__ == "__main__": |
116 | 118 |