Main Content

currentDirectory

Return index of current IFD

Description

dirNum = currentDirectory(t) returns the index of the current image file directory (IFD). Index values are one-based.

example

Examples

collapse all

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.

close(t);

Input Arguments

collapse all

Tiff object representing a TIFF file. Use the Tiff function to create the object.

Algorithms

collapse all

Version History

Introduced in R2009b