Home > vbmeg > functions > device > vivid > vb_reduce_face_vertex.m

vb_reduce_face_vertex

PURPOSE ^

reduce MRI-face vertex for plot

SYNOPSIS ^

function [Fface, Vface] = vb_reduce_face_vertex(facefile, Option)

DESCRIPTION ^

 reduce MRI-face vertex for plot
   [Fface, Vface] = vb_reduce_face_vertex(facefile, Option)
 ---- Input file name
 facefile      : MRI face-file          (*.face.mat)

 ---- MRI-info in face-file
 surf_face.V = vertex point in face
 surf_face.F = patch index for face

 Option.Nmri   = Reduced number of points in MRI face
 --- Output
 Fface = reduced MRI-face surface patch for polot
 Vface = reduced MRI-face surface points for polot

 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 function    [Fface, Vface] = vb_reduce_face_vertex(facefile, Option)
0002 % reduce MRI-face vertex for plot
0003 %   [Fface, Vface] = vb_reduce_face_vertex(facefile, Option)
0004 % ---- Input file name
0005 % facefile      : MRI face-file          (*.face.mat)
0006 %
0007 % ---- MRI-info in face-file
0008 % surf_face.V = vertex point in face
0009 % surf_face.F = patch index for face
0010 %
0011 % Option.Nmri   = Reduced number of points in MRI face
0012 % --- Output
0013 % Fface = reduced MRI-face surface patch for polot
0014 % Vface = reduced MRI-face surface points for polot
0015 %
0016 % Copyright (C) 2011, ATR All Rights Reserved.
0017 % License : New BSD License(see VBMEG_LICENSE.txt)
0018 
0019 if ~exist('Option','var') | ~isfield(Option,'Nmri'), 
0020     Nmri = 5000;
0021 else
0022     Nmri = Option.Nmri; 
0023 end;
0024 
0025 %
0026 % --- Load MRI face data & landmark(fiducials)
0027 %
0028 load(facefile ,'surf_face');
0029 
0030 % Reduce vertex points in reference MRI face
0031 [Fface, Vface] = vb_reducepatch(surf_face.F, surf_face.V, 2 * Nmri);

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