%% 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)

% Copyright 2012 The MathWorks, Inc.