亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? matlab實用程序百例3.txt

?? 一些matlab運用中的實例
?? TXT
?? 第 1 頁 / 共 5 頁
字號:
實例72:圖像分析(1)

h0=figure('toolbar','none',...
    'position',[198 56 350 468],...
    'name','實例72');
h1=axes('parent',h0,...
    'position',[0.25 0.45 0.5 0.5],...
    'visible','off');
I=imread('rice.tif');
imshow(I)
k=0;
b1=uicontrol('parent',h0,...
    'units','points',...
    'tag','b1',...
    'style','pushbutton',...
    'string','圖像輪廓圖',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[20 100 60 20],...
    'callback',[...
        'cla,',...
        'k=1;,',...
        'I=imread(''rice.tif'');,',...
        'imcontour(I)']);
b2=uicontrol('parent',h0,...
    'units','points',...
    'tag','b2',...
    'style','pushbutton',...
    'string','SOBEL邊界圖',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[100 100 60 20],...
    'callback',[...
        'cla,',...
        'k=2;,',...
        'I=imread(''rice.tif'');,',...
        'BW=edge(I,''sobel'');,',...
        'imshow(BW)']);
b3=uicontrol('parent',h0,...
    'units','points',...
    'tag','b3',...
    'style','pushbutton',...
    'string','CANNY邊界圖',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[180 100 60 20],...
    'callback',[...
       'cla,',...
        'k=3;,',...
        'I=imread(''rice.tif'');,',...
        'BW=edge(I,''canny'');,',...
        'imshow(BW)']);
b4=uicontrol('parent',h0,...
    'units','points',...
    'tag','b4',...
    'style','pushbutton',...
    'string','灰度調整',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[20 50 60 20],...
    'callback',[...
        'cla,',...
        'k=4;,',...
        'I=imread(''rice.tif'');,',...
        'J=imadjust(I,[0.15 0.9],[0 1]);,',...
        'imshow(J,64)']);
b5=uicontrol('parent',h0,...
    'units','points',...
    'tag','b5',...
    'style','pushbutton',...
    'string','圖像柱狀圖',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[180 50 60 20],...
    'callback',[...
        'if k==0,',...
        'figure,',...
        'imhist(I,64),',...
        'end,',...
        'if k==1,',...
        'imhist(I,64),',...
        'end,',...
        'if k==2,',...
        'imhist(BW,64),',...
        'end,',...
        'if k==3,',...
        'imhist(BW,64),',...
        'end,',...
        'if k==4,',...
        'imhist(J),',...
        'end']);
b6=uicontrol('parent',h0,...
    'units','points',...
    'tag','b6',...
    'style','pushbutton',...
    'string','關閉',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[100 50 60 20],...
    'callback','close');
實例73:過濾圖像

h0=figure('toolbar','none',...
    'position',[198 56 350 468],...
    'name','實例73');
h1=axes('parent',h0,...
    'position',[0.25 0.45 0.5 0.5],...
    'visible','off');
I=imread('eight.tif');
imshow(I)
u1=uimenu('parent',h0,...
    'tag','u1',...
    'label','添加噪聲',...
    'backgroundcolor',[0.75 0.75 0.75]);
u11=uimenu('parent',u1,...
    'tag','u11',...
    'label','SALT&PEPPER噪聲',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'callback',[...
        'set(u11,''checked'',''on'');,',...
        'set(u12,''checked'',''off'');,',...
        'cla,',...
        'I=imnoise(I,''salt & pepper'',0.02);,',...
        'imshow(I)']);
u12=uimenu('parent',u1,...
    'tag','u12',...
    'label','GAUSSIAN噪聲',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'callback',[...
        'set(u12,''checked'',''on'');,',...
        'set(u11,''checked'',''off'');,',...
        'cla,',...
        'I=imnoise(I,''gaussian'',0,0.005);,',...
        'imshow(I)']);
b1=uicontrol('parent',h0,...
    'units','points',...
    'tag','b1',...
    'style','pushbutton',...
    'string','均平過濾',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[30 100 50 20],...
    'callback',[...
        'cla,',...
        'J=filter2(fspecial(''average'',3),I)/255;,',...
        'imshow(J)']);
