OpenCV  2.4.13.2
Open Source Computer Vision
cv::StarAdjuster Class Reference

#include <features2d.hpp>

Inheritance diagram for cv::StarAdjuster:
cv::AdjusterAdapter cv::FeatureDetector cv::Algorithm

Public Member Functions

 StarAdjuster (double initial_thresh=30.0, double min_thresh=2., double max_thresh=200.)
 
virtual void tooFew (int minv, int n_detected)
 
virtual void tooMany (int maxv, int n_detected)
 
virtual bool good () const
 
virtual Ptr< AdjusterAdapterclone () const
 
- Public Member Functions inherited from cv::AdjusterAdapter
virtual ~AdjusterAdapter ()
 
- Public Member Functions inherited from cv::FeatureDetector
virtual ~FeatureDetector ()
 
void detect (const Mat &image, CV_OUT vector< KeyPoint > &keypoints, const Mat &mask=Mat()) const
 
void detect (const vector< Mat > &images, vector< vector< KeyPoint > > &keypoints, const vector< Mat > &masks=vector< Mat >()) const
 
virtual bool empty () const
 
- Public Member Functions inherited from cv::Algorithm
 Algorithm ()
 
virtual ~Algorithm ()
 
string name () const
 
template<typename _Tp >
ParamType< _Tp >::member_type get (const string &name) const
 
template<typename _Tp >
ParamType< _Tp >::member_type get (const char *name) const
 
int getInt (const string &name) const
 
double getDouble (const string &name) const
 
bool getBool (const string &name) const
 
string getString (const string &name) const
 
Mat getMat (const string &name) const
 
vector< MatgetMatVector (const string &name) const
 
Ptr< AlgorithmgetAlgorithm (const string &name) const
 
void set (const string &name, int value)
 
void set (const string &name, double value)
 
void set (const string &name, bool value)
 
void set (const string &name, const string &value)
 
void set (const string &name, const Mat &value)
 
void set (const string &name, const vector< Mat > &value)
 
void set (const string &name, const Ptr< Algorithm > &value)
 
template<typename _Tp >
void set (const string &name, const Ptr< _Tp > &value)
 
void setInt (const string &name, int value)
 
void setDouble (const string &name, double value)
 
void setBool (const string &name, bool value)
 
void setString (const string &name, const string &value)
 
void setMat (const string &name, const Mat &value)
 
void setMatVector (const string &name, const vector< Mat > &value)
 
void setAlgorithm (const string &name, const Ptr< Algorithm > &value)
 
template<typename _Tp >
void setAlgorithm (const string &name, const Ptr< _Tp > &value)
 
void set (const char *name, int value)
 
void set (const char *name, double value)
 
void set (const char *name, bool value)
 
void set (const char *name, const string &value)
 
void set (const char *name, const Mat &value)
 
void set (const char *name, const vector< Mat > &value)
 
void set (const char *name, const Ptr< Algorithm > &value)
 
template<typename _Tp >
void set (const char *name, const Ptr< _Tp > &value)
 
void setInt (const char *name, int value)
 
void setDouble (const char *name, double value)
 
void setBool (const char *name, bool value)
 
void setString (const char *name, const string &value)
 
void setMat (const char *name, const Mat &value)
 
void setMatVector (const char *name, const vector< Mat > &value)
 
void setAlgorithm (const char *name, const Ptr< Algorithm > &value)
 
template<typename _Tp >
void setAlgorithm (const char *name, const Ptr< _Tp > &value)
 
string paramHelp (const string &name) const
 
int paramType (const char *name) const
 
int paramType (const string &name) const
 
void getParams (CV_OUT vector< string > &names) const
 
virtual void write (FileStorage &fs) const
 
virtual void read (const FileNode &fn)
 
virtual AlgorithmInfoinfo () const
 

Protected Member Functions

virtual void detectImpl (const Mat &image, vector< KeyPoint > &keypoints, const Mat &mask=Mat()) const
 

Protected Attributes

double thresh_
 
double init_thresh_
 
double min_thresh_
 
double max_thresh_
 

Additional Inherited Members

- Public Types inherited from cv::Algorithm
typedef Algorithm *(* Constructor) (void)
 
typedef int(Algorithm::* Getter) () const
 
typedef void(Algorithm::* Setter) (int)
 
- Static Public Member Functions inherited from cv::AdjusterAdapter
static Ptr< AdjusterAdaptercreate (const string &detectorType)
 
- Static Public Member Functions inherited from cv::FeatureDetector
static Ptr< FeatureDetectorcreate (const string &detectorType)
 
- Static Public Member Functions inherited from cv::Algorithm
static void getList (CV_OUT vector< string > &algorithms)
 
static Ptr< Algorithm_create (const string &name)
 
template<typename _Tp >
static Ptr< _Tp > create (const string &name)
 
- Static Protected Member Functions inherited from cv::FeatureDetector
static void removeInvalidPoints (const Mat &mask, vector< KeyPoint > &keypoints)
 

Detailed Description

An adjuster for StarFeatureDetector, this one adjusts the responseThreshold for now TODO find a faster way to converge the parameters for Star - use CvStarDetectorParams

Constructor & Destructor Documentation

§ StarAdjuster()

cv::StarAdjuster::StarAdjuster ( double  initial_thresh = 30.0,
double  min_thresh = 2.,
double  max_thresh = 200. 
)

Member Function Documentation

§ clone()

virtual Ptr<AdjusterAdapter> cv::StarAdjuster::clone ( ) const
virtual

Implements cv::AdjusterAdapter.

§ detectImpl()

virtual void cv::StarAdjuster::detectImpl ( const Mat image,
vector< KeyPoint > &  keypoints,
const Mat mask = Mat() 
) const
protectedvirtual

Implements cv::FeatureDetector.

§ good()

virtual bool cv::StarAdjuster::good ( ) const
virtual

are params maxed out or still valid?

Returns
false if the parameters can't be adjusted any more

Implements cv::AdjusterAdapter.

§ tooFew()

virtual void cv::StarAdjuster::tooFew ( int  min,
int  n_detected 
)
virtual

too few features were detected so, adjust the detector params accordingly

Parameters
minthe minimum number of desired features
n_detectedthe number previously detected

Implements cv::AdjusterAdapter.

§ tooMany()

virtual void cv::StarAdjuster::tooMany ( int  max,
int  n_detected 
)
virtual

too many features were detected so, adjust the detector params accordingly

Parameters
maxthe maximum number of desired features
n_detectedthe number previously detected

Implements cv::AdjusterAdapter.

Member Data Documentation

§ init_thresh_

double cv::StarAdjuster::init_thresh_
protected

§ max_thresh_

double cv::StarAdjuster::max_thresh_
protected

§ min_thresh_

double cv::StarAdjuster::min_thresh_
protected

§ thresh_

double cv::StarAdjuster::thresh_
protected

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