www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/ReadaStripExample.m

    %% Read a Strip  
% Read the first strip in the second image of a TIFF file.   

%% 
% Create a |Tiff| object associated with the example file, |example.tif|,
% and make the second image the current directory. 
t = Tiff('example.tif','r');
setDirectory(t,2)  

%% 
% Read the data in the first strip. Then, close the |Tiff| object. 
data = readEncodedStrip(t,1);
close(t)