b2=uicontrol('parent',h0,...
    'units','points',...
    'tag','b2',...
    'style','pushbutton',...
    'string','中值過濾',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[100 100 50 20],...
    'callback',[...
        'cla,',...
        'J=medfilt2(I,[3 3]);,',...
        'imshow(J)']);
b3=uicontrol('parent',h0,...
    'units','points',...
    'tag','b3',...
    'style','pushbutton',...
    'string','自適應過濾',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[170 100 50 20],...
    'callback',[...
        'cla,',...
        'J=wiener2(I,[5 5]);,',...
        'imshow(J)']);
b4=uicontrol('parent',h0,...
    'units','points',...
    'tag','b4',...
    'style','pushbutton',...
    'string','關閉',...
    'fontsize',15,...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[90 50 70 30],...
    'callback','close');
實例74:圖像的區域處理

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',[30 100 50 20],...
    'callback',[...
        'cla,',...
        'I=imread(''trees.tif'');,',...
        'imshow(I),',...
        'BW=roipoly;,',...
        'h=fspecial(''unsharp'');,',...
        'I2=roifilt2(h,I,BW);,',...
        'imshow(I2)']);
b2=uicontrol('parent',h0,...
    'units','points',...
    'tag','b2',...
    'style','pushbutton',...
    'string','區域過濾二',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[100 100 50 20],...
    'callback',[...
        'cla,',...
        'BW=imread(''text.tif'');,',...
        'f=inline(''imadjust(x,[],[],0.01)'');,',...
        'I2=roifilt2(I,BW,f);,',...
        'imshow(I2)']);
b3=uicontrol('parent',h0,...
    'units','points',...
    'tag','b3',...
    'style','pushbutton',...
    'string','區域填充',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[170 100 50 20],...
    'callback',[...
        'cla,',...
        'load trees,',...
        'I=ind2gray(X,map);,',...
        'imshow(I),',...
        'I2=roifill;,',...
        'imshow(I2)']);
b4=uicontrol('parent',h0,...
    'units','points',...
    'tag','b4',...
    'style','pushbutton',...
    'string','關閉',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[90 50 70 30],...
    'callback','close');
實例75:圖像的顏色處置

h0=figure('toolbar','none',...
    'position',[198 56 350 468],...
    'name','實例75');
h1=axes('parent',h0,...
    'position',[0.12 0.45 0.75 0.5],...
    'visible','off');
I=imread('flowers.tif');
imshow(I)
b1=uicontrol('parent',h0,...
    'units','points',...
    'tag','b1',...
    'style','pushbutton',...
    'string','減少顏色',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[30 100 50 20],...
    'callback',[...
        'cla,',...
        '[X,map]=imread(''flowers.tif'');,',...
        '[Y,map2]=imapprox(X,map,64);,',...
        'image(Y),',...
        'colormap(map2)']);
b2=uicontrol('parent',h0,...
    'units','points',...
    'tag','b2',...
    'style','pushbutton',...
    'string','顏色抖動',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[100 100 50 20],...
    'callback',[...
        'cla,',...
        'I=imread(''flowers.tif'');,',...
        '[X,map]=rgb2ind(I,128,''nodither'');,',...
        'imshow(X)']);
b3=uicontrol('parent',h0,...
    'units','points',...
    'tag','b3',...
    'style','pushbutton',...
    'string','顏色轉換一',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[170 100 50 20],...
    'callback',[...
        'cla,',...
        'I=imread(''flowers.tif'');,',...
        'Y=rgb2ntsc(I);,',...
        'J=Y(:,:,1);,',...
        'imshow(J)']);
b4=uicontrol('parent',h0,...
    'units','points',...
    'tag','b4',...
    'style','pushbutton',...
    'string','關閉',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[170 50 50 20],...
    'callback','close');
b5=uicontrol('parent',h0,...
    'units','points',...
    'tag','b5',...
    'style','pushbutton',...
    'string','顏色轉換三',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[100 50 50 20],...
    'callback',[...
        'cla,',...
        'I=imread(''flowers.tif'');,',...
        'J=rgb2ycbcr(I);,',...
        'imshow(J)']);
