ARAM  2.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | Protected Member Functions | List of all members
aram::IROIDetector Class Referenceabstract

#include <IROIDetector.hpp>

Inheritance diagram for aram::IROIDetector:
aram::AdaptiveThreshDetector aram::AutoCannyDetector aram::CannyFittingDetector aram::OtsuCannyFittingDetector

Public Member Functions

 IROIDetector (FrameSet *fs)
 
virtual void findROI (vecROI *rois)=0
 

Protected Member Functions

void save (std::string name, cv::Mat &mat)
 
cv::Mat & load (std::string name)
 
bool exist (std::string name)
 

Detailed Description

Interface for region of interest (ROI) detection

Constructor & Destructor Documentation

aram::IROIDetector::IROIDetector ( FrameSet fs)

Constructor

Parameters
[in]FrameSet*fs FrameSet contains all current frame created by the library

Member Function Documentation

bool aram::IROIDetector::exist ( std::string  name)
protected

Test if a frame name is used

Parameters
[in]std::stringname frame name
Returns
bool true if name is found
virtual void aram::IROIDetector::findROI ( vecROI rois)
pure virtual

Find roi

Parameters
[in,out]vecROI*rois vector of ROIs
[in]vecTag*tags vector of tags (always empty, useless since 0.1)
[in]FrameSet*fs set of frame, contains currentFrame (call fs->load("currentFrame"); to get the current frame), you can use this set to store results of operations like threshold, canny, ...

Implemented in aram::AutoCannyDetector, aram::CannyFittingDetector, aram::OtsuCannyFittingDetector, and aram::AdaptiveThreshDetector.

cv::Mat & aram::IROIDetector::load ( std::string  name)
protected

Load a frame, throw ARAMException if this frame doesn't exist

Parameters
[in]std::stringname unique name to load
void aram::IROIDetector::save ( std::string  name,
cv::Mat &  mat 
)
protected

Save a frame

Parameters
[in]std::stringname unique name to store a frame
[in]constcv::Mat &mat frame to store

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