Description: MATLAB 最常處理的影像格式為索引影像(Indexed Images)
顯示此類型影像的語法如下:
image(X)
colormap(map)
其中X為影像的資料矩陣,map為色盤矩陣。
色盤矩陣的大小為K×3,每個橫列由三個元素所組成,分別是R(紅) 、G(綠)、B(藍) ,每個元素的範圍為0~1
X的值為1~K,也就是當X(i, j)的值為p,則像素點(i, j) 的顏色為map(p, :)這一列的值所決定。
-MATLAB image format most commonly treated as an index image (Indexed Images) display images of this type has the following syntax: image (X) colormap (map) where X is the image data matrix, map matrix for the color palette. The size of the matrix palette K3, each row consists of three elements, namely R (red), G (green), B (blue), and each element in the range of 0 ~ 1 X value is 1 ~ K, that is, when X (i, j) has a value of p, the pixel (i, j) of the color map (p, :) determined by the value of the column. Platform: |
Size: 643072 |
Author:王鈺琳 |
Hits: