-
Notifications
You must be signed in to change notification settings - Fork 3
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
Issue with group registration #438
Comments
Thanks for asking about this, @boazmohar! I get this error as well when I test the groupwise reg. Looks like it's related to this issue (SuperElastix/SimpleElastix#468), where more recent versions of SimpleITK/SimpleElastix lost support for groupwise reg. A workaround I just tested is to install an older version of SimpleElastix. I have an older build that works, though it's a bit complicated to install to avoid version conflicts and because it's only for Python 3.6. I got it to work by changing this section in Lines 76 to 89 in 430974b
to install these
and then rerunning setup:
Yeah, the groupwise reg function was originally for a more specialized case, and I'll need to remove this assumption--thanks for pointing it out! I also found a few more issues such as loading settings that I'll need to fix. |
Thanks for addressing this. I saw that ANTS has a more well documented group registration function: antsMultivariateTemplateConstruction2.sh |
Thanks for sharing, will definitely consider this. I have not used ANTs extensively, and my understanding is that it can be very accurate but more computationally expensive (see https://ieeexplore.ieee.org/document/8512403). Have you found it to work well for your use cases? Also, happy to work together with you to implement it here, if you are interested. |
Yes, I do find it very accurate and slow. It can take many hours to make a template, but I on;y need to do it once (well correctly once, but incorrectly many time :). Thanks!! |
Thanks for pointing out that wrapper! It looks like a great way to implement ANTs here, and happy to add it as a dependency. I've been using SimpleITK here mainly just for I/O and registration, otherwise converting to NumPy arrays, and it looks like ANTsPy could at least function similarly. The extra registration accuracy would also be a definite plus! Please do feel free to integrate it if you'd like, and let me know anytime if questions come up, happy to help. By the way, the folks at SimpleITK are fixing the groupwise reg, so hopefully that will be working again soon: SimpleITK/SimpleITK#1891 . |
@boazmohar, I've added support for ITK-Elastix as an alternate to SimpleITK, where the groupwise registration works at least in my basic tests. It should also be easier to integrate other registration toolkits like ANTs if interested in the future. |
Hi,
I have an issue while I am trying to get an average volume of 6 brains I have imaged.
I start with import and resize to the allen ccf:
Then I tried to run the group reg:
My first issue is the assumption I have labels for one of the brains - line 1061 in register.py.
In my local copy I was trying to skip this and not crop in y.
I can get thru to line 1116:
And I get an error:
I tried this minimal example:
Still get the same error.
Any idea what I have missing?
I found this issue, maybe could be related.
Thanks!
Boaz
The text was updated successfully, but these errors were encountered: