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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? matlab實(shí)用程序百例3.txt

?? MATLAB實(shí)用程序的100個(gè)具體例子,覆蓋面很廣,絕對超值
?? TXT
?? 第 1 頁 / 共 5 頁
字號:
實(shí)例72:圖像分析(1)

h0=figure('toolbar','none',...
    'position',[198 56 350 468],...
    'name','實(shí)例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','灰度調(diào)整',...
    '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','關(guān)閉',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[100 50 60 20],...
    'callback','close');
實(shí)例73:過濾圖像

h0=figure('toolbar','none',...
    'position',[198 56 350 468],...
    'name','實(shí)例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','自適應(yīng)過濾',...
    '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','關(guān)閉',...
    'fontsize',15,...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[90 50 70 30],...
    'callback','close');
實(shí)例74:圖像的區(qū)域處理

h0=figure('toolbar','none',...
    'position',[198 56 350 468],...
    'name','實(shí)例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','區(qū)域過濾一',...
    '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','區(qū)域過濾二',...
    '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','區(qū)域填充',...
    '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','關(guān)閉',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[90 50 70 30],...
    'callback','close');
實(shí)例75:圖像的顏色處置

h0=figure('toolbar','none',...
    'position',[198 56 350 468],...
    'name','實(shí)例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','顏色抖動(dòng)',...
    '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','顏色轉(zhuǎn)換一',...
    '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','關(guān)閉',...
    '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','顏色轉(zhuǎn)換三',...
    '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','顏色轉(zhuǎn)換二',...
    'backgroundcolor',[0.75 0.75 0.75],...
    'position',[30 50 50 20],...
    'callback',[...
        'cla,',...
        'I=imread(''flowers.tif'');,',...
        'J=rgb2hsv(I);,',...
        'imshow(J)']);
實(shí)例76:交換顯示圖像

h0=figure('toolbar','none',...
    'position',[198 56 500 500],...
    'name','實(shí)例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(''單擊鼠標(biāo)左鍵點(diǎn)取需要的點(diǎn)''),',...
        'disp(''單擊鼠標(biāo)右鍵確定最后一個(gè)點(diǎn)''),',...
        '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','關(guān)閉',...
    'backgroundcolor',[0.753 0.753 0.753],...
    'tag','u2',...
    'callback','close');
實(shí)例77:矢量數(shù)據(jù)的顯示

h0=figure('toolbar','none',...
    'position',[198 56 450 468],...
    'name','實(shí)例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','關(guān)閉',...
    'position',[125 60 60 20],...
    'callback','close'); 
