Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions
labust::blueview::TrackerROI Class Reference

#include <TrackerROI.hpp>

List of all members.

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)

Detailed Description

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.


Constructor & Destructor Documentation

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.

Parameters:
strThe XML encoded string.

Definition at line 46 of file TrackerROI.cpp.

Generic destructor.

Definition at line 51 of file TrackerROI.cpp.


Member Function Documentation

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.

Parameters:
strString containing XML data.
objectThe TrackerROI object address.
Returns:
Returns true if serialization is successful, false otherwise.

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.

Parameters:
objectThe Tracker ROI object.
strThe string object address.
Returns:
Returns true if serialization is successful, false otherwise.

Definition at line 88 of file TrackerROI.cpp.


Member Data Documentation

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.

The ROI size.

Definition at line 86 of file TrackerROI.hpp.


The documentation for this class was generated from the following files:


target_detector
Author(s): Gyula Nagy
autogenerated on Fri Feb 7 2014 11:36:05