setSubDirectory
使 subIFD 成为当前 IFD
说明
示例
设置子图像文件目录
打开一个 TIFF 文件并读取当前 IFD 中 SubIFD
标记的值。SubIFD
标记包含指定 subIFD 在 IFD 中的位置的字节偏移量。
t = Tiff('example.tif','r');
读取 SubIFD
标记的值以获取子目录偏移量。offsets
数组中的多个值表示多个子目录。
offsets = getTag(t,'SubIFD')
offsets = uint64
90114
导航到第一个 subIFD。如果您有多个子目录,则可以将任一子目录设置为当前目录。
setSubDirectory(t,offsets(1)) close(t);
输入参数
算法
参考
此函数对应于 LibTIFF C API 中的 TIFFSetSubDirectory
函数。要使用此函数,您必须熟悉 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)