Return index of current IFD
dirNum = currentDirectory(t)
example
dirNum = currentDirectory(t) returns the index of the current image file directory (IFD). Index values are one-based.
t
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
LibTIFF - TIFF Library and Utilities
setDirectory | Tiff
setDirectory
You have a modified version of this example. Do you want to open this example with your edits?