comparison 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
comparison
equal deleted inserted replaced
1:fa769715b6b0 2:77dc68af2b40
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