Home > vbmeg > demo > test_scripts > vb_test_check_std_brain.m

vb_test_check_std_brain

PURPOSE ^

vb_test_check_std_brain

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

 vb_test_check_std_brain

 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:

SOURCE CODE ^

0001 % vb_test_check_std_brain
0002 %
0003 % Copyright (C) 2011, ATR All Rights Reserved.
0004 % License : New BSD License(see VBMEG_LICENSE.txt)
0005 
0006 clear all
0007 
0008 % data directory
0009 Mat_dir   = [getenv('MATHOME') ];
0010 % standard brain cortex model
0011 std_brain = [Mat_dir '/Standard_brain/std_brain/ch2_std.brain.mat'];
0012 
0013 % subject image
0014 analyzefile = [Mat_dir '/NH_SEF/NH_brain/3D.hdr'];
0015 snfile      = [Mat_dir '/NH_SEF/NH_brain/3D_sn.mat'];
0016 
0017 % load Standard brain
0018 [V, F]  = vb_load_cortex(std_brain);
0019 % m -> mm
0020 V  = V*1000;
0021 
0022 % Map to subject brain
0023 [V,F,xx] = vb_get_cortex_surf_from_std(std_brain,snfile);
0024 
0025 % Load subject MRI
0026 [Bs, Vdim, Vsize] = vb_load_analyze_to_right(analyzefile);
0027 Vana = vb_spm_right_to_analyze_right(V, Vdim, Vsize);
0028 
0029 % Plot converted cortex in subject space
0030 vb_plot_head_mask(Bs,[],'z',Vana,F.F3L,Vana,F.F3R);
0031 figure
0032 vb_plot_head_mask(Bs,[],'x',Vana,F.F3L,Vana,F.F3R);
0033 
0034 return

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