Home > bioelectromagnetism > freesurfer_plot_thickness.m

freesurfer_plot_thickness

PURPOSE ^

freesurfer_plot_thickness

SYNOPSIS ^

function [Hp] = freesurfer_plot_thickness(surf,thickness)

DESCRIPTION ^

 freesurfer_plot_thickness

 [Hp] = freesurfer_plot_thickness(surf,thickness)

 returns a handle to the patch object in Hp.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [Hp] = freesurfer_plot_thickness(surf,thickness)
0002 
0003 % freesurfer_plot_thickness
0004 %
0005 % [Hp] = freesurfer_plot_thickness(surf,thickness)
0006 %
0007 % returns a handle to the patch object in Hp.
0008 %
0009 
0010 
0011 % $Revision: 1.1 $ $Date: 2005/05/18 23:07:42 $
0012 
0013 % Copyright (C) 2000  Darren L. Weber
0014 %
0015 % This program is free software; you can redistribute it and/or
0016 % modify it under the terms of the GNU General Public License
0017 % as published by the Free Software Foundation; either version 2
0018 % of the License, or (at your option) any later version.
0019 %
0020 % This program is distributed in the hope that it will be useful,
0021 % but WITHOUT ANY WARRANTY; without even the implied warranty of
0022 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0023 % GNU General Public License for more details.
0024 %
0025 % You should have received a copy of the GNU General Public License
0026 % along with this program; if not, write to the Free Software
0027 % Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,
0028 % USA.
0029 
0030 % History:  04/2005, Darren.Weber_at_radiology.ucsf.edu
0031 %
0032 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0033 
0034 ver = '$Revision: 1.1 $ $Date: 2005/05/18 23:07:42 $';
0035 fprintf('FREESURFER_PLOT_THICKNESS [v %s]\n',ver(11:15));
0036 
0037 
0038 figure; hold on
0039 Hp = patch('vertices',surf.vertices,'faces',surf.faces,...
0040     'facecolor','interp','edgecolor','interp',...
0041     'FaceVertexCData',thickness);
0042 
0043 set(gca,'CLim',[0 5]);
0044 colormap(jet); colorbar
0045 
0046 daspect([1,1,1])
0047 material dull
0048 lighting phong
0049 axis off
0050 
0051 rotate3d
0052 
0053 return

Generated on Mon 15-Aug-2005 15:36:19 by m2html © 2003