#include <AdaptiveThreshDetector.hpp>
Public Member Functions | |
AdaptiveThreshDetector (FrameSet *fs) | |
void | findROI (vecROI *rois) |
void | operator() (vecROI *rois) |
float | epsilon () const |
void | epsilon (float e) |
int | blockSize () const |
void | blockSize (int n) |
double | adaptiveConstant () const |
void | adaptiveConstant (double c) |
double | minPerimeter () const |
void | minPerimeter (double p) |
Public Member Functions inherited from aram::IROIDetector | |
IROIDetector (FrameSet *fs) | |
Additional Inherited Members | |
Protected Member Functions inherited from aram::IROIDetector | |
void | save (std::string name, cv::Mat &mat) |
cv::Mat & | load (std::string name) |
bool | exist (std::string name) |
Detection of ROI based on edge finding, using Canny operator to detect contour. The same detector can be used with threshold operation to detect contour. Threshold is faster, but isn't robust against illumination issues.
aram::AdaptiveThreshDetector::AdaptiveThreshDetector | ( | FrameSet * | fs | ) |
double aram::AdaptiveThreshDetector::adaptiveConstant | ( | ) | const |
constant getter
void aram::AdaptiveThreshDetector::adaptiveConstant | ( | double | c | ) |
constant setter
[in] | double | c adaptive threshold parameter (see openCV doc) |
int aram::AdaptiveThreshDetector::blockSize | ( | ) | const |
blockSize getter
void aram::AdaptiveThreshDetector::blockSize | ( | int | n | ) |
blockSize setter
[in] | int | n threshold kernel size (n x n) |
float aram::AdaptiveThreshDetector::epsilon | ( | ) | const |
epsilon getter
void aram::AdaptiveThreshDetector::epsilon | ( | float | e | ) |
epsilon setter
[in] | float | epsilon |
|
virtual |
double aram::AdaptiveThreshDetector::minPerimeter | ( | ) | const |
minPerimeter getter
void aram::AdaptiveThreshDetector::minPerimeter | ( | double | p | ) |
minPerimeter setter
[in] | double | p minimum perimeter value to be a ROI |