%% Determine Current IFD
% Create a Tiff object for a TIFF file and determine which IFD is the current IFD.

t = Tiff('example.tif','r');
dnum = currentDirectory(t)

% Close the Tiff object.

close(t);

% Copyright 2012 The MathWorks, Inc.