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.
|
virtual |
| 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. |
Definition at line 67 of file ROI.cpp.
Referenced by te::cl::ROISet::createROISet(), and te::qt::widgets::ROIManagerWidget::onGeomAquired().
| std::string te::cl::ROI::getColor | ( | ) |
Get the ROI color defined by a hexadecimal color name.
Definition at line 57 of file ROI.cpp.
Referenced by te::qt::widgets::ROIManagerWidget::drawROISet(), te::cl::ROISet::getDataSet(), te::qt::widgets::ROIManagerWidget::onOpenLayerROIToolButtonClicked(), te::qt::widgets::ClassifierWizardPage::onRoiSetChanged(), and te::qt::widgets::ROIManagerWidget::onROITreItemClicked().
| std::string te::cl::ROI::getLabel | ( | ) |
Get the ROI label.
Definition at line 47 of file ROI.cpp.
Referenced by te::cl::ROISet::addROI(), te::cl::ROISet::getDataSet(), te::qt::widgets::ROIManagerWidget::onAddROIToolButtonClicked(), te::qt::widgets::ROIManagerWidget::onOpenLayerROIToolButtonClicked(), and te::qt::widgets::ClassifierWizardPage::onRoiSetChanged().
| std::map< std::string, te::gm::Polygon * > & te::cl::ROI::getPolygons | ( | ) |
Get all polygons belongs to this roi.
Definition at line 62 of file ROI.cpp.
Referenced by te::qt::widgets::ROIManagerWidget::drawROISet(), te::cl::ROISet::getDataSet(), te::qt::widgets::ROIManagerWidget::onOpenLayerROIToolButtonClicked(), te::qt::widgets::ClassifierWizardPage::onRoiSetChanged(), and te::qt::widgets::ROIManagerWidget::onROITreItemClicked().
| void te::cl::ROI::removePolygon | ( | std::string | id | ) |
Removes a region from this ROI.
| id | The 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 | ) |
|
private |
|
private |