Documentation Center

  • Trial Software
  • Product Updates

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

expand all

Determine Number of Tiles in Image

Create a Tiff object associated with the example file, example.tif. Get the number of tiles in the image if the image has a tiled organization.

t = Tiff('example.tif','r');
if t.isTiled()
		nTiles = t.numberOfTiles()
end
nTiles =

   110

The image has 110 tiles.

Close the Tiff object.

t.close();

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

|

Was this topic helpful?