-
Notifications
You must be signed in to change notification settings - Fork 35
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
How to pass command line arguments to antsRegistration? #391
Comments
You'll have to look through the |
I've not used the list option but I believe you would need to replace file names with pointers to antsImage objects using
I include the clone here from the man example, the antsRegistration function also clones the input image. |
@cookpa
clearly antsRegistration is using the antsImageClone too, since every call has a different pointer address. So not sure how to do convert this a list call
|
Yes you'd get another pointer each time, they are pointers to copies of the image. Sorry, the example I gave was probably not very useful. To avoid garbage collection you'd need to keep a reference around, so something like fi_for_reg = antsImageClone(fi) Then in your antsRegistration parameter list, you'd replace the file names with antsrGetPointerName(fi_for_reg) and antsrGetPointerName(mi_for_reg) I don't actually know why antsRegistration clones the input images this way, but it does. |
If I set the printArgs to TRUE, I can see the full set of antsRegistration parameters.
I want to use this to modify some of the settings that are not exposed by R call. However, I couldn't figure out how to pass this back to antsRegistration. Documentation shows an example, but the call fails since it points to a file on disk, as opposed to an array in memory.
The text was updated successfully, but these errors were encountered: