Products & Services Solutions Academia Support User Community Company

Learn more about MATLAB   

nextDirectory - Class: Tiff

Make next IFD current IFD

Syntax

tiffobj.nextDirectory()

Description

tiffobj.nextDirectory() makes the next image file directory (IFD) in the file the current IFD. Tiff object methods operate on the current IFD. Use this method to navigate among IFDs in a TIFF file containing multiple images.

Examples

Open a Tiff object and change the current IFD to the next IFD in the file. Replace myfile.tif with the name of a TIFF file on your MATLAB path. The TIFF file should contain multiple images.

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

References

This method corresponds to the TIFFReadDirectory 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