實(shí)例78:圖像分析(2)

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

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人aa视频在线观看| 亚洲一区二区在线免费看| 久草中文综合在线| 日韩视频免费观看高清完整版在线观看| 亚洲国产视频直播| 7777女厕盗摄久久久| 日本欧美一区二区在线观看| 日韩视频一区二区三区在线播放| 精品一区二区三区久久| 久久综合久久鬼色| 成人性生交大片免费看在线播放| 国产精品午夜免费| 欧美熟乱第一页| 免费成人av资源网| 中文字幕不卡在线| 在线免费视频一区二区| 天使萌一区二区三区免费观看| 欧美一区二区三区免费视频| 久久99热99| 国产精品少妇自拍| 欧美丝袜自拍制服另类| 久久国产精品第一页| 国产亚洲一二三区| 色综合视频在线观看| 丝瓜av网站精品一区二区| 亚洲精品一区二区三区福利| 成人av手机在线观看| 视频一区国产视频| 国产精品久久久久久福利一牛影视| 欧美在线免费观看亚洲| 狠狠色狠狠色综合日日91app| 国产精品丝袜一区| 69av一区二区三区| 成人久久18免费网站麻豆| 亚洲国产成人av网| 国产亚洲美州欧州综合国| 欧洲一区二区三区在线| 激情综合五月婷婷| 亚洲精品高清在线| 久久久另类综合| 欧美在线不卡一区| 国产久卡久卡久卡久卡视频精品| 一区二区在线观看视频| 久久久久久久久久久电影| 欧美日韩久久一区| 波多野洁衣一区| 久久成人免费日本黄色| 一区二区三国产精华液| 久久久亚洲高清| 欧美精品丝袜中出| 99国产精品久久久久久久久久 | 国产精品美女久久久久久久久| 日本精品裸体写真集在线观看| 国产一区二区三区四区五区入口 | 这里只有精品免费| 91亚洲男人天堂| 国产一区在线精品| 麻豆精品一二三| 亚洲国产色一区| 亚洲人成影院在线观看| 国产精品视频麻豆| 久久理论电影网| 精品成人私密视频| 91麻豆精品国产91久久久资源速度| 97久久精品人人做人人爽50路 | 成人h精品动漫一区二区三区| 久久99久久99| 久久激五月天综合精品| 日本不卡一区二区| 亚洲第一综合色| 亚洲成人7777| 午夜精品免费在线| 天天影视网天天综合色在线播放| 一区二区三区在线观看视频| 亚洲视频网在线直播| 日本一区二区综合亚洲| 久久久久久9999| 国产日韩影视精品| 欧美激情一区二区| 国产精品天天摸av网| 国产亚洲精品久| 国产精品网站导航| 亚洲同性gay激情无套| 成人免费在线播放视频| 综合婷婷亚洲小说| 亚洲精品视频在线观看免费 | 26uuu色噜噜精品一区| 精品国产乱码久久久久久图片| 欧美一级xxx| 欧美不卡一区二区三区四区| 亚洲精品在线电影| 国产精品色噜噜| 亚洲精品高清在线| 日韩黄色免费网站| 精品一区二区综合| 国产激情精品久久久第一区二区 | 一区二区三区精品在线| 一区二区三区成人| 日本亚洲免费观看| 国产麻豆午夜三级精品| 成人午夜激情影院| 日本久久电影网| 欧美性猛交一区二区三区精品 | 在线视频欧美精品| 欧美精品久久一区| 精品成人a区在线观看| 国产精品萝li| 亚洲宅男天堂在线观看无病毒| 亚洲电影视频在线| 国产精品自在欧美一区| www.亚洲色图.com| 欧美老女人第四色| 久久久99免费| 亚洲在线中文字幕| 国产精品自拍av| 91国产免费观看| 精品国产乱子伦一区| 亚洲精品日日夜夜| 精品一区二区三区影院在线午夜| 成人美女在线观看| 欧美一区午夜精品| 国产精品久久午夜| 免费一级欧美片在线观看| 成人国产在线观看| 日韩一区二区不卡| 亚洲欧洲精品一区二区三区| 日韩av成人高清| 91丨porny丨中文| 欧美大尺度电影在线| 亚洲老妇xxxxxx| 国产成人精品免费| 日韩一区二区在线播放| 亚洲欧美视频在线观看| 国内精品久久久久影院色| 欧美影视一区二区三区| 日本一区二区三区免费乱视频| 91色在线porny| 欧美变态凌虐bdsm| 亚洲国产美女搞黄色| 成人免费看视频| 精品毛片乱码1区2区3区| 亚洲国产裸拍裸体视频在线观看乱了 | 成人午夜碰碰视频| 精品毛片乱码1区2区3区| 婷婷成人激情在线网| 91福利视频久久久久| 国产精品素人一区二区| 国产精品一区三区| 日韩视频一区二区三区| 午夜电影网亚洲视频| 91国偷自产一区二区开放时间| 国产亚洲成av人在线观看导航| 日本不卡视频一二三区| 欧美午夜一区二区三区免费大片| 国产精品久久久久影院亚瑟| 国内成人免费视频| 日韩欧美电影在线| 日本不卡高清视频| 在线成人免费视频| 亚洲一区电影777| 在线观看网站黄不卡| 亚洲欧洲成人精品av97| 成人午夜av电影| 国产精品丝袜久久久久久app| 国产精品一卡二| 国产日韩欧美不卡| 国产一区二区三区视频在线播放| 欧美丰满少妇xxxbbb| 亚洲成人7777| 91精品国产综合久久香蕉的特点| 亚洲电影第三页| 宅男在线国产精品| 麻豆91免费观看| 日韩你懂的在线观看| 精品无人码麻豆乱码1区2区 | 91在线国产福利| 国产精品家庭影院| 色婷婷av一区| 亚洲成人av免费| 欧美一级一级性生活免费录像| 美国毛片一区二区三区| 26uuu亚洲综合色| 成人激情视频网站| 亚洲视频一区在线| 欧美制服丝袜第一页| 欧美a级理论片| 久久精品日产第一区二区三区高清版 | 欧美一区二区三区免费在线看| 日本成人在线一区| 久久久午夜电影| 97超碰欧美中文字幕| 亚洲一区在线观看免费| 91麻豆精品91久久久久同性| 美女视频黄久久| 国产精品免费久久| 欧美日韩一区二区三区在线看| 免费观看日韩电影| 国产精品乱码人人做人人爱| 色综合一区二区| 欧美aaaaaa午夜精品|