freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

[信息與通信]matlab第6章高級(jí)圖形處理功能-資料下載頁(yè)

2025-01-19 09:38本頁(yè)面
  

【正文】 顏色 【例 6201】圖像格式以及圖像操作 clc。clear。close all[fture,map]=imread(39。39。)。 % 真彩色圖[fc,mapc]=imread(39。39。)。 % 256色彩色圖[fgr,mapgr]=imread(39。39。)。 % 256灰度圖[fk,mapk]=imread(39。39。)。 % 黑白圖65HYIT由兩個(gè)矩陣組成。由兩個(gè)矩陣組成。 圖像矩陣:圖像矩陣: 存儲(chǔ)每個(gè)像素點(diǎn)的色彩索引號(hào)存儲(chǔ)每個(gè)像素點(diǎn)的色彩索引號(hào) 色彩矩陣:色彩矩陣: m3 ,一行為一種顏色的,一行為一種顏色的 RGB分量分量,對(duì)應(yīng)一個(gè)索引號(hào)。,對(duì)應(yīng)一個(gè)索引號(hào)。PP 索引圖索引圖 (indexed color )常用的有常用的有 256色、色、 16色彩色索引圖。色彩色索引圖。 66HYIT也是一種索引圖,色彩矩陣的每一行的三個(gè)數(shù)值相也是一種索引圖,色彩矩陣的每一行的三個(gè)數(shù)值相等。(用等。(用 PPT調(diào)色板演示)調(diào)色板演示)PP 灰度圖灰度圖 (grayscale)常用的有常用的有 256色、色、 16色灰度圖。色灰度圖。 67HYIT 圖像讀入圖像讀入 操作 圖像顯示圖像顯示image(X)。 colormap(map)% colormap map is valid in the current figure.[x,map]=imread(‘filename’)imshow(‘filename’)imshow(X,map)%colormap map is valid in the current figure.subimage(X,map) %colormap map is valid in the current axes.68HYIT 圖像存儲(chǔ)圖像存儲(chǔ) 操作 圖像打印圖像打印函數(shù) :print菜單 :Figurefileprintimwrite(A,’filename’)imwrite(X,map,’filename’)imwrite(...,Param1,Val1,Param2,Val2...)Print(h ,’mushroom’ ,’djpeg’,’r100’)Print(h,’filename’,’options’)69HYIT【例 6201】圖像格式以及圖像操作%圖像顯示%imshow subplot(2,2,1),imshow (fture),axis offsubplot(2,2,2),imshow(fgr,mapgr)subplot(2,2,4),imshow(fk,mapk),axis offsubplot(2,2,3),imshow(fc,mapc) gtext(39。error imshow39。)figure,imshow(fc,mapc) 。title(39。imshow39。) % 用 subimage函數(shù),指定專用 colormap%imageamp。subimagefiguresubplot(2,2,1),image(fture),axis offsubplot(2,2,3),subimage(fc,mapc) % 用 subimage函數(shù),指定專用 colormapsubplot(2,2,2),subimage(fgr)colormap(mapgr) % 設(shè)定一個(gè) figure里公共的 colormap,作用于沒(méi)有指定 colormap的圖像subplot(2,2,4),subimage(fk,mapk),axis offgtext(39。imageamp。subimage39。)%圖像存儲(chǔ)imwrite(fc,mapc,39。39。)70HYIT【 練習(xí) 69】 做一個(gè)花瓶,如圖示。(提示:做一個(gè)旋轉(zhuǎn)體表面,調(diào)入一幅圖像對(duì)該表面進(jìn)行彩繪,即用圖像的色圖索引作為表面體的色圖索引) 71HYITclc。clear。closet=(0:20)/20。r=sin(2*pi*t)+2。[x,y,z]=cylinder(r,40)。 % 產(chǎn)生旋轉(zhuǎn)體表面的三維數(shù)cx=imread(39。39。)。 [c,map]=rgb2ind(cx,256)。 % 真彩色圖轉(zhuǎn)換為索引圖(若讀入的是索引圖,不需轉(zhuǎn)換)c1=double(c)+1。 h=surface(x,y,z,flipud(c1),39。FaceColor39。,39。texturemap39。,39。EdgeColor‘,’none‘,’speculars‘,) %通過(guò)屬性設(shè)置,進(jìn)行彩繪。 colormap(map) % 使用圖象的色圖view(50,10)。axis off72HYIT★ 作業(yè) P163 73
點(diǎn)擊復(fù)制文檔內(nèi)容
教學(xué)課件相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1