Dear John,
Single quotes does not work, but ImCalc does work. Thank you very much.
Best regards,
Shige
-----Original Message-----
From: John Ashburner [mailto:[log in to unmask]]
Sent: Thursday, March 29, 2012 12:48 PM
To: Shigetoshi Takaya
Subject: Re: [SPM] Transforming T-images to Z-images in spm8
Dear Shige,
I don't know anything about the t2z_img function, but it seems that the way
it has been called is the problem. Maybe try putting single quotes around
'spmT_0001'.
If it still does not work, then you could try computing Z images using
ImCalc. The function to evaluate would be:
spm_t2z(i1,11)
Best regards,
-John
On 29 March 2012 16:47, Shigetoshi Takaya <[log in to unmask]> wrote:
> Thanks, John.
>
> The error message appears as follows when t2z_img is used in spm8.
>
>>> t2z_img(spmT_0001, 11)
> ??? Undefined function or variable 'spmT_0001'.
>
> Is this because t2z_img script contains spm_get that is not used in
> spm8?
>
> Best regards,
> Shige
>
>
>
> On Thu, 2012-03-29 at 15:24 +0100, John Ashburner wrote:
>> If you use SPM2, then there's a good chance that there will be a lot
>> of orientation confusion when you try to do anything with the images
>> in other packages. SPM2 was written before NIfTI was developed. If
>> you use SPM5 or SPM8, these are NIfTI compliant, so any images
>> written out should also be fine in other packages that handle NIfTI.
>>
>> I've just tried spm_t2z, and it seems to work OK. What error
>> messages etc did you have?
>>
>> Best regards,
>> -John
>>
>>
>> On 29 March 2012 14:31, Shigetoshi Takaya <[log in to unmask]>
wrote:
>> > Dear experts,
>> >
>> > How can I transform T-images (i.e. spmT) to Z-images in spm8?
>> >
>> > It seems that script spm_t2z does not work in spm8. In addition,
>> > Z-images appear flipped in FSL View when T-images are converted
>> > using spm_t2z in spm2.
>> >
>> > Thanks in advance.
>> > Shige
>> >
>> >
>> >
>> > The information in this e-mail is intended only for the person to
>> > whom it is addressed. If you believe this e-mail was sent to you in
>> > error and the e-mail contains patient information, please contact
>> > the Partners Compliance HelpLine at
>> > http://www.partners.org/complianceline . If the e-mail was sent to
>> > you in error but does not contain patient information, please contact
the sender and properly dispose of the e-mail.
>>
>>
>
|