All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::cl::ROI Class Reference

A region of interest (often abbreviated ROI), is a selected subset of samples within a dataset identified for a particular purpose. More...

#include <ROI.h>

Public Member Functions

void addPolygon (te::gm::Polygon *p, std::string id)
 Add a new region into this ROI. More...
 
std::string getColor ()
 Get the ROI color defined by a hexadecimal color name. More...
 
std::string getLabel ()
 Get the ROI label. More...
 
std::map< std::string,
te::gm::Polygon * > & 
getPolygons ()
 Get all polygons belongs to this roi. More...
 
void removePolygon (std::string id)
 Removes a region from this ROI. More...
 
 ROI (std::string label)
 Default constructor. More...
 
void setColor (std::string color)
 Set the ROI color using the hexadecimal color name. More...
 
void setLabel (std::string label)
 Set the ROI label. More...
 
virtual ~ROI ()
 Virtual destructor. More...
 

Private Attributes

std::string m_color
 The hexa color associated with this ROI. More...
 
std::string m_label
 ROI label. More...
 
std::map< std::string,
te::gm::Polygon * > 
m_roiMap
 The map of acquired regions. More...
 

Detailed Description

A region of interest (often abbreviated ROI), is a selected subset of samples within a dataset identified for a particular purpose.

An ROI can be taken literally as a polygonal selection from a 2D map. In computer vision and optical character recognition, the ROI defines the borders of an object under consideration. In many applications, symbolic (textual) labels are added to a ROI, to describe its content in a compact manner.

Within an ROI may lie individual points of interest (POIs).

In this first version, the region will be represented only by polygons.

Definition at line 60 of file ROI.h.

Constructor & Destructor Documentation

te::cl::ROI::ROI ( std::string  label)

Default constructor.

Definition at line 32 of file ROI.cpp.

te::cl::ROI::~ROI ( )
virtual

Virtual destructor.

Definition at line 36 of file ROI.cpp.

References te::common::FreeContents().

Member Function Documentation

void te::cl::ROI::addPolygon ( te::gm::Polygon p,
std::string  id 
)

Add a new region into this ROI.

Parameters
pThe polygon that represents the region of interest.
idThe polygon unique identifier.

Definition at line 67 of file ROI.cpp.

Referenced by te::cl::ROISet::createROISet(), and te::qt::widgets::ROIManagerWidget::onGeomAquired().

void te::cl::ROI::removePolygon ( std::string  id)

Removes a region from this ROI.

Parameters
idThe polygon ID that has to be removed.

Definition at line 72 of file ROI.cpp.

Referenced by te::qt::widgets::ROIManagerWidget::onRemoveROIToolButtonClicked().

void te::cl::ROI::setColor ( std::string  color)

Set the ROI color using the hexadecimal color name.

Definition at line 52 of file ROI.cpp.

Referenced by te::cl::ROISet::createROISet(), and te::qt::widgets::ROIManagerWidget::onAddROIToolButtonClicked().

void te::cl::ROI::setLabel ( std::string  label)

Set the ROI label.

Definition at line 42 of file ROI.cpp.

Member Data Documentation

std::string te::cl::ROI::m_color
private

The hexa color associated with this ROI.

Definition at line 106 of file ROI.h.

std::string te::cl::ROI::m_label
private

ROI label.

Definition at line 105 of file ROI.h.

std::map<std::string, te::gm::Polygon*> te::cl::ROI::m_roiMap
private

The map of acquired regions.

Definition at line 107 of file ROI.h.


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