question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Elastix Parameters --> ITK Transforms] Provide function to convert Elastix's TransformParameter.txt to ITK transforms

See original GitHub issue

Context

  • 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:open
  • Created 3 years ago
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
N-Dekkercommented, Jul 12, 2021

@thewtex

Reference: https://github.com/SuperElastix/elastix/tree/develop/Testing/Data/Translation(1%2C-2)

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.

1reaction
dzenanzcommented, Oct 22, 2020

Writing an ITK transform into .tfm file should be no different from writing into .h5.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found