紅色=>變數 filename.aaa=>任何檔案+此檔案的副檔名
.......................................................................................................
1.W=imread('filename.aaa') ==> 讀取影像檔
.......................................................................................................
2.figure,imshow(W),pixval on
figure => 建立一個視窗 imshow( ) => 影像展現
pixval on =>顯示滑鼠指向的灰階值
.......................................................................................................
3.size(a) => 確定矩陣的維數
.......................................................................................................
4.impixel(a,200,100) => 看變數(a)中的XY位子(200,100)的點
.......................................................................................................
5.imfinfo('filename.aaa') => 查看檔案的資訊
.......................................................................................................
3.size(a) => 確定矩陣的維數
.......................................................................................................
4.impixel(a,200,100) => 看變數(a)中的XY位子(200,100)的點
.......................................................................................................
5.imfinfo('filename.aaa') => 查看檔案的資訊
.......................................................................................................
6. >>a=23
>>b=uint8(a) => 轉換資料型態
>>b
>>whos a b => 顯示變數細節、資料型態
.......................................................................................................
7.dumphex('filename.aaa',4) => 顯示影像的16位元的資訊
.......................................................................................................
8.imwrite(a,map,'filename.aaa',fmp) => 影像寫入
>>b=uint8(a) => 轉換資料型態
>>b
>>whos a b => 顯示變數細節、資料型態
.......................................................................................................
7.dumphex('filename.aaa',4) => 顯示影像的16位元的資訊
.......................................................................................................
8.imwrite(a,map,'filename.aaa',fmp) => 影像寫入
a=>變數(應該是要有影像的矩陣資料) 'filename.aaa'=>儲存的檔名
fmp=>檔案格式
.......................................................................................................P.s 看不懂指令在做甚麼??那就要親身體驗!!試看吧!!
沒有留言:
張貼留言