Help Center
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.
t
example
collapse all
Create a Tiff object for a TIFF file and determine which IFD is the current IFD.
Tiff
t = Tiff('example.tif','r'); dnum = currentDirectory(t)
dnum = 1
Close the Tiff object.
close(t);
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.
TIFFCurrentDirectory
Introduced in R2009b
setDirectory | Tiff
setDirectory
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.
Select a Web Site
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
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other bat365 country sites are not optimized for visits from your location.
Americas
Europe
Asia Pacific
Contact your local office