28.12.2012 Views

Figure Properties - SERC

Figure Properties - SERC

Figure Properties - SERC

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

multibandread<br />

Examples Read data from a multiband file into an 864-by-702-by-3 uint8 matrix, im.<br />

2-1502<br />

method Text string specifying the subsetting method. It can have either<br />

of these values:<br />

'Direct'<br />

'Range'<br />

If you leave out this element of the subset cell array,<br />

multibandread uses 'Direct' as the default.<br />

index If method is 'Direct', index is a vector specifying the indices to<br />

read along the Band dimension.<br />

im = multibandread('bipdata.img',...<br />

[864,702,3],'uint8=>uint8',0,'bip','ieee-le');<br />

Read all rows and columns, but only bands 3, 4, and 6.<br />

im = multibandread('bsqdata.img',...<br />

[512,512,6],'uint8',0,'bsq','ieee-le',...<br />

{'Band','Direct',[3 4 6]});<br />

Read all bands and subset along the rows and columns.<br />

im = multibandread('bildata.int',...<br />

[350,400,50],'uint16',0,'bil','ieee-le',...<br />

{'Row','Range',[2 2 350]},...<br />

{'Column','Range',[1 4 350]});<br />

See Also fread, fopen, multibandwrite<br />

If method is 'Range', index is a three-element vector of [start,<br />

increment, stop] specifying the range and step size to read<br />

along the dimension specified in dim. If index is a two-element<br />

vector, multibandread assumes that the value of increment is 1.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!