2008年10月17日 星期五

第二章心得

在第二章節,教了我們一些簡單的指令,

用imread讀取圖片,
再用imshow把圖片秀出來,

也能用滑鼠在圖片上抓取RGB。


imfinfo可以知道圖片的詳細資料。
>> imfinfo('cats.bmp')
ans =
Filename: 'cats.bmp'
FileModDate: '17-Oct-2008 02:56:01'
FileSize: 921654
Format: 'bmp'
FormatVersion: 'Version 3 (Microsoft Windows 3.x)'
Width: 640
Height: 480
BitDepth: 24
ColorType: 'truecolor'
FormatSignature: 'BM'
NumColormapEntries: 0
Colormap: []
RedMask: []
GreenMask: []
BlueMask: []
ImageDataOffset: 54
BitmapHeaderSize: 40
NumPlanes: 1
CompressionType: 'none'
BitmapSize: 921600
HorzResolution: 0
VertResolution: 0
NumColorsUsed: 0
NumImportantColors: 0
>>
在最後對於dumphex就不太懂了,
輸入指令也跑不出東西來。
>> dumphex('cats.bmp',4)
??? Undefined function or method 'dumphex' for input arguments of type 'char'.
對於這指令的問題,
可能還得花點時間才能解決。

沒有留言:

張貼留言