www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/SetSubimageFileDirectoryExample.m
%% Set Subimage File Directory % Open a TIFF file and read the value of the |SubIFD| tag in the current % IFD. The |SubIFD| tag contains byte offsets that specify the location % of subIFDs in the IFD. The TIFF file should contain subIFDs. %% t = Tiff('example.tif','r'); %% % Read the value of the SubIFD tag to get subdirectory offsets. offsets = getTag(t,'SubIFD'); %% % Set one of the subdirectories (if more than one) as the current directory. setSubDirectory(t,offsets(1)) close(t)