SuperElastix / SimpleElastix

Multi-lingual medical image registration library

Home Page:http://simpleelastix.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Registration with initial transform obtained using SimpleITK/etc. (.tfm file)

dyollb opened this issue · comments

I have a collection of good initial (affine) transforms stored in .tfm files. In SimpleITK I can load those using tx = sitk.ReadTransform(tfm_file). I would like to use ElastiX to refine the alignment using some form of non-rigid registration.
How can I pass the (affine) initial transform to elastix? Do you have an example how to convert the parameters...?

this ITKElastix tutorial provides some explanation how to convert an elastix transfrom to an ITK transform (euler and affine).

Doing the inverse should be straight-forward.