Print

Print


.m but it seems support only spm2.
>
> Your assistance are well appreciated.
>
> Thank you so much.
>
> Janice
>



--
Research Associate
Gazzaley Lab
Department of Neurology
University of California, San Francisco

--0023547c93373a30ff049d0f6945
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

how about this:<div>%%%</div><div><br></div><div>v = spm_vol(&#39;/image_path/brain.img&#39;);</div><div>x = spm_read_vols(v);</div><div><br></div><div>x = x(size(x,1):-1:1,:,:);</div><div><br></div><div>[path file] = fileparts(v.fname);</div>




<div>v.fname = fullfile(path,[&#39;flipped_&#39; file&#39;);</div><div><br></div><div>spm_write_vol(v,x)<br><br></div><div>%%%</div><div><br></div><div><br></div><div>cheers,</div><div>michael</div><div><br><div class="gmail_quote">




On Thu, Feb 24, 2011 at 9:35 AM, Chien-Ho Lin <span dir="ltr">&lt;<a href="mailto:[log in to unmask]" target="_blank">[log in to unmask]</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




Hi,<br>
<br>
I stuides patients with stroke doing some behavior paradigm in fMRI.<br>
Patients always used their affected limb for the task so some patients used left hand some used right hand.<br>
Now I would like to flip the left and right of the images so patients&#39; lesional hemisphere are on the same side.<br>
<br>
Is there any script in spm 5 or 8 can help to accomplish this goal?<br>
<br>
I found a m file called spm_flip.m but it seems support only spm2.<br>
<br>
Your assistance are well appreciated.<br>
<br>
Thank you so much.<br>
<br>
Janice<br>
</blockquote></div><br><br clear="all"><br>-- <br>Research Associate<br>Gazzaley Lab<br>Department of Neurology<br>University of California, San Francisco<br>
</div>

--0023547c93373a30ff049d0f6945--