h0=figure('toolbar','none',... %Éú³ÉͼÏó½çÃæ
'numbertitle','off',...
'position',[198 56 700 600],...
'menubar','none',...
'name','ͼÏó´¦Àí¿Î³ÌÉè¼Æ');
h1=axes('parent',h0,...
'position',[0.15 0.15 0.55 0.55],...
'visible','off');
b1=uicontrol('parent',h0,... %¶ÁÈëͼÏñ°´Å¥
'units','points',...
'tag','b1',...
'style','pushbutton',...
'string','¶ÁÈëͼÏñ',...
'backgroundcolor',[0.75 0.75 0.75],...
'position',[30 410 50 20],...
'callback',['I0=uigetfile(''*.jpg'');'...
'J=imread(I0);','imshow(J)']);
b2=uicontrol('parent',h0,... %Éú³ÉͼÏñת»¯°´Å¥
'units','points',...
'tag','b2',...
'style','pushbutton',...
'string','RGB2GRAY',...
'backgroundcolor',[0.75 0.75 0.75],...
'position',[90 410 50 20],...
'callback',['g=rgb2gray(J);,'...
'imshow(g)']);
b3=uicontrol('parent',h0,... %Éú³ÉÖ±·½Í¼°´Å¥
'units','points',...
'tag','b3',...
'style','pushbutton',...
'string','Ö±·½Í¼',...
'backgroundcolor',[0.75 0.75 0.75],...
'position',[150 410 50 20],...
'callback',[...
'cla,',...
'imhist(g)']);
b4=uicontrol('parent',h0,... %Éú³É¹Ø±Õ°´Å¥
'units','points',...
'tag','b4',...
'style','pushbutton',...
'string','¹Ø±Õ',...
'backgroundcolor',[0.75 0.75 0.75],...
'position',[430 210 50 20],...
'callback',[...
'cla,',...
'close']);
b5=uicontrol('parent',h0,... %Éú³É¾ùºâ»¯¹¦ÄÜ°´Å¥
'units','points',...
'tag','b5',...
'style','pushbutton',...
'string','¾ùºâ»¯',...
'backgroundcolor',[0.75 0.75 0.75],...
'position',[210 410 50 20],...
'callback',[...
'cla,',...
'q=histeq(g),',...
评论0