⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mri_scalp.m

📁 Matlab下的EEG处理程序库
💻 M
字号:
function [vertices] = mri_scalp
% MRI_SCALP: Find the scalp surface of an MRI volume
%
%

% $Revision: 1.2 $ $Date: 2003/03/02 03:20:44 $

% Licence:  GNU GPL, no express or implied warranties
% History:  03/2002, Darren.Weber@flinders.edu.au
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

load mri;

D = squeeze(D);

Ds = smooth3(D);
FV = isosurface(Ds,5);

vertices = FV.vertices;


% delaunayn can be used to tesselate these vertices
% dsearchn can be used to identify nearest neighbours

r = 10000;
NFV = reducepatch(FV,r); % reduces the faces of struct fv.


Nvertices = size(NFV.vertices,1);

fprintf('\n...Found %d vertices.\n\n',Nvertices);

plot = 1;
if isequal(plot,1),
    P = patch(NFV,'FaceColor',[1,.75,.65],'EdgeColor','none');
    isonormals(Ds,P);
    view(45,30), axis tight, daspect([1,1,.4]), rotate3D;
    lightangle(45,30); 
    set(gcf,'Renderer','zbuffer'); lighting phong
    set(P,'SpecularColorReflectance',0,'SpecularExponent',50);
end


return

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -