#include <TrackerROI.hpp>
Public Member Functions | |
TrackerROI () | |
TrackerROI (const std::string &str) | |
~TrackerROI () | |
Static Public Member Functions | |
static bool | deserialize (const std::string &str, TrackerROI *const object) |
static bool | serialize (const TrackerROI &object, std::string *str) |
Public Attributes | |
SonarHead | headData |
cv::Point | origin |
cv::Mat | roi |
cv::Size | size |
Protected Member Functions | |
void | _decodePixels (std::string &str) |
const char * | _encodePixels (char *dst) |
The class implements the tracker Region-of-Interest(ROI) used in the NURC sonar image processing applications.
Definition at line 46 of file TrackerROI.hpp.
Generic constructor.
Definition at line 44 of file TrackerROI.cpp.
TrackerROI::TrackerROI | ( | const std::string & | str | ) |
Main constructor. Constructs the TracerROI from the XML data.
str | The XML encoded string. |
Definition at line 46 of file TrackerROI.cpp.
Generic destructor.
Definition at line 51 of file TrackerROI.cpp.
void labust::blueview::TrackerROI::_decodePixels | ( | std::string & | str | ) | [protected] |
The method decodes the pixel information from the string.
const char* labust::blueview::TrackerROI::_encodePixels | ( | char * | dst | ) | [inline, protected] |
Separate encoding policy
bool TrackerROI::deserialize | ( | const std::string & | str, |
TrackerROI *const | object | ||
) | [static] |
Converts the XML string to the Tracker ROI object.
str | String containing XML data. |
object | The TrackerROI object address. |
Definition at line 53 of file TrackerROI.cpp.
bool TrackerROI::serialize | ( | const TrackerROI & | object, |
std::string * | str | ||
) | [static] |
Converts the current Tracker ROI information to a XML encoded version.
object | The Tracker ROI object. |
str | The string object address. |
Definition at line 88 of file TrackerROI.cpp.
The ROI Sonar head information.
Definition at line 90 of file TrackerROI.hpp.
Origin of the coordinate system where the ROI is taken.
Definition at line 94 of file TrackerROI.hpp.
The ROI image.
Definition at line 98 of file TrackerROI.hpp.
cv::Size labust::blueview::TrackerROI::size |
The ROI size.
Definition at line 86 of file TrackerROI.hpp.