b6=uicontrol('parent',h0,...
    'units','points',...
    'tag','b6',...
    'style','pushbutton',...
    'string','顏色轉換二',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[30 50 50 20],...
    'callback',[...
        'cla,',...
        'I=imread(''flowers.tif'');,',...
        'J=rgb2hsv(I);,',...
        'imshow(J)']);
實例76:交換顯示圖像

h0=figure('toolbar','none',...
    'position',[198 56 500 500],...
    'name','實例76');
h1=axes('parent',h0,...
    'position',[0.15 0.5 0.7 0.5],...
    'visible','off');
u1=uimenu('parent',h0,...
    'label','加載圖像',...
    'backgroundcolor',[0.753 0.753 0.753],...
    'tag','u1',...
    'callback',[...
        '[X,map]=imread(''800.jpg'',''jpg'');,',...
        'Y=imresize(X,2);,',...
        'image(Y),',...
        'colormap(map),',...
        'axis image,',...
        'camva(camva/2.5),',...
        'disp(''單擊鼠標左鍵點取需要的點''),',...
        'disp(''單擊鼠標右鍵確定最后一個點''),',...
        'while 1,',...
        '[x,y]=ginput(1);,',...
        'if ~strcmp(get(gcf,''selectiontype''),''normal''),',...
        'break,',...
        'end,',...
        'ct=camtarget;,',...
        'dx=x-ct(1);,',...
        'dy=y-ct(2);,',...
        'camdolly(dx,dy,ct(3),''movetarget'',''data''),',...
        'drawnow,',...
        'end']);
u2=uimenu('parent',h0,...
    'label','關閉',...
    'backgroundcolor',[0.753 0.753 0.753],...
    'tag','u2',...
    'callback','close');
實例77:矢量數據的顯示

h0=figure('toolbar','none',...
    'position',[198 56 450 468],...
    'name','實例77');
h1=axes('parent',h0,...
    'position',[0.3 0.45 0.5 0.5],...
    'visible','off');
load wind
b1huidiao=[...
        'cla,',...
        'xmin = min(x(:));,',...
        'xmax = max(x(:));,',...
        'ymax = max(y(:));,',...
        'zmin = min(z(:));,',...
        'wind_speed = sqrt(u.^2 + v.^2 + w.^2);,',...
        'hsurfaces = slice(x,y,z,wind_speed,[xmin,100,xmax],ymax,zmin);,',...
        'set(hsurfaces,''FaceColor'',''interp'',''EdgeColor'',''none''),',...
        'hcont = contourslice(x,y,z,wind_speed,[xmin,100,xmax],ymax,zmin);,',...
        'set(hcont,''EdgeColor'',[.7,.7,.7],''LineWidth'',.5),',...
        '[sx,sy,sz] = meshgrid(80,20:10:50,0:5:15);,',...
        'hlines = streamline(x,y,z,y,v,w,sx,sy,sz);,',...
        'set(hlines,''LineWidth'',2,''Color'',''r''),',...
        'view(3),',...
        'daspect([2,2,1]),',...
        'axis tight'];
b2huidiao=[...
        'cla,',...
        'wind_speed = sqrt(u.^2 + v.^2 + w.^2);,',...
        'hiso = patch(isosurface(x,y,z,wind_speed,40));,',...
        'isonormals(x,y,z,wind_speed,hiso),',...
        'set(hiso,''FaceColor'',''red'',''EdgeColor'',''none'');,',...
        'hcap = patch(isocaps(x,y,z,wind_speed,40),''FaceColor'',''interp'',''EdgeColor'',''none'');,',...
        'colormap hsv,',...
        'daspect([1,1,1]);,',...
        '[f verts] = reducepatch(isosurface(x,y,z,wind_speed,30),0.07);,',...
        'h1 = coneplot(x,y,z,u,v,w,verts(:,1),verts(:,2),verts(:,3),3);,',...
        'set(h1,''FaceColor'',''blue'',''EdgeColor'',''none'');,',...
        'xrange = linspace(min(x(:)),max(x(:)),10);,',...
        'yrange = linspace(min(y(:)),max(y(:)),10);,',...
        'zrange = 3:4:15;,',...
        '[cx,cy,cz] = meshgrid(xrange,yrange,zrange);,',...
        'h2 = coneplot(x,y,z,u,v,w,cx,cy,cz,2);,',...
        'set(h2,''FaceColor'',''green'',''EdgeColor'',''none'');,',...
        'axis tight,',...
        'box on,',...
        'camproj perspective,',...
        'camzoom(1.25),',...
        'view(65,45),',...
        'camlight(-45,45),',...
        'lighting phong,',...
        'set(hcap,''AmbientStrength'',.6)'];
b1=uicontrol('parent',h0,...
    'style','pushbutton',...
    'units','points',...
    'tag','b1',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'string','可視化',...
    'position',[50 100 60 20],...
    'callback',b1huidiao);
b2=uicontrol('parent',h0,...
    'style','pushbutton',...
    'units','points',...
    'tag','b2',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'string','錐形圖',...
    'position',[200 100 60 20],...
    'callback',b2huidiao);
b3=uicontrol('parent',h0,...
    'style','pushbutton',...
    'units','points',...
    'tag','b3',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'string','關閉',...
    'position',[125 60 60 20],...
    'callback','close'); 
實例78:圖像分析(2)

h0=figure('toolbar','none',...
    'position',[198 56 350 468],... 
    'name','實例78');
h1=axes('parent',h0,...
    'position',[0.25 0.45 0.5 0.5],...
    'visible','off');
load imdemos flower
imshow(flower)

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产欧美在线| 成人高清av在线| 4438x成人网最大色成网站| 亚洲综合成人在线视频| 在线视频一区二区三| 亚洲成a人v欧美综合天堂下载| 欧美日韩国产一二三| 日韩精品电影在线观看| 欧美xxx久久| 成人深夜福利app| 一区二区三区四区在线免费观看 | 成人高清免费观看| 亚洲精品一二三| 欧美日韩国产天堂| 久久精品二区亚洲w码| 久久久久久亚洲综合影院红桃| 国产精品资源网| 亚洲免费在线视频| 在线综合视频播放| 丁香激情综合国产| 五月天一区二区| 国产婷婷色一区二区三区四区 | 国产精品一区在线观看乱码| 国产欧美一区二区精品久导航| 99re热这里只有精品视频| 亚洲尤物在线视频观看| 日韩欧美一区二区三区在线| 国产成人亚洲综合a∨婷婷图片| 亚洲精品乱码久久久久久| 91精品国产综合久久久蜜臀粉嫩 | 91精品黄色片免费大全| 国产成人综合自拍| 亚洲一区影音先锋| 26uuu亚洲综合色| 欧美性欧美巨大黑白大战| 麻豆高清免费国产一区| 国产精品国产三级国产普通话蜜臀 | 亚洲午夜久久久| 久久久久久久久久久久久久久99| 91片在线免费观看| 久久91精品国产91久久小草| 亚洲激情在线激情| 国产亚洲制服色| 欧美日韩国产高清一区二区三区| av亚洲精华国产精华精华 | 国产精选一区二区三区| 亚洲国产aⅴ天堂久久| 欧美激情一区不卡| 精品少妇一区二区三区在线播放| 色婷婷狠狠综合| 国产91精品一区二区麻豆亚洲| 亚洲国产精品视频| 亚洲日本韩国一区| 久久精品日产第一区二区三区高清版 | 国产在线不卡视频| 日本在线播放一区二区三区| 亚洲少妇30p| 国产精品久久久久久久久久久免费看 | 欧美一区二区三区在线观看视频| aaa欧美日韩| 大白屁股一区二区视频| 韩国精品久久久| 麻豆视频观看网址久久| 五月婷婷激情综合| 日日夜夜精品免费视频| 亚洲综合色成人| 亚洲欧美偷拍卡通变态| 中文字幕第一区| 亚洲国产精品成人综合色在线婷婷| 欧美成人精品福利| 日韩三区在线观看| 555夜色666亚洲国产免| 欧美日本高清视频在线观看| 欧美日韩一级二级三级| 日本福利一区二区| 欧美色综合网站| 欧美三级视频在线| 欧美老肥妇做.爰bbww视频| 欧美日韩视频不卡| 91精品国产91热久久久做人人| 欧美日韩国产美| 日韩一二三区不卡| 精品久久五月天| 久久青草国产手机看片福利盒子| 精品久久久久一区二区国产| 欧美成人三级在线| 久久久99久久| 自拍偷自拍亚洲精品播放| 亚洲色图欧美偷拍| 一级特黄大欧美久久久| 亚洲高清中文字幕| 蜜桃久久精品一区二区| 黄网站免费久久| yourporn久久国产精品| 在线中文字幕不卡| 91精品国产综合久久精品性色| 日韩精品专区在线| 中文字幕欧美日韩一区| 亚洲青青青在线视频| 亚洲成人手机在线| 韩国精品免费视频| 色综合久久久久久久| 欧美疯狂做受xxxx富婆| 久久婷婷成人综合色| 国产精品超碰97尤物18| 亚洲小少妇裸体bbw| 久久99久久99| 91免费版pro下载短视频| 欧美精品三级日韩久久| 久久久99精品免费观看不卡| 一区二区三区精品视频在线| 蜜桃精品视频在线| 色综合中文字幕| 欧美成人官网二区| 亚洲欧美激情在线| 精品一区二区日韩| 色综合色综合色综合 | 色88888久久久久久影院按摩| 欧美日韩国产免费| 中文字幕第一区综合| 日本 国产 欧美色综合| 91网址在线看| 久久丝袜美腿综合| 亚洲成人高清在线| 大陆成人av片| 精品久久久久久最新网址| 国产电影精品久久禁18| 欧美在线观看18| 欧美国产精品v| 日本午夜一本久久久综合| 成人免费看视频| 日韩一级精品视频在线观看| 中文字幕中文字幕在线一区 | 久久综合九色综合97_久久久 | 亚洲综合无码一区二区| 国产精品自拍av| 欧美浪妇xxxx高跟鞋交| 国产精品二三区| 国产乱子伦视频一区二区三区 | 亚洲欧洲三级电影| 极品少妇一区二区| 91精品国产色综合久久不卡电影| 亚洲免费观看高清完整版在线 | 久久国产麻豆精品| 欧美视频一区二区三区四区| 国产精品乱人伦中文| 激情综合五月天| 91精品国产综合久久久久久| 亚洲伊人色欲综合网| 99精品一区二区三区| 国产日产欧美一区二区三区| 激情成人午夜视频| 日韩视频免费观看高清完整版在线观看 | 久久久噜噜噜久噜久久综合| 青青青伊人色综合久久| 欧美亚洲国产一区在线观看网站 | 亚洲一区二区三区在线播放| 粉嫩蜜臀av国产精品网站| 久久天天做天天爱综合色| 久久国产欧美日韩精品| 日韩精品一区二区三区中文精品| 亚洲成av人片| 欧美三级视频在线播放| 亚洲成人先锋电影| 欧美日韩国产精品自在自线| 亚洲国产精品久久艾草纯爱| 欧美体内she精高潮| 亚洲国产精品久久久久秋霞影院| 日本精品免费观看高清观看| 亚洲视频综合在线| 日本精品视频一区二区三区| 一区二区三区免费看视频| 欧美日韩在线三区| 日日嗨av一区二区三区四区| 日韩一区二区精品在线观看| 日本视频中文字幕一区二区三区| 欧美一区二区国产| 国产一区在线不卡| 国产精品无码永久免费888| www..com久久爱| 又紧又大又爽精品一区二区| 欧美少妇xxx| 欧美aaaaaa午夜精品| 337p粉嫩大胆色噜噜噜噜亚洲| 国产在线精品一区二区夜色| 国产女人18水真多18精品一级做| 成人av午夜影院| 亚洲制服丝袜在线| 日韩欧美精品在线| 国产iv一区二区三区| 成人免费在线播放视频| 欧美综合一区二区| 蜜桃av一区二区三区| 久久精品日韩一区二区三区| 色综合天天综合网天天狠天天| 亚洲va国产天堂va久久en| 26uuu精品一区二区| 99re成人精品视频| 婷婷六月综合亚洲| 国产精品网站在线观看|