Canine templates coregistration #1857
-
Hello, I am trying to coregister two canine atlases:
I would like to coregister the Czeibert atlas template onto the Johnson atlas template and then apply the transformations for the Czeibert atlas labels. So far, I manually aligned the Czeibert template onto the Jhonson template and set origing to the anterior commisure using SPM Set Origin. I am attaching an overlap of the two images in MRIcroL. I also verified the overlap in other programs (3D slicer and SPM chekreg), and the images are aligned pretty well, although not perfectly. Then, I tried registering the two images using antsRegistrationSyNQuick.sh with the following inputs:
However, I am receiving the following errors:
same for stage 1 and then
Do you have any suggestions as to what might be causing this? I am also attaching a full log of the run I also tried switching between the fixed and moved image but with the same results. Moreover, I thought that the fact that one image has a stripped skull whereas the other one doesn't might not disrupt the analysis, but when I previously tried to coregister the Jhonson atlas (with stripped skull) to my image data without skull stripping, it did a fine job. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
I'll try to help, could you please make a runnable example including the files you're using (ie, your preprocessed data)? I'll download and take a look |
Beta Was this translation helpful? Give feedback.
-
One thing I see is that you are trying to register a brain-extracted to a non brain-extracted image. I would make a mask from the labels and register brain to brain. |
Beta Was this translation helpful? Give feedback.
I think I see the issue now. I think the main problem is negative intensities in the images, which causes the center of mass initialization to fail. I fixed this by using
-i Identity
, which initializes with an identity transform. Another option is to threshold and then mask out the negative values before registration. Using a mask during registration with-x
doesn't help here, because the center of mass is applied over the whole image domain.