closing of 3D-image B = vb_closing_3d(B, R1, R2) 穴を埋める Made by M. Sato 2004-3-28 Copyright (C) 2011, ATR All Rights Reserved. License : New BSD License(see VBMEG_LICENSE.txt)
0001 function B = vb_closing_3d(B, R1, R2) 0002 % closing of 3D-image 0003 % B = vb_closing_3d(B, R1, R2) 0004 % 穴を埋める 0005 % 0006 % Made by M. Sato 2004-3-28 0007 % 0008 % Copyright (C) 2011, ATR All Rights Reserved. 0009 % License : New BSD License(see VBMEG_LICENSE.txt) 0010 0011 if nargin < 3, R2 = R1; end; 0012 0013 B = vb_dilation_3d(B, R1 ); 0014 B = vb_erosion_3d( B, R2 ); 0015