| Contents | Index |
Create new IFD and make it current IFD
tiffobj.writeDirectory()
tiffobj.writeDirectory() create a new image file directory (IFD) and makes it the current IFD. Tiff object methods operate on the current IFD. If you are creating a TIFF file that only contains one image, you do not need to use this method. With single-image TIFF files, just close the Tiff object to write data to the file.
Open a TIFF file for modification and create a new IFD in the file. writeDirectory makes the newly created IFD the current IFD. Replace the name myfile.tif with the name of a TIFF file on your MATLAB path.
t = Tiff('myfile.tif', 'r+');
dnum = t.currentDirectory();
t.writeDirectory();
dnum = t.currentDirectory();This method corresponds to the TIFFWriteDirectory function in the LibTIFF C API. To use this method, you must be familiar with the TIFF specification and technical notes. View this documentation at LibTIFF - TIFF Library and Utilities.

Explore how to use MATLAB to make advancements in engineering and science.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |