| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → MATLAB |
| Contents | Index |
| Learn more about MATLAB |
Total number of strips in image
numStrips = tiffobj.numberOfStrips()
numStrips = tiffobj.numberOfStrips() returns the total number of strips in the image.
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();
endThis method corresponds to the TIFFNumberOfStrips function in the LibTIFF C API. To use this method, you must be familiar with LibTIFF version 3.7.1, as well as the TIFF specification and technical notes. View this documentation at LibTIFF - TIFF Library and Utilities.
Tiff.isTiled | Tiff.numberOfTiles
![]() | num2str | numberOfTiles (Tiff) | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |