Home > vbmeg > functions > brain > vb_merge_member_list.m

vb_merge_member_list

PURPOSE ^

average normal direction in the neighbor of root vertex

SYNOPSIS ^

function new_id = vb_merge_member_list(root_id, member_id)

DESCRIPTION ^

 average normal direction in the neighbor of root vertex
   
 --- Input
 member_id{n} : member vertex index which belog to the root point 
 --- Output

 M. Sato  2006-7-14

 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    new_id = vb_merge_member_list(root_id, member_id)
0002 % average normal direction in the neighbor of root vertex
0003 %
0004 % --- Input
0005 % member_id{n} : member vertex index which belog to the root point
0006 % --- Output
0007 %
0008 % M. Sato  2006-7-14
0009 %
0010 % Copyright (C) 2011, ATR All Rights Reserved.
0011 % License : New BSD License(see VBMEG_LICENSE.txt)
0012 
0013 % Number of root
0014 Nroot = length(root_id);        
0015 
0016 new_id = cell(Nroot,1);
0017 
0018 for n=1:Nroot,
0019     % neighbor index in
0020     inext = root_id{n};
0021     Nnext = length(inext);
0022     
0023     for i=1:Nnext
0024         new_id{n} = [new_id{n}, member_id{inext(i)}];
0025     end
0026 end

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