Fraxinus
17.12
An IGT application
|
#include <cxIGTLinkConversionSonixCXLegacy.h>
Public Member Functions | |
igtl::ImageMessage::Pointer | encode (ImagePtr image) |
ImagePtr | decode (igtl::ImageMessage::Pointer msg) |
ImagePtr | decode (ImagePtr msg) |
ProbeDefinitionPtr | decode (ProbeDefinitionPtr msg) |
bool | guessIsSonixLegacyFormat (QString deviceName) |
Definition at line 52 of file cxIGTLinkConversionSonixCXLegacy.h.
ImagePtr cx::IGTLinkConversionSonixCXLegacy::decode | ( | igtl::ImageMessage::Pointer | msg | ) |
Decode the IGTLink message to create an image containing image data, uid and timstamp. The color format is also converted to RGBX
Definition at line 71 of file cxIGTLinkConversionSonixCXLegacy.cpp.
Decode the image to standard format with standard color RGBX encoding.
Find the substring [XYZW] in the msg uid, where each letter can be one of RGBAX. The letters describe the image components. Rearrange to standard RGBX format, strip format from uid, and return as new image.
Definition at line 208 of file cxIGTLinkConversionSonixCXLegacy.cpp.
ProbeDefinitionPtr cx::IGTLinkConversionSonixCXLegacy::decode | ( | ProbeDefinitionPtr | msg | ) |
Definition at line 62 of file cxIGTLinkConversionSonixCXLegacy.cpp.
igtl::ImageMessage::Pointer cx::IGTLinkConversionSonixCXLegacy::encode | ( | ImagePtr | image | ) |
Encode the image into a IGTLink message, containing image data, uid and timstamp
Definition at line 141 of file cxIGTLinkConversionSonixCXLegacy.cpp.
bool cx::IGTLinkConversionSonixCXLegacy::guessIsSonixLegacyFormat | ( | QString | deviceName | ) |
Return true if the device name if on a format indicating that the message is legacy.
Definition at line 223 of file cxIGTLinkConversionSonixCXLegacy.cpp.