OpenCV  2.4.13
Open Source Computer Vision
cv::MSER Class Reference

#include <features2d.hpp>

Inheritance diagram for cv::MSER:
cv::FeatureDetector cv::Algorithm

Public Member Functions

 MSER (int _delta=5, int _min_area=60, int _max_area=14400, double _max_variation=0.25, double _min_diversity=.2, int _max_evolution=200, double _area_threshold=1.01, double _min_margin=0.003, int _edge_blur_size=5)
 the full constructor More...
 
void operator() (const Mat &image, CV_OUT vector< vector< Point > > &msers, const Mat &mask=Mat()) const
 the operator that extracts the MSERs from the image or the specific part of it More...
 
AlgorithmInfoinfo () const
 
- 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)
 

Protected Member Functions

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

Protected Attributes

int delta
 
int minArea
 
int maxArea
 
double maxVariation
 
double minDiversity
 
int maxEvolution
 
double areaThreshold
 
double minMargin
 
int edgeBlurSize
 

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::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

Maximal Stable Extremal Regions class.

The class implements MSER algorithm introduced by J. Matas. Unlike SIFT, SURF and many other detectors in OpenCV, this is salient region detector, not the salient point detector.

It returns the regions, each of those is encoded as a contour.

Constructor & Destructor Documentation

cv::MSER::MSER ( int  _delta = 5,
int  _min_area = 60,
int  _max_area = 14400,
double  _max_variation = 0.25,
double  _min_diversity = .2,
int  _max_evolution = 200,
double  _area_threshold = 1.01,
double  _min_margin = 0.003,
int  _edge_blur_size = 5 
)
explicit

the full constructor

Member Function Documentation

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

Implements cv::FeatureDetector.

AlgorithmInfo* cv::MSER::info ( ) const
virtual

Reimplemented from cv::Algorithm.

void cv::MSER::operator() ( const Mat image,
CV_OUT vector< vector< Point > > &  msers,
const Mat mask = Mat() 
) const

the operator that extracts the MSERs from the image or the specific part of it

Member Data Documentation

double cv::MSER::areaThreshold
protected
int cv::MSER::delta
protected
int cv::MSER::edgeBlurSize
protected
int cv::MSER::maxArea
protected
int cv::MSER::maxEvolution
protected
double cv::MSER::maxVariation
protected
int cv::MSER::minArea
protected
double cv::MSER::minDiversity
protected
double cv::MSER::minMargin
protected

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