亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
久久这里只有精品首页| 精品在线一区二区| 久久不见久久见中文字幕免费| 国产成人自拍高清视频在线免费播放| 在线精品视频一区二区| 337p日本欧洲亚洲大胆精品 | 一本大道久久a久久综合| 1区2区3区精品视频| 美腿丝袜亚洲一区| 一本久久精品一区二区| 国产日本欧美一区二区| 久久se精品一区二区| 欧美日精品一区视频| 国产精品免费久久久久| 国内久久精品视频| 欧美www视频| 石原莉奈在线亚洲二区| 在线视频观看一区| 亚洲日韩欧美一区二区在线| 国产综合色产在线精品| 欧美成人video| 美女尤物国产一区| 欧美一级一区二区| 日韩在线播放一区二区| 亚洲人123区| 国产精品一区久久久久| 精品国产凹凸成av人导航| 日韩精品一级二级| 欧美一区二区福利视频| 婷婷综合五月天| 欧美丰满少妇xxxxx高潮对白| 亚洲激情中文1区| 色哟哟精品一区| 一区二区三区蜜桃| 欧美午夜一区二区| 夜夜嗨av一区二区三区中文字幕 | 欧美日本乱大交xxxxx| 亚洲一区二区在线视频| 在线观看视频91| 亚洲一区在线免费观看| 欧美日韩国产精选| 日日摸夜夜添夜夜添精品视频| 欧美日韩黄色影视| 青娱乐精品视频| 精品久久久久久久久久久久久久久久久 | 91成人免费在线视频| 亚洲精品高清在线| 国产成人一区在线| 国产三区在线成人av| 丁香六月综合激情| 亚洲欧美综合色| 色婷婷综合久久久久中文 | 麻豆精品久久精品色综合| 精品少妇一区二区三区视频免付费 | 国产欧美一区二区精品婷婷| 成人午夜碰碰视频| 成人性生交大片免费看中文 | 国产精品激情偷乱一区二区∴| 成人性视频免费网站| 亚洲男女毛片无遮挡| 欧美日韩五月天| 国产真实乱对白精彩久久| 国产精品福利影院| 欧美在线三级电影| 蜜乳av一区二区三区| 欧美激情一区二区三区全黄| 99re在线视频这里只有精品| 亚洲综合久久av| 日韩欧美国产综合一区| 国产+成+人+亚洲欧洲自线| 一区二区三区在线观看国产| 欧美成人aa大片| 99精品桃花视频在线观看| 日韩国产欧美视频| 国产精品卡一卡二| 欧美一区二区三区不卡| 成人精品高清在线| 日韩电影在线免费看| 欧美激情一区二区三区在线| 欧美电影一区二区三区| 99精品1区2区| 麻豆久久一区二区| 亚洲精品视频免费看| 精品国产91九色蝌蚪| 欧美午夜在线观看| av资源站一区| 国产一区二区在线看| 99这里都是精品| 黄色资源网久久资源365| 性做久久久久久久免费看| 中国色在线观看另类| 日韩女优av电影在线观看| 欧美亚洲一区三区| 成人午夜视频免费看| 九九**精品视频免费播放| 亚洲精品高清在线| 亚洲欧美色图小说| 国产精品女上位| 久久精品亚洲精品国产欧美 | 国产不卡视频在线播放| 麻豆精品在线播放| 亚洲国产精品久久人人爱| 国产三级一区二区| 精品动漫一区二区三区在线观看| 欧美日韩精品系列| 精品视频一区二区不卡| 91麻豆精品视频| 成人免费av网站| 大白屁股一区二区视频| 国产成人午夜精品影院观看视频 | 亚洲国产视频直播| 亚洲精品成人悠悠色影视| 福利一区在线观看| 国产精品亚洲а∨天堂免在线| 国产揄拍国内精品对白| 麻豆精品一二三| 精品午夜久久福利影院| 久久精品国产亚洲一区二区三区| 免费观看成人av| 久久99精品一区二区三区三区| 毛片av一区二区| 激情综合色播激情啊| 国产成人综合在线播放| 成人v精品蜜桃久久一区| 97精品视频在线观看自产线路二| 成人午夜av在线| 色综合久久久久综合体| 欧美日韩一区精品| 日韩情涩欧美日韩视频| 欧美xxx久久| 日本一区二区在线不卡| ●精品国产综合乱码久久久久 | 91香蕉国产在线观看软件| 91丨九色丨国产丨porny| 91福利视频在线| 欧美精品第1页| 亚洲精品在线电影| 国产精品理论片在线观看| 国产精品网站导航| 国产精品久久久久久久久果冻传媒| 国产日韩欧美综合在线| 亚洲青青青在线视频| 午夜成人在线视频| 国产一区三区三区| 色噜噜狠狠色综合中国 | 色av一区二区| 精品三级在线观看| 一区二区中文视频| 日韩精品一区第一页| 国产99精品在线观看| 欧美日韩在线精品一区二区三区激情| 日韩欧美国产一二三区| 国产精品黄色在线观看| 日本欧美一区二区三区乱码 | 一区二区三区欧美久久| 91久久精品日日躁夜夜躁欧美| 欧美一级午夜免费电影| 国产精品理伦片| 蜜桃精品在线观看| 91网站最新网址| 欧美sm美女调教| 夜夜精品视频一区二区 | 国产精品女人毛片| 五月天亚洲婷婷| 91丨porny丨最新| 日韩精品在线网站| 亚洲综合av网| 国产一区二区三区免费播放| 欧美日韩一区不卡| 中文字幕日本乱码精品影院| 黑人巨大精品欧美一区| 5月丁香婷婷综合| 亚洲欧美激情视频在线观看一区二区三区| 欧美影视一区在线| 日韩欧美在线影院| 亚洲成人一二三| 97精品电影院| 国产日韩欧美电影| 精品一区免费av| 7777精品伊人久久久大香线蕉 | 色婷婷香蕉在线一区二区| 久久网站最新地址| 久久99蜜桃精品| 7777精品伊人久久久大香线蕉 | 欧美一区二区三区视频免费| 亚洲靠逼com| 97久久超碰国产精品| 欧美精彩视频一区二区三区| 国模娜娜一区二区三区| 欧美一区二区三区喷汁尤物| 亚洲 欧美综合在线网络| 91麻豆精品一区二区三区| 国产精品久久网站| 国产91精品精华液一区二区三区| 日韩欧美的一区二区| 首页国产丝袜综合| 欧美一卡二卡在线观看| 免费久久99精品国产| 91精品婷婷国产综合久久| 亚洲国产视频一区二区|