亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
亚洲精品成人精品456| 99精品热视频| av午夜一区麻豆| 717成人午夜免费福利电影| 国产视频不卡一区| 午夜欧美2019年伦理| 成人免费视频视频在线观看免费 | 国产成人在线色| 国产欧美日韩卡一| 亚洲高清在线视频| 成人av在线观| 国产欧美日韩视频在线观看| 男女性色大片免费观看一区二区 | 久久嫩草精品久久久精品一| 亚洲一区二区欧美| 99久久精品一区二区| 久久综合久久久久88| 日韩极品在线观看| 欧洲生活片亚洲生活在线观看| 欧美国产日韩亚洲一区| 美腿丝袜亚洲综合| 欧美乱妇23p| 亚洲一线二线三线久久久| 成人高清在线视频| 国产精品第四页| 成人国产精品免费网站| 中文字幕第一页久久| 成人免费毛片aaaaa**| 欧美韩日一区二区三区四区| 国产剧情一区在线| 精品国产乱码久久久久久久| 极品少妇一区二区| 精品久久国产老人久久综合| 极品瑜伽女神91| 精品国产a毛片| 国产风韵犹存在线视精品| 欧美经典三级视频一区二区三区| 国产精品中文欧美| 国产精品九色蝌蚪自拍| 91视频精品在这里| 一区二区三区精品久久久| 在线观看视频一区二区欧美日韩| 成人久久久精品乱码一区二区三区 | 一区二区三区不卡视频在线观看 | 成人精品视频一区二区三区尤物| 国产视频一区在线播放| 成人小视频免费观看| 亚洲人成影院在线观看| 精品视频在线看| 男男成人高潮片免费网站| 日韩精品在线网站| 国产乱色国产精品免费视频| 中文字幕一区日韩精品欧美| 91国产精品成人| 琪琪久久久久日韩精品| 国产女主播在线一区二区| 99精品欧美一区二区三区小说| 亚洲国产cao| 精品国产sm最大网站| 99免费精品在线| 日本少妇一区二区| 国产欧美精品日韩区二区麻豆天美| 色婷婷国产精品久久包臀 | 欧美一区二区三区免费| 国产寡妇亲子伦一区二区| 一区二区免费在线播放| 精品久久久久久久久久久久久久久久久 | 丝袜美腿亚洲综合| 久久久久久久久久久黄色| 欧美在线色视频| 国产麻豆午夜三级精品| 亚洲欧美精品午睡沙发| 日韩欧美在线1卡| 92国产精品观看| 六月婷婷色综合| 亚洲精品成人精品456| 久久久精品国产99久久精品芒果| 欧美天堂亚洲电影院在线播放| 精品一区中文字幕| 一区二区高清在线| 久久精品一二三| 91精品国产综合久久久蜜臀粉嫩| eeuss国产一区二区三区| 日本大胆欧美人术艺术动态| 亚洲视频每日更新| 久久美女艺术照精彩视频福利播放| 欧美亚洲国产怡红院影院| 国产不卡视频在线播放| 奇米在线7777在线精品| 亚洲国产精品自拍| 中文字幕一区二区三区在线观看| 精品久久久久久最新网址| 欧美日韩一级片网站| 色综合久久久久综合体桃花网| 国内精品免费**视频| 日韩精品三区四区| 一区二区三区久久久| 国产精品久久99| 欧美国产97人人爽人人喊| 2019国产精品| 日韩免费观看高清完整版| 欧美专区日韩专区| av不卡一区二区三区| 国产 欧美在线| 国产黄色91视频| 国产大陆a不卡| 懂色av一区二区夜夜嗨| 国产乱对白刺激视频不卡| 六月婷婷色综合| 久久99精品久久久| 久久国产成人午夜av影院| 美女免费视频一区| 日本最新不卡在线| 午夜激情一区二区三区| 视频在线观看一区二区三区| 日精品一区二区三区| 日韩精品亚洲专区| 免费成人av资源网| 麻豆国产欧美日韩综合精品二区| 日本不卡的三区四区五区| 久久国内精品自在自线400部| 免费成人在线视频观看| 理论片日本一区| 国内不卡的二区三区中文字幕| 国内精品久久久久影院薰衣草| 国产剧情一区二区| 成人黄色电影在线| 色综合久久中文综合久久97| 欧美日韩精品一区二区在线播放| 欧美福利一区二区| 欧美精品一区二区三区高清aⅴ| 久久网站最新地址| 国产精品免费免费| 亚洲猫色日本管| 视频一区二区三区入口| 国产精品一区二区三区乱码| proumb性欧美在线观看| 欧美怡红院视频| 精品99一区二区三区| 亚洲欧洲在线观看av| 午夜视频一区二区| 国产真实乱对白精彩久久| 91玉足脚交白嫩脚丫在线播放| 在线不卡免费欧美| 久久久精品黄色| 亚洲成a人片综合在线| 韩国女主播一区| 91在线无精精品入口| 欧美一级在线视频| 2021久久国产精品不只是精品| 亚洲免费观看高清| 国内精品在线播放| 欧美在线三级电影| 国产欧美精品区一区二区三区| 亚洲午夜免费电影| 高清日韩电视剧大全免费| 欧美中文一区二区三区| 欧美sm极限捆绑bd| 亚洲另类春色国产| 国产一区二区精品久久99| 在线精品视频免费观看| 久久老女人爱爱| 日韩国产精品久久久| 粉嫩绯色av一区二区在线观看 | 美女在线观看视频一区二区| 成人18视频日本| 欧美一区二区三区在线观看视频| 国产欧美一区二区三区在线看蜜臀 | 成人免费毛片a| 日韩欧美国产午夜精品| 一区二区三区日韩精品| 成人午夜视频网站| 日韩视频一区二区在线观看| 亚洲国产精品久久不卡毛片 | 精品亚洲国内自在自线福利| 色哟哟一区二区三区| 欧美国产一区二区在线观看 | 久久精品男人的天堂| 日韩av一级电影| 色婷婷综合久久久久中文一区二区 | 久久综合色一综合色88| 日韩和欧美一区二区| 色婷婷亚洲婷婷| 中文字幕一区在线观看| 国产成人自拍网| 久久精品一区八戒影视| 久久精品999| 91精品国产色综合久久久蜜香臀| 一区二区三区中文在线观看| 91免费视频网址| 国产精品成人免费在线| 国产 欧美在线| 久久久久久久av麻豆果冻| 极品尤物av久久免费看| 精品区一区二区| 精品一二三四区| 久久精品欧美日韩| 成人午夜激情在线| 久久精品男人的天堂| 国产99久久久精品|