2008年10月17日 星期五

第二章


這禮拜開始講些有關指令的部份了
老實說因為是原文書我花了不少時間去看
雖然有老師還有同學的筆記
但是還是有些指令有點不太懂
但稍微操作過後不懂的情況就比較好了點
話說我在開檔的時候出了些問題
就是在圖片之前阿
會出現亂碼
而且還不是很短的那種
是很長很長的.....
害我完全不知所措....
後來還是無法......
不過其他的程序倒是很順利就是了
我想關於這個問題我得去找同學問了
以下是我的程式碼:




>> figure,imshow(s),pixval on
Warning: PIXVAL is obsolete.
IMPIXELINFO is its recommended replacement for pixel reporting.
IMDISTLINE is its recommended replacement for measuring distance.
> In pixval at 89
In pixval at 73
Warning: PIXVAL is obsolete.
IMPIXELINFO is its recommended replacement for pixel reporting.
IMDISTLINE is its recommended replacement for measuring distance.
> In pixval at 89
In C:\ProgramFiles\MATLAB\R2007a\toolbox\matlab\graph2d\scribeclearmode.p>scribeclearmode at 21
In uisuspend at 30
In uiclearmode at 101
In pixval at 147
In pixval at 73
>> size(s)
ans =
320 500 3
>> s(100,200,2)
ans =
118
>> s(100,200,:)
ans(:,:,1) =
174
ans(:,:,2) =
118
ans(:,:,3) =
44
>> s(100,200,1:3)
ans(:,:,1) =
174
ans(:,:,2) =
118
ans(:,:,3) =
44
>> impixel(a,200,100)??? Undefined function or variable 'a'.
>> impixel(s,200,100)
ans =
174 118 44
>> imfinfo('20060613_zin5699_170512.tif')
ans =

Filename: '20060613_zin5699_170512.tif'
FileModDate: '17-Oct-2008 00:32:13'
FileSize: 480266
Format: 'tif'
FormatVersion: []
Width: 500
Height: 320
BitDepth: 24
ColorType: 'truecolor'
FormatSignature: [73 73 42 0]
ByteOrder: 'little-endian'
NewSubFileType: 0
BitsPerSample: [8 8 8]
Compression: 'LZW'
PhotometricInterpretation: 'RGB'
StripOffsets: [40x1 double]
SamplesPerPixel: 3
RowsPerStrip: 8
StripByteCounts: [40x1 double]
XResolution: 96
YResolution: 96
ResolutionUnit: 'Inch'
Colormap: []
PlanarConfiguration: 'Chunky'
TileWidth: []
TileLength: []
TileOffsets: []
TileByteCounts: []
Orientation: 1
FillOrder: 1
GrayResponseUnit: 0.0100
MaxSampleValue: [255 255 255]
MinSampleValue: 0
Thresholding: 1
以上是我的程式碼
或許還有些細節我不是很懂
但我想再給我多一些時間
我會把它弄懂的

沒有留言:

張貼留言