Dear Jessica,
can you copy the attached file in your SPM12 installation, overwriting
spm_swarp.m from the main folder, and let us know whether things improve
with it.
Best regards,
Guillaume.
On 26/02/15 08:06, Jessica Lebenberg wrote:
> Dear John,
>
> Thank you for your message.
>
> When I tape the requested commands, I obtained this matrix:
>
>>> g.mat
>
> ans =
>
> 1.0990 0 0 -62.6408
> 0 1.0990 0 -76.9267
> 0 0 1.1000 -65.4499
> 0 0 0 1.0000
>
>
> Best regards,
> Jessica
>
>
>
>
> On Wed, 25 Feb 2015 17:27:22 +0000, John Ashburner <[log in to unmask]> wrote:
>
>> Warping a surface needs the inverse of the transform that would usually be
>> used to warp an image. Also note that the surface should be in gifti
>> format, and that the vertex coordinates should be in mm.
>>
>> I don't know anything about what coordinate system BrainVisa stores its
>> vertices in, but perhaps you could type the following in MATLAB to see if I
>> need to adjust the code in SPM to handle transform matrices that are not
>> simply eye(4).
>>
>> g = gifti('filename.gii');
>> g.mat
>>
>> Best regards,
>> -John
>>
>>
>>
>> On 25 February 2015 at 16:12, Jessica Lebenberg <[log in to unmask]>
>> wrote:
>>
>>> Dear all,
>>>
>>> I would like to apply a DARTEL deformation (using the u_rc1.nii flow
>>> field) to a surface (in gifti format obtained thanks to BrainVISA software).
>>> I'm currently using SPM12 and I saw that there is a tool in
>>> Utils/Deformation/Dartel flow to deform a surface.
>>> Unfortunately, the output is empty. I suppose the surface input is not in
>>> the right space ? I have no problem to deform a nifti file that perfectly
>>> match with the surface.
>>>
>>> Do you know what's wrong with my experiment and how can I do to apply a
>>> DARTEL deformation to a surface ?
>>>
>>> Thanks in advance,
>>> Jessica
>>>
>>
--
Guillaume Flandin, PhD
Wellcome Trust Centre for Neuroimaging
University College London
12 Queen Square
London WC1N 3BG
|