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... | |
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.
| te::cl::ROI::ROI | ( | std::string | label | ) | 
Default constructor.
| 
 | virtual | 
Virtual destructor.
| void te::cl::ROI::addPolygon | ( | te::gm::Polygon * | p, | 
| std::string | id | ||
| ) | 
Add a new region into this ROI.
| p | The polygon that represents the region of interest. | 
| id | The polygon unique identifier. | 
| std::string te::cl::ROI::getColor | ( | ) | 
Get the ROI color defined by a hexadecimal color name.
| std::string te::cl::ROI::getLabel | ( | ) | 
Get the ROI label.
| std::map<std::string, te::gm::Polygon*>& te::cl::ROI::getPolygons | ( | ) | 
Get all polygons belongs to this roi.
| void te::cl::ROI::removePolygon | ( | std::string | id | ) | 
Removes a region from this ROI.
| id | The polygon ID that has to be removed. | 
| void te::cl::ROI::setColor | ( | std::string | color | ) | 
Set the ROI color using the hexadecimal color name.
| void te::cl::ROI::setLabel | ( | std::string | label | ) | 
Set the ROI label.
| 
 | private | 
| 
 | private |