Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

numberOfTiles

Class: Tiff

Total number of tiles in image

Syntax

numTiles = numberOfTiles(tiffobj)

Description

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

Examples

expand all

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 isTiled(t)
	nTiles = numberOfTiles(t)
end
nTiles =

   110

The image has 110 tiles.

Close the Tiff object.

close(t)

Related Examples

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.

Was this topic helpful?