Difference between revisions of "OpenIGTLink/ProtocolV2/Type/LabelMeta"

From NAMIC Wiki
Jump to: navigation, search
(Created page with ' << Version 2 Draft Page =Summary= The XXXX format supports blah-blah-blah. =Message Types= ==XXXX== {| border="1" cellpadding="5" …')
 
Line 2: Line 2:
  
 
=Summary=
 
=Summary=
The XXXX format supports blah-blah-blah.
+
To retreive voxel objects or a label map, GET_IMAGE / IMAGE can be used. But the client should be able to get a list of available structures. I suggest a GET_LBMETA message:
  
 
=Message Types=
 
=Message Types=
==XXXX==
+
==LBMETA==
  
 
{| border="1" cellpadding="5" cellspacing="0" align="center"
 
{| border="1" cellpadding="5" cellspacing="0" align="center"
Line 13: Line 13:
 
| align="left style="background:#e0e0e0;" | Description
 
| align="left style="background:#e0e0e0;" | Description
 
|-
 
|-
| align="left" | V1
+
| align="left" | Name/Description
| align="left" | unsigned short
+
| align="left" | char[64]
| align="left" | Value 1
+
| align="left" | Name or description of the image
 
|-
 
|-
| align="left" | V2
+
| align="left" | Id
| align="left" | 8bit unsigned int
+
| align="left" | char[20]
| align="left" | Value 2
+
| align="left" | Id to query the IMAGE
 
|-
 
|-
| align="left" | ...
+
| align="left" | Label
| align="left" | ...
+
| align="left" | 8 bit unsigned int
| align="left" | ...
+
| align="left" | Label of structure (0 if unused)
 
|-
 
|-
|}
+
| align="left" | --
 
+
| align="left" | 8 bit unsigned int
 
+
| align="left" | Reserved.
==GET_XXXX==
 
{| border="1" cellpadding="5" cellspacing="0" align="center"
 
 
|-
 
|-
| align="left style="background:#e0e0e0;" | Data
+
| align="left" | R,G,B,A
| align="left style="background:#e0e0e0;" | Type
+
| align="left" | 8 bit unsigned
| align="left style="background:#e0e0e0;" | Description
+
| align="left" | Color in RGBA (0 0 0 0 if no color is defined)
 
|-
 
|-
| align="left" | V1
+
| align="left" | RI, RJ, RK
| align="left" | unsigned short
+
| align="left" | 16 bit unsigned
| align="left" | Value 1
+
| align="left" | Number of pixels in each direction (same as in IMAGE), bounding box of the structure(s)
 
|-
 
|-
| align="left" | V2
+
| align="left" | Owner image
| align="left" | 8bit unsigned int
+
| align="left" | char[20]
| align="left" | Value 2
+
| align="left" | Id of the owner image/sliceset. Voxel objects from different slicesets can be sent if slicesets are fused. Can be empty if n/a.
|-
 
| align="left" | ...
 
| align="left" | ...
 
| align="left" | ...
 
 
|-
 
|-
 
|}
 
|}
  
 
+
==GET_LBMETA==
==STT_XXXX==
 
 
 
 
{| border="1" cellpadding="5" cellspacing="0" align="center"
 
{| border="1" cellpadding="5" cellspacing="0" align="center"
 
|-
 
|-
Line 57: Line 49:
 
| align="left style="background:#e0e0e0;" | Type
 
| align="left style="background:#e0e0e0;" | Type
 
| align="left style="background:#e0e0e0;" | Description
 
| align="left style="background:#e0e0e0;" | Description
|-
 
| align="left" | V1
 
| align="left" | unsigned short
 
| align="left" | Value 1
 
|-
 
| align="left" | V2
 
| align="left" | 8bit unsigned int
 
| align="left" | Value 2
 
|-
 
| align="left" | ...
 
| align="left" | ...
 
| align="left" | ...
 
 
|-
 
|-
 
|}
 
|}
  
==STP_XXXX==
 
  
 +
==STT_LBMETA==
  
{| border="1" cellpadding="5" cellspacing="0" align="center"
+
N/A
|-
+
 
| align="left style="background:#e0e0e0;" | Data
+
==STP_LBMETA==
| align="left style="background:#e0e0e0;" | Type
+
 
| align="left style="background:#e0e0e0;" | Description
+
N/A
|-
 
| align="left" | V1
 
| align="left" | unsigned short
 
| align="left" | Value 1
 
|-
 
| align="left" | V2
 
| align="left" | 8bit unsigned int
 
| align="left" | Value 2
 
|-
 
| align="left" | ...
 
| align="left" | ...
 
| align="left" | ...
 
|-
 
|}
 
  
 
=Implementations=
 
=Implementations=
Line 101: Line 67:
  
 
=Contributors=
 
=Contributors=
You may list names of contributors in this section.
+
Alexander Schaal
  
 
=Comments=
 
=Comments=
People in the community may put comments here.
 

Revision as of 02:51, 1 July 2010

Home < OpenIGTLink < ProtocolV2 < Type < LabelMeta

<< Version 2 Draft Page

Summary

To retreive voxel objects or a label map, GET_IMAGE / IMAGE can be used. But the client should be able to get a list of available structures. I suggest a GET_LBMETA message:

Message Types

LBMETA

Data Type Description
Name/Description char[64] Name or description of the image
Id char[20] Id to query the IMAGE
Label 8 bit unsigned int Label of structure (0 if unused)
-- 8 bit unsigned int Reserved.
R,G,B,A 8 bit unsigned Color in RGBA (0 0 0 0 if no color is defined)
RI, RJ, RK 16 bit unsigned Number of pixels in each direction (same as in IMAGE), bounding box of the structure(s)
Owner image char[20] Id of the owner image/sliceset. Voxel objects from different slicesets can be sent if slicesets are fused. Can be empty if n/a.

GET_LBMETA

Data Type Description


STT_LBMETA

N/A

STP_LBMETA

N/A

Implementations

XXX message type is implemented in the following source code.

  • igtlXXXXMessage.h (link to the file in subversion repository, if available)
  • igtlXXXXMessage.cxx (link to the file in subversion repository, if available)

Contributors

Alexander Schaal

Comments