Home > vbmeg > demo > test_scripts > vb_demo_mri.m

vb_demo_mri

PURPOSE ^

DEMO_MRI

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

DEMO_MRI
  Demonstrates SELECT3D. Click on the mri patch
  and you should see the 3-D point selected along
  with location output to the command window.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 %DEMO_MRI
0002 %  Demonstrates SELECT3D. Click on the mri patch
0003 %  and you should see the 3-D point selected along
0004 %  with location output to the command window.
0005 
0006 %  Copyright Joe Conti 2002
0007 %  Send comments to jconti@mathworks.com
0008 
0009 load mri
0010 D = squeeze(D);
0011 D(:,1:60,:) = [];
0012 p = patch(isosurface(D, 5), 'FaceColor', 'red', 'EdgeColor', 'none');
0013 h = patch(isocaps(D, 5), 'FaceColor', 'interp', 'EdgeColor', 'none');
0014 view(20,20); axis tight;  daspect([1 1 .4])
0015 colormap(gray(100))
0016 camlight; lighting gouraud
0017 isonormals(D, h);
0018        
0019 select3dtool;
0020

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