Skip to Main Content Skip to Search
Product Documentation

numberOfStrips - Class: Tiff

Total number of strips in image

Syntax

numStrips = tiffobj.numberOfStrips()

Description

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

Examples

Open a Tiff object and determine the number of strips 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 stripped organization
if ~t.isTiled()
		nStrips = t.numberOfStrips();
end

References

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.

See Also

Tiff.isTiled | Tiff.numberOfTiles

Tutorials

  


» Learn more
» Download free kit
» Get trial software

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