1.前言
OpenIGTLink接口用来与外部软件/硬件进行网络交流的独立模块,该模块使用OpenIGTLink协议。该模块提供了以下特性:
- 数据输入:该模块可以从OpenIGTLink兼容的软件导入位置数据、线性变换、图像数据到MRML场景中。
- 数据输出:该模块可以将线性变换、图像从MRML场景中导出到外部软件中。
- 多连接:该模块可以同时管理多个OpenIGTLink接口。
- 定位器可视化:用户可以选择MRML场景中的一个线性变换,在3D空间中可视化其位置和方向。
- Slice driving: The module can control volume re-slicing plane based on linear transform in the MRML scene.
multiple devices are communicating with 3D Slicer through the OpenIGTLink Interface
2.界面及使用规则
3.Tutorial
3.1 主要功能
- 从远程主机上导入数据到MRML场景
- 将MRML中的数据导出到远程主机
3.2 TCP连接基础
远程主机由IP 地址,或者网络地址+端口号指定。
例如:
服务器与客户端:
- 服务器在给定的端口等待客户端;
- 客户端请求与服务器进行连接;
- Slicer既可以作为服务器又可以作为客户端;
3.3 实验测试
- Installing Volume Reslice Driver Module
直接下载IGTExtension就包含了Volume Reslice Driver Module。
- Configuring OpenIGTLinkiIF module
To connect 3D Slicer to external device/software using OpenIGTLink IF, a “connector” has to be created for each connection.Connectors can be configured in“Connectors” Tab in OpenIGTLinkIF module.
列表中将会出现“vtkMRMLIGTConnectorNode1”.
You may change the name of the connector by type in a new name and hit Return key.
This is an optional step. It is a good idea to name connectors, especially if you have multiple connections.
选择“Client”,类型和主机名就会出现在列表属性中。
Uncompress the archived simulator files downloaded from the simulator page.Find TrackerServer binary
file.
Open a terminal window:
Windows: Open the start menu, type “cmd” in the search box area and then press Enter key.
Mac: Open “Utilities” in “Application” folder and double-click the “Terminal.app” icon.
Linux: Open terminal window.
Start TrackerServer:
Windows/Mac: Drag“TrackerServer” iconfrom Explorer (Win) or Finder (Mac) and drop into the command
window.
Linux: Type the path to the binary file of “TrackerServer”.
- 指定端口号(18944)和帧率(10frame/s)
一旦按下回车键,TrackerServer就开始等待一个客户端。
Simulator starts printing random transform matrix values in the terminal window.
Transform is being updated while Tracker Simulator is sending data.
welcome Module中下载数据(Download MRHead):
OpenIGTLinkIF Module中,打开IO configure tree,在IN节点点击“+”,点击那个小眼睛图标。
- Open Volume Reslice Diver
IGT->Volume Reslice Diver:
4. 参考资料
[1]Link to the Simulator packages
[2]Module:OpenIGTLinkIF-Documentation 3.4
[3]OpenIGTLink Protocol Web Page
[4]Tokuda J., et al. OpenIGTLink: an open network protocol for image-guided therapy environment. Int J Med Robot. 2009Dec;5(4):423-34. PMID: 19621334. PMCID: PMC2811069.