Return index of current IFD
dirNum = currentDirectory(t)
dirNum = currentDirectory(t) returns the
index of the current image file directory (IFD). Index values are one-based.
Create a Tiff object for a TIFF file and determine which IFD is the current IFD.
t = Tiff('example.tif','r');
dnum = currentDirectory(t)
dnum = 1
Close the Tiff object.
Tiff object representing a TIFF file. Use the Tiff function to create the object.
This function corresponds to the TIFFCurrentDirectory function
in the LibTIFF C API. To use this function, you must be familiar with the TIFF
specification and technical notes. View this documentation at LibTIFF - TIFF Library and Utilities.
LibTIFF - TIFF Library and Utilities
setDirectory | Tiff
A modified version of this example exists on your system. Do you want to open this version instead?
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office