Home > vbmeg > functions > job > job_edit_area_dir > job_edit_area_plotbrain.m

job_edit_area_plotbrain

PURPOSE ^

SYNOPSIS ^

function job_edit_area_plotbrain(plot_parm,V,F,inf_C,Iextract)

DESCRIPTION ^

 Plot brain model


 Copyright (C) 2011, ATR All Rights Reserved.
 License : New BSD License(see VBMEG_LICENSE.txt)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SUBFUNCTIONS ^

SOURCE CODE ^

0001 function job_edit_area_plotbrain(plot_parm,V,F,inf_C,Iextract)
0002 %
0003 % Plot brain model
0004 %
0005 %
0006 % Copyright (C) 2011, ATR All Rights Reserved.
0007 % License : New BSD License(see VBMEG_LICENSE.txt)
0008 
0009 vb_plot_cortex(plot_parm, V, F, inf_C);
0010 
0011 % Left/Right hemisphere
0012 switch plot_parm.LRflag
0013  case 'L'
0014   F0 = F.F3L;
0015  case 'R'
0016   F0 = F.F3R;
0017  case 'LR'
0018   F0 = F.F3;
0019 end
0020 
0021 % Display area
0022 plot_area(plot_parm,V,F0,Iextract);
0023 
0024 function plot_area(plot_parm,V,F0,Iextract)
0025 %
0026 % —\Ž¦
0027 %
0028 alpha = 0.7;
0029 ix = Iextract;
0030 ix2 = intersect(ix,unique(F0(:)));
0031 FF = vb_patch_select2(ix,F0,size(V,1));
0032 patch('Faces',FF,'Vertices',V,'FaceAlpha',alpha,...
0033       'FaceColor','b','EdgeColor','none','FaceLighting','none');

Generated on Mon 22-May-2023 06:53:56 by m2html © 2005