New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ITK Elastix registration operator #2218
Add ITK Elastix registration operator #2218
Conversation
Previously, the enumeration data type was required to be an int. However, there are some cases where it is better for it to be something else, such as a string. It is very helpful for integrating the ITK Elastix library for it to be a string, since that is what we will actually be setting in the ITK Elastix parameters. Thus, try to convert the data to an int if possible (otherwise, it will always be interpreted as a float, which will cause issues with some operators). If it's not an int, just let it be whatever type it is (float, string, bool, None). Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
This adds a volume registration operator that uses ITK Elastix. To use it, ITK Elastix must be installed via `pip install itk-elastix`. This was designed to work in both pip and conda environments. We will look into adding this to the tomviz conda build. Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
@psavery Is itk-elastix enable in the version of ITK in our super build? |
No, I think it is separate from ITK, and that you can't enable it in ITK. We might be able to clone the repository and build it, but I'm not sure. I know that we can, however, |
We may want todo what we did for databroker and only enable the operator if we can import |
So currently, the action lives inside the Should we implement something so that the
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I think for now we can punt on disabling if elastix is not available. We can look at one of the cleaner solutions in the future.
This adds a volume registration operator that uses ITK Elastix.
To use it, ITK Elastix must be installed via
pip install itk-elastix
.This was designed to work in both pip and conda environments. We will
look into adding this to the tomviz conda build.
registration_example.mp4