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.


Class: Tiff

Total number of strips in image


numStrips = numberOfStrips(tiffobj)


numStrips = numberOfStrips(tiffobj) returns the total number of strips in the image.


expand all

Determine the number of strips in the second image of a file.

Create a Tiff object associated with the example file, example.tif.

t = Tiff('example.tif','r');

When the Tiff object is created, the first image in the file is the current image file directory.

Make the second image the current directory.


Get the number of strips in the image if the image has a stripped organization.

if ~isTiled(t)
	numStrips = numberOfStrips(t)
numStrips = 7

The image has 7 strips.

Close the Tiff object.



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