Thanks for your help, but I didn't succeed to apply the transformation that
you have illustrated.
I perform a test to try the instruction spm_get_space:
I have realigned all my volume to the first image and in a second step I
have used the command that you have suggest:
M=spm_get_space('image_realign')
and apply to
spm_get_space('original_image' , M)
Once all the headers was encoded in the right orientations I used the
"Coregister:Reslice" option to reslice all the original volumes to the first
image, but the images that I obtained was identical to the original.
There is something wrong in the procedure that I have applied?
On Thu, 13 Nov 2008 13:14:56 +0100, John Ashburner <[log in to unmask]>
wrote:
>The contents of the rp_*.txt file is also encoded in the image headers (or
>.mat files) after realignment. Maybe you could copy this matrix information
>from one image (an image that was included in the realignment) to another
>(the one derived from the image that was included in the realignment).
>
>The command for reading a matrix is
>
> M = spm_get_space('imagename')
>
>and the command for writing a matrix to the header of another image is
>
> spm_get_space('another_imagename', M)
>
>Once all the headers encode the right orientations etc, then you can simply
>use the coregister (reslice only) option of SPM to reslice an image to match
>any other image from that subject.
>
>Best regards,
>-John
>
>On Wednesday 12 November 2008 19:55, Alessio Tallarita wrote:
>> Dear all,
>> I would like to resample some volume images with the transformation matrix
>> contained in rp_1.txt create with SMP5.
>> Initially I have realign all images with SPM and after I have quantified
>> them. In a second step I have first quantify the same original image and I
>> have to apply the same transformation contained in rp_1.txt (create in the
>> previous step) to compare the results of realign and quantification
>> obtained with the two different process.
>> Is there in SPM a command line instruction (or menu option) that permit me
>> to write out a resampled volume with the transformation matrix contained in
>> rp_1.txt ?
>>
>> Many thanks for any suggestions.
>>
>> Alessio Tallarita
|