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

    %% Determine Current IFD  

%% 
% Open a |Tiff| object and determine which IFD is the current IFD. 
t = Tiff('example.tif','r');
dnum = currentDirectory(t)  

%% 
% Close the |Tiff| object. 
close(t)