NorMIT-nav
22.09
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 31 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 50 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 187 of file cxIGTLinkConversionSonixCXLegacy.cpp.
ProbeDefinitionPtr cx::IGTLinkConversionSonixCXLegacy::decode | ( | ProbeDefinitionPtr | msg | ) |
Definition at line 41 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 120 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 202 of file cxIGTLinkConversionSonixCXLegacy.cpp.