Total number of strips in image
numStrips = numberOfStrips(tiffobj)
numStrips = numberOfStrips(tiffobj) returns
the total number of strips in the image.
Determine the number of strips in the second image of a file.
Tiff object associated with the example file,
t = Tiff('example.tif','r');
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) end
numStrips = 7
The image has 7 strips.
This method corresponds to the
in the LibTIFF C API. To use this method, you must be familiar with
the TIFF specification and technical notes. View this documentation
- TIFF Library and Utilities.