Closed luckyxiaoqi closed 4 years ago
I don't understand the issue here. A reproducible example with code + data would help.
I use antsRegistrationSyN.sh then I get poor result. I read #Tips for improving registration results# ,I doubt maybe the initiatization has problem, so I intiliza the data,the command is antsAI -d 3 -m Mattes[ /home/ouyangxiaoyun/Downloads/registration/breastRCN/deletebone/raw/17914/Supinecrop2.nii.gz,/home/ouyangxiaoyun/Downloads/registration/breastRCN/deletebone/raw/17914/Pronecrop2.nii.gz] -t Rigid[0.1] -o /home/ouyangxiaoyun/Downloads/registration/breastRCN/deletebone/syN/17914sp/1.mat -v 1 and the result are
as the picture show the 127th and 128th pictures are black
Can you share the data?
I can send to you by e-mail . Can you tell me you e-mai?
I'd prefer to keep them here so everyone can see and benefit from the answers. If they are under 25Mb, you can upload them here by dragging and dropping into the comment. You can also gzip the images (ANTs can read .nii.gz files) before uploading.
Pronecrop2.nii.gz Supinecrop2.nii.gz these are original data.I want to get a better intilization and a good syN transformation.
Thanks. This looks like it will be a hard problem because the images have large deformations, different fields of view, and pretty limited anatomical features. It might need help from landmarking and / or a a transform model other than SyN, but I almost always use SyN so I'm not the best to advise on that.
For initialization, antsAI
starts from a center of mass alignment, which might not be a good starting point. I was able to get what I think is an OK initialization using ITK-SNAP, doing first a rigid then an affine registration. You can also manipulate these transforms manually. If you save them as ITK transforms you can then use them as initial moving transforms with antsRegistration
.
Thanks,I will try it.
I use some tips to test initialization such as antsAI or antsRegistration -d 3 -r [ fixed.nii.gz , moving.nii.gz , 1] -t Rigid[0.1] \ -m MI[ fixed.nii.gz, moving.nii.gz, 1, 32] -c 0 -f 4 -s 2 \ -o [movingInit, movingInit_deformed.nii.gz] ,I find after initialization I got images which are back in the last two images,other images are good.