Dženan Zukić
Dženan Zukić
Below is the code which triggers the error. To be used from a jupyter notebook or a script in [examples](https://github.com/InsightSoftwareConsortium/ITKElastix/tree/main/examples) directory. I based it on https://github.com/InsightSoftwareConsortium/ITKElastix/blob/4fbdc9c9ca32aa740d8842c0892b817cf8ef0f41/examples/ITK_Example04_InitialTransformAndMultiThreading.ipynb. ```log --------------------------------------------------------------------------- RuntimeError Traceback...
Nothing better than "`SetExternalInitialTransform` might need special care in wrapping", but that is unlikely 😞
Without that PR, there is an error "there is no `SetExternalInitialTransform` symbol". To create minimal repro, I did `pip install --upgrade itk-elastix` and got `itk-elastix-0.18.0`, the latest one.
Hopefully you can update elastix via a PR? Bumping the version number in `setup.py` at the same time would be great. After that is merged I could tag it if...
Using `itk-elastix` 0.19.0, fixes the above problem. However, adding the following line to it: ```c++ parameter_object.WriteParameterFile(elastix_transform_parameters, "rigid_transform.txt") ``` causes this error: ```log --------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) Cell...
I tried the plural version, and it has its own problem: https://github.com/InsightSoftwareConsortium/ITKElastix/issues/246#issuecomment-1753154752.
Everything sounds right to me. @N-Dekker or @ViktorvdValk might also pitch in.
Perhaps take a look at https://github.com/InsightSoftwareConsortium/ITK/blob/master/Documentation/docs/migration_guides/itk_5_migration_guide.md#strongly-typed-enumerations? Concretely, add `itk_wrap_simple_class("itk::ElastixLogLevel")` to wrapping somewhere.
Writing an ITK transform into `.tfm` file should be no different from writing into `.h5`.
Has there been some progress on this front? I now need ITKElastix transform equivalence, see simplified code below: ```py # use manually placed landmarks to initialize the registration case_landmarks =...