Skip to Main Content Skip to Search
Product Documentation

numberOfTiles - Class: Tiff

Total number of tiles in image

Syntax

numTiles = tiffobj.numberOfTiles()

Description

numTiles = tiffobj.numberOfTiles() returns the total number of tiles in the image.

Examples

Open a Tiff object and determine the number of tiles in the image. Replace myfile.tif with the name of a TIFF file on your MATLAB path:

t = Tiff('myfile.tif', 'r');
%
% Check if image has a tiled organization
if t.isTiled()
		nTiles = t.numberOfTiles();
end

References

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

See Also

Tiff.isTiled | Tiff.numberOfStrips

Tutorials

  


Free MATLAB Interactive Kit

Explore how to use MATLAB to make advancements in engineering and science.


Download free kit

Trials Available

Try the latest version of MATLAB and other MathWorks products.


Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS