% Selectmethod:选择边缘检测方法% Loadnew Image:读入被选择的图像% Updatethreshctrl:数据更新% Updatelogs1ze-:更新与LoG滤波器相关的数据if nargin8grayres=256;elsegrayres = 128;eEdgedetectionfig= figure(Name','基于差分运算的数字图像边缘检测软件','numbertitle','off,' handlevisibility''on'tag','基于差分运算的数字图像边缘检测软件',Visible,'off,'resize','off'busyaction','queue,'interruptible,'off',Color',[.8.8.8]Integer handle','off.doublebuffer'on',colormap',gray( grayres))figpos= get( Edgedetectionfig,'position')调节图像窗口尺寸figpos(3:4)=[560420];horizdecorations =10; resize controls, etcvertdecorations=45;s title bar, etc.e- get(0,'screensif(sosize(3)<=1No display connected apparentlydscreens1ze(3:4)=[10000100000];if(((figpos(3)+ horizdecorations)> screensize(3))((figpos(4)+y窗口尺寸太小oratios)>delete( Edgedetectionfig)icreensize(4)))r(['sn resolutioon 1s tooor text fdare tog) tendx screensize(3)- figpos(1)- figpos(3)- horizdecorations;s edgesoft'1)dy= screensize(4)- figpos(2)- figpos(4)-vertdecorationsi