MATLAB 帮助中心
包含指定坐标的条带的索引编号
stripNumber = computeStrip(t,row)
stripNumber = computeStrip(t,row,plane)
stripNumber = computeStrip(t,row) 返回包含 row 的条带的索引。row 的值必须从 1 开始。computeStrip 将在图像边界处剪切超出范围的坐标值。
t
row
computeStrip
示例
stripNumber = computeStrip(t,row,plane) 返回条带的索引,该条带包含指定 plane 内的行。
plane
全部折叠
确定条带的索引,该条带包含 TIFF 文件中第二个图像的特定行。
为文件 example.tif 创建 Tiff 对象,然后将图像文件目录设置为目录编号 2。
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);
代表 TIFF 文件的 Tiff 对象。使用 Tiff 函数创建该对象。
行号,指定为正整数。row 的值必须从 1 开始。
示例: 10
10
数据类型: double
double
平面编号,指定为正整数。plane 的值必须从 1 开始。
仅当数据被组织到不同平面时才使用 plane 参数。当 PlanarConfiguration 标记的值为 Tiff.PlanarConfiguration.Separate 时,数据将被组织到不同的平面。
PlanarConfiguration
Tiff.PlanarConfiguration.Separate
示例: 1
1
此函数对应于 LibTIFF C API 中的 TIFFComputeStrip 函数。要使用此函数,您必须熟悉 TIFF 规范和技术说明。请访问 LibTIFF - TIFF 库和实用工具查看此文档。
TIFFComputeStrip
在 R2009b 中推出
computeTile | Tiff
computeTile
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处