#include <igtl_lbmeta.h>
Public Attributes | |
| char | device_name [IGTL_LBMETA_LEN_DEVICE_NAME] |
| igtl_uint8 | label |
| char | name [IGTL_LBMETA_LEN_NAME] |
| char | owner [IGTL_LBMETA_LEN_OWNER] |
| igtl_uint8 | reserved |
| igtl_uint8 | rgba [4] |
| igtl_uint16 | size [3] |
Label meta data in OpenIGTLinik protocol
LBMETA is a data type to send a list of label image data available in a server. In OpenIGTLink protocol, actual label data is transfered as an IMAGE message. LBMETA message lets the receiving client know which IMAGE data are available as label maps. Multiple labels in a LBMETA message can point the same IMAGE message, if there are multiple lables are recoreded in a single IMAGE mesage. For example, given the following label map as IMAGE data with name "LableImage1":
0 0 0 1 0 0 value | name / description 2 0 1 1 1 0 -----—+-------------------------— 2 2 1 1 1 0 0 | None 2 2 2 1 0 0 1 | Liver 2 2 2 2 0 0 2 | Kidney
To send the label information recorded in "LabelImage1," one can create a following LBMETA message:
DATA | Contents
---------------+---------------------------
NAME 1 | Liver
IMAGE NAME 1 | LabelImage
Labe l | 1
RGBA 1 | 0xFF0000
SIZE 1 | (6, 5, 1)
OWNER 1 |
--------------+---------------------------
NAME 2 | Kidney
IMAGE NAME 2 | LabelImage
Labe 2 | 2
RGBA 2 | 0xFF2222
SIZE 2 | (6, 5, 1)
OWNER 2 |
--------------+---------------------------
... ....
--------------+---------------------------
The client determins the number of image meta by the size of the body included in the message header (see igtl_lbmeta_getdata_n() macro).
Definition at line 79 of file igtl_lbmeta.h.
| char igtl_lbmeta_element::device_name[IGTL_LBMETA_LEN_DEVICE_NAME] |
Definition at line 81 of file igtl_lbmeta.h.
| igtl_uint8 igtl_lbmeta_element::label |
Definition at line 82 of file igtl_lbmeta.h.
| char igtl_lbmeta_element::name[IGTL_LBMETA_LEN_NAME] |
Definition at line 80 of file igtl_lbmeta.h.
| char igtl_lbmeta_element::owner[IGTL_LBMETA_LEN_OWNER] |
Definition at line 86 of file igtl_lbmeta.h.
| igtl_uint8 igtl_lbmeta_element::reserved |
Definition at line 83 of file igtl_lbmeta.h.
| igtl_uint8 igtl_lbmeta_element::rgba[4] |
Definition at line 84 of file igtl_lbmeta.h.
| igtl_uint16 igtl_lbmeta_element::size[3] |
Definition at line 85 of file igtl_lbmeta.h.