Change radius Copyright (C) 2011, ATR All Rights Reserved. License : New BSD License(see VBMEG_LICENSE.txt)
0001 function job_edit_area_change_radius(inst_id) 0002 % 0003 % Change radius 0004 % 0005 % 0006 % Copyright (C) 2011, ATR All Rights Reserved. 0007 % License : New BSD License(see VBMEG_LICENSE.txt) 0008 0009 global vbmeg_inst; 0010 0011 % GUI handles 0012 ed1 = vbmeg_inst.editarea{inst_id}.ed1; 0013 ed2 = vbmeg_inst.editarea{inst_id}.ed2; 0014 0015 % Dilation radius 0016 r = str2num(get(ed1,'String')); 0017 if r<1, r=1; end; 0018 set(ed1,'String',num2str(r)); 0019 0020 % Dilation radius 0021 r = str2num(get(ed2,'String')); 0022 if r<1, r=1; end; 0023 set(ed2,'String',num2str(r)); 0024