-
-
Notifications
You must be signed in to change notification settings - Fork 381
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 can i get deformation field? #1642
Comments
How did you produce the deformation field? |
That's exactly what I want to know too LOL |
Are you asking how to do image registration? Start with the script |
|
I'm a little confused, running the registration script with its default parameters will produce a deformation field in NIFTI format. |
sry,there is something wrong with my expression. I registrat with python package antspy running in linux fixed = ants.image_read("MRI.nii.gz") img = nib.load('CT.nii.gz') scale = (0.9375, 0.9375, 0.6) moving = nib.Nifti1Image(moving, img.affine, img.header) moving = ants.image_read("re_CT.nii.gz") SyN = ants.registration(fixed=fixed, moving=moving, save_state=True) ants.image_write(result, 'moved.nii.gz') |
Ok I think I understand now
This should be a list of strings, they are file names. The first one will be the deformation field, in NIFTI format. They can be read with the |
HI,I want to save deformation field to NIFTY format, what should i do?
The text was updated successfully, but these errors were encountered: