Something very close to what you want (although it's supposed to be a
crude estimation):
Look at spm_render.m , line 344. Replace
curv = 0.5 * repmat(curv,1,3) + 0.3 * repmat(~curv,1,3);
by
facecolor = [1 0 0]; % red
curvecolor = [0 1 0]; % green
curv = repmat(facecolor,size(curv)) .* repmat(curv,1,3) + ...
repmat(curvecolor,size(curv)) .* repmat(~curv,1,3);
Then load an SPM.mat, set the threshold at infinite, choose overlays,
render, and your render gii-file.
There is more elegant ways to get what you want, but this is the
easiest. If you want to find out details, look into spm_surf.m,
spm_render.m and all spm_mesh_*.m files.
Happy Easter!
Martin
2011/4/24 MCLAREN, Donald <[log in to unmask]>:
> Also, look at CARET.
>
> On Sunday, April 24, 2011, maryam momeni <[log in to unmask]> wrote:
>> Hi Dears,
>>
>> I want to visualize the brain surface according to colored gyri and sulci, for example sulci in green and gyri in red. Can I do it in SPM? And how can I do it with SPM?
>>
>>
>> Regards
>> Maryam
>>
>
> --
>
> Best Regards, Donald McLaren
> =================
> D.G. McLaren, Ph.D.
> Postdoctoral Research Fellow, GRECC, Bedford VA
> Research Fellow, Department of Neurology, Massachusetts General Hospital and
> Harvard Medical School
> Office: (773) 406-2464
> =====================
> This e-mail contains CONFIDENTIAL INFORMATION which may contain PROTECTED
> HEALTHCARE INFORMATION and may also be LEGALLY PRIVILEGED and which is
> intended only for the use of the individual or entity named above. If the
> reader of the e-mail is not the intended recipient or the employee or agent
> responsible for delivering it to the intended recipient, you are hereby
> notified that you are in possession of confidential and privileged
> information. Any unauthorized use, disclosure, copying or the taking of any
> action in reliance on the contents of this information is strictly
> prohibited and may be unlawful. If you have received this e-mail
> unintentionally, please immediately notify the sender via telephone at (773)
> 406-2464 or email.
>
|