an detector adjuster optimized for image sequences (video). Use this Adjuster with the DynamicAdaptedFeatureDetector. It lets you set the increase/decrease factor for faster adaptation. It works for SURF, SIFT, FAST and the adjustable ORB variant "AORB" which exposes its FAST threshold. More...
#include <feature_adjuster.h>
Public Member Functions | |
virtual cv::Ptr < cv::AdjusterAdapter > | clone () const |
DetectorAdjuster (const char *detector_name, double initial_thresh=200.f, double min_thresh=2, double max_thresh=10000, double increase_factor=1.3, double decrease_factor=0.7) | |
Initial values are for SURF detector. | |
virtual bool | good () const |
void | setDecreaseFactor (double new_factor) |
void | setIncreaseFactor (double new_factor) |
virtual void | tooFew (int minv, int n_detected) |
virtual void | tooMany (int maxv, int n_detected) |
Protected Member Functions | |
virtual void | detectImpl (const cv::Mat &image, std::vector< cv::KeyPoint > &keypoints, const cv::Mat &mask=cv::Mat()) const |
Protected Attributes | |
double | decrease_factor_ |
const char * | detector_name_ |
double | increase_factor_ |
double | max_thresh_ |
double | min_thresh_ |
double | thresh_ |
an detector adjuster optimized for image sequences (video). Use this Adjuster with the DynamicAdaptedFeatureDetector. It lets you set the increase/decrease factor for faster adaptation. It works for SURF, SIFT, FAST and the adjustable ORB variant "AORB" which exposes its FAST threshold.
Definition at line 11 of file feature_adjuster.h.
DetectorAdjuster::DetectorAdjuster | ( | const char * | detector_name, |
double | initial_thresh = 200.f , |
||
double | min_thresh = 2 , |
||
double | max_thresh = 10000 , |
||
double | increase_factor = 1.3 , |
||
double | decrease_factor = 0.7 |
||
) |
Initial values are for SURF detector.
Definition at line 58 of file feature_adjuster.cpp.
Ptr< AdjusterAdapter > DetectorAdjuster::clone | ( | ) | const [virtual] |
Definition at line 151 of file feature_adjuster.cpp.
void DetectorAdjuster::detectImpl | ( | const cv::Mat & | image, |
std::vector< cv::KeyPoint > & | keypoints, | ||
const cv::Mat & | mask = cv::Mat() |
||
) | const [protected, virtual] |
Definition at line 85 of file feature_adjuster.cpp.
bool DetectorAdjuster::good | ( | ) | const [virtual] |
Definition at line 146 of file feature_adjuster.cpp.
void DetectorAdjuster::setDecreaseFactor | ( | double | new_factor | ) |
Definition at line 123 of file feature_adjuster.cpp.
void DetectorAdjuster::setIncreaseFactor | ( | double | new_factor | ) |
Definition at line 126 of file feature_adjuster.cpp.
void DetectorAdjuster::tooFew | ( | int | minv, |
int | n_detected | ||
) | [virtual] |
Definition at line 130 of file feature_adjuster.cpp.
void DetectorAdjuster::tooMany | ( | int | maxv, |
int | n_detected | ||
) | [virtual] |
Definition at line 137 of file feature_adjuster.cpp.
double DetectorAdjuster::decrease_factor_ [protected] |
Definition at line 29 of file feature_adjuster.h.
const char* DetectorAdjuster::detector_name_ [protected] |
Definition at line 30 of file feature_adjuster.h.
double DetectorAdjuster::increase_factor_ [protected] |
Definition at line 29 of file feature_adjuster.h.
double DetectorAdjuster::max_thresh_ [protected] |
Definition at line 28 of file feature_adjuster.h.
double DetectorAdjuster::min_thresh_ [protected] |
Definition at line 28 of file feature_adjuster.h.
double DetectorAdjuster::thresh_ [protected] |
Definition at line 28 of file feature_adjuster.h.