bs3.m

来自「matlab程序源码,这个是我和同学一起做的,大家可以参考看看怎么样的,谢谢大家」· M 代码 · 共 26 行

M
26
字号
h0=figure('toolbar','none','position',[198 56 350 468],'name','实例74');
h1=axes('parent',h0,'position',[0.25 0.45 0.5 0.5],'visible','off');
I=imread('trees.tif');
imshow(I)
b1=uicontrol('parent',h0,...
    'units','points',...
    'tag','b1',...
    'style','pushbutton',...
    'string','区域填充',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[90 100 70 30],...
    'callback',[...
       'cla,',...
       'load trees,',...
       'I=ind2gray(X,map);,',...
       'imshow(I),',...
       'I2=roifill;,',...
       'imshow(I2)']);
b2=uicontrol('parent',h0,...
    'units','points',...
    'tag','b2',...
    'style','pushbutton',...
    'string','关闭',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[90 50 70 30],...
    'callback','close');

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?