computeStrip
包含指定坐标的条带的索引编号
说明
示例
确定条带的索引
确定条带的索引,该条带包含 TIFF 文件中第二个图像的特定行。
为文件 example.tif
创建 Tiff
对象,然后将图像文件目录设置为目录编号 2
。
t = Tiff('example.tif','r'); setDirectory(t,2)
获取图像中条带的长度,然后获取包含中间行的条带的索引。
stripLength = getTag(t,'RowsPerStrip')
stripLength = 100
numRows = getTag(t,'ImageLength');
stripNumber = computeStrip(t,numRows/2)
stripNumber = 4
关闭 Tiff
对象。
close(t);
输入参数
算法
参考
此函数对应于 LibTIFF C API 中的 TIFFComputeStrip
函数。要使用此函数,您必须熟悉 TIFF 规范和技术说明。请访问 LibTIFF - TIFF 库和实用工具查看此文档。
版本历史记录
在 R2009b 中推出
MATLAB 命令
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)