樹心幽徑

« 20191021用python執行k近鄰分類、k-平均聚類、標註傳播 | Main | 20191023安裝Dev-C++來設計檔案內容讀取分析程式 »

20191021製作純文字格式的影像檔並安裝GIMP來顯示
2019/10/21,13:14

(一)參考文章:

REF1:20190605PBM圖檔製作.doc下載 (161 KB) | created 05 六月, 2019

REF2:20190606製作純文字格式的彩色圖檔PPM.doc下載 (117 KB) | created 06 六月, 2019

(二)下載並安裝GNU Image Manipulation Program (GIMP 2.10.12版).

(三a)請用記事本編寫如下內容並存在桌面為bw01.pbm(黑白影像檔)

bw01.PBM 下載 (2 KB) | created 21 十月, 2019

P1
32 32
1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0
1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0
1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0
1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0
1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0
1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0
1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0
1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1
0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1
0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 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 1 1 1 1 1 1 9 9 9 9 9 9 9 9 1 1 1 1 1 1 1 1
9 9 9 9 9 9 9 9 1 1 1 1 1 1 1 1 9 9 9 9 9 9 9 9 1 1 1 1 1 1 1 1
9 9 9 9 9 9 9 9 1 1 1 1 1 1 1 1 9 9 9 9 9 9 9 9 1 1 1 1 1 1 1 1
9 9 9 9 9 9 9 9 1 1 1 1 1 1 1 1 9 9 9 9 9 9 9 9 1 1 1 1 1 1 1 1
9 9 9 9 9 9 9 9 1 1 1 1 1 1 1 1 9 9 9 9 9 9 9 9 1 1 1 1 1 1 1 1
9 9 9 9 9 9 9 9 1 1 1 1 1 1 1 1 9 9 9 9 9 9 9 9 1 1 1 1 1 1 1 1
9 9 9 9 9 9 9 9 1 1 1 1 1 1 1 1 9 9 9 9 9 9 9 9 1 1 1 1 1 1 1 1

(四b)用gimp開啟桌面的gray01.pgm 成功

alt

(五a)請用記事本編寫如下內容並存在桌面為color01.ppm (彩色影像檔)

color01.PPM 下載 (932 bytes) | created 21 十月, 2019

P3
10 10
256
222 222 222 222 222 222 222 222 9 9 9 9 9 9 9 9 222 222 222 222 222 222 222 222 9 9 9 9 9 9
222 222 222 222 222 222 222 222 9 9 9 9 9 9 9 9 222 222 222 222 222 222 222 222 9 9 9 9 9 9
9 9 9 9 9 9 9 9 222 222 222 222 222 222 222 222 9 9 9 9 9 9 9 9 222 222 222 222 222 222
9 9 9 9 9 9 9 9 222 222 222 222 222 222 222 222 9 9 9 9 9 9 9 9 222 222 222 222 222 222
9 9 9 9 9 9 9 9 222 222 222 222 222 222 222 222 9 9 9 9 9 9 9 9 222 222 222 222 222 222
222 222 222 222 222 222 222 222 9 9 9 9 9 9 9 9 222 222 222 222 222 222 222 222 9 9 9 9 9 9
222 222 222 222 222 222 222 222 9 9 9 9 9 9 9 9 222 222 222 222 222 222 222 222 9 9 9 9 9 9
9 9 9 9 9 9 9 9 222 222 222 222 222 222 222 222 9 9 9 9 9 9 9 9 222 222 222 222 222 222
9 9 9 9 9 9 9 9 222 222 222 222 222 222 222 222 9 9 9 9 9 9 9 9 222 222 222 222 222 222
9 9 9 9 9 9 9 9 222 222 222 222 222 222 222 222 9 9 9 9 9 9 9 9 222 222 222 222 222 222

(六b)用gimp開啟桌面的color01.ppm 成功

alt

迴響

 
Accessible and Valid XHTML 1.0 Strict and CSS Powered by LifeType