bs2.m

来自「图象的消噪,图象的压缩,图象的融合,图象的增强」· M 代码 · 共 44 行

M
44
字号
h0=figure('toolbar','none','position',[198 56 350 468],'name','实例82');
h1=axes('parent',h0,'position',[0.2 0.45 0.5 0.5],'visible','off');
load earth
clims=[10 60];
b1=uicontrol('parent',h0,...
    'units','points',...
    'tag','b1',...
    'style','pushbutton',...
    'string','强度图象',...
    'position',[170 120 50 20],...
    'callback',[...
      'cla,'...
      'imagesc(X,clims),',...
      'colormap(gray)']);
b2=uicontrol('parent',h0,...
    'units','points',...
    'tag','b2',...
    'style','pushbutton',...
    'string','原始图象',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[100 120 50 20],...
    'callback',[...
      'cla,'...
      'image(X),',...
      'colormap(map),',...
      'axis image']);
 b3=uicontrol('parent',h0,...
    'units','points',...
    'tag','b3',...
    'style','pushbutton',...
    'string','真彩图像',...
    'position',[30 120 50 20],...
    'callback',[...
       'cla,',...
       'image(X),',...
       'axis image']);
b4=uicontrol('parent',h0,...
    'units','points',...
    'tag','b4',...
    'style','pushbutton',...
    'string','关闭',...
    'position',[170 50 50 20],...
    'callback','close');

⌨️ 快捷键说明

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