[Elastix Parameters --> ITK Transforms] Provide function to convert Elastix's TransformParameter.txt to ITK transforms
See original GitHub issueContext
- 3D Visualization software like 3D Slicer provide a larger number of visualization modules for different purposes.
- One of the modules, the Transform module allows loading of .tfm files. These files can be created by using for e.g.
sitk.WriteTransform(sitk.BSplineTransform(3), 'BSpline.tfm')
. This Transform module is quite handy as it allows for easy visualization of the deformed grids of BSpline.
Is there a roadmap to include these kind of Elastix -> ITK Transform
helper functions in ITKElastix?
Issue Analytics
- State:
- Created 3 years ago
- Comments:14 (8 by maintainers)
Top Results From Across the Web
elastix resampled image from transformix and ItkTransform ...
SetSpacing(spacing_out.tolist()) # convert elastix transform parameter maps to ITK representations itk_euler = elx_to_itk_euler2d(euler_pmap) itk_affine ...
Read more >Parameters - elastix
In the elastix.log file the actually chosen values for these parameters can be ... AutomaticTransformInitializationMethod: how to initialize this transform.
Read more >Parameter Maps — SimpleElastix 0.1 documentation
The Transform parameter is set to TranslationTransform which it is optimized with an AdaptiveStochasticGradientDescent optimizer (Klein et al. 2009).
Read more >SimpleElastix Documentation - Read the Docs
This will install the SimpleITK python module with SimpleElastix, ... and arguments to copying images and transform parameter files across ...
Read more >Convert Transform parameter file to transform matrix
I also used elastix command line to generate a deformation field. However, my manually computed results were always a little bit different from...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@thewtex
Explanation: The current “develop” branch of elastix supports elastix transform parameter files that link to an ITK generated HDF5 or TFM file. For example, this is a supported elastix transform parameters file: https://github.com/SuperElastix/elastix/blob/develop/Testing/Data/Translation(1%2C-2)/TransformParameters-link-to-ITK-tfm-file.txt In this case, it links to the following ITK transform file: https://github.com/SuperElastix/elastix/blob/develop/Testing/Data/Translation(1%2C-2)/ITK-Transform.tfm
(Such an elastix transform parameters file may be used as input for both Elastix (as initial transform parameter file) and Transformix.)
At the moment, four ITK transform types are actively tested as input to elastix: Translation, Affine, Euler, and Similarity. I’m still busy preparing to add tests for BSpline.
Writing an ITK transform into
.tfm
file should be no different from writing into.h5
.