Products & Services Solutions Academia Support User Community Company

Learn more about MATLAB   

lastDirectory - Class: Tiff

Determine if current IFD is last in file

Syntax

bool = tiffobj.lastDirectory()

Description

bool = tiffobj.lastDirectory() returns true if the current image file directory (IFD) is the last IFD in the TIFF file; otherwise, false.

Examples

Open a Tiff object and determine if the current directory is the last directory in the file. Replace myfile.tif with the name of a TIFF file on your MATLAB path. If the file contains only one image, the current IFD will be the last:

t = Tiff('myfile.tif', 'r');
tf = t.lastDirectory();

References

This method corresponds to the TIFFLastDirectory function in the LibTIFF C API. To use this method, you must be familiar with LibTIFF version 3.7.1, as well as the TIFF specification and technical notes. View this documentation at LibTIFF - TIFF Library and Utilities.

See Also

Tiff.setDirectory

Tutorials

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS