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

#include <core.hpp>

Public Member Functions

 AlgorithmInfo (const string &name, Algorithm::Constructor create)
 
 ~AlgorithmInfo ()
 
void get (const Algorithm *algo, const char *name, int argType, void *value) const
 
void addParam_ (Algorithm &algo, const char *name, int argType, void *value, bool readOnly, Algorithm::Getter getter, Algorithm::Setter setter, const string &help=string())
 
string paramHelp (const char *name) const
 
int paramType (const char *name) const
 
void getParams (vector< string > &names) const
 
void write (const Algorithm *algo, FileStorage &fs) const
 
void read (Algorithm *algo, const FileNode &fn) const
 
string name () const
 
void addParam (Algorithm &algo, const char *name, int &value, bool readOnly=false, int(Algorithm::*getter)()=0, void(Algorithm::*setter)(int)=0, const string &help=string())
 
void addParam (Algorithm &algo, const char *name, short &value, bool readOnly=false, int(Algorithm::*getter)()=0, void(Algorithm::*setter)(int)=0, const string &help=string())
 
void addParam (Algorithm &algo, const char *name, bool &value, bool readOnly=false, int(Algorithm::*getter)()=0, void(Algorithm::*setter)(int)=0, const string &help=string())
 
void addParam (Algorithm &algo, const char *name, double &value, bool readOnly=false, double(Algorithm::*getter)()=0, void(Algorithm::*setter)(double)=0, const string &help=string())
 
void addParam (Algorithm &algo, const char *name, string &value, bool readOnly=false, string(Algorithm::*getter)()=0, void(Algorithm::*setter)(const string &)=0, const string &help=string())
 
void addParam (Algorithm &algo, const char *name, Mat &value, bool readOnly=false, Mat(Algorithm::*getter)()=0, void(Algorithm::*setter)(const Mat &)=0, const string &help=string())
 
void addParam (Algorithm &algo, const char *name, vector< Mat > &value, bool readOnly=false, vector< Mat >(Algorithm::*getter)()=0, void(Algorithm::*setter)(const vector< Mat > &)=0, const string &help=string())
 
void addParam (Algorithm &algo, const char *name, Ptr< Algorithm > &value, bool readOnly=false, Ptr< Algorithm >(Algorithm::*getter)()=0, void(Algorithm::*setter)(const Ptr< Algorithm > &)=0, const string &help=string())
 
void addParam (Algorithm &algo, const char *name, float &value, bool readOnly=false, float(Algorithm::*getter)()=0, void(Algorithm::*setter)(float)=0, const string &help=string())
 
void addParam (Algorithm &algo, const char *name, unsigned int &value, bool readOnly=false, unsigned int(Algorithm::*getter)()=0, void(Algorithm::*setter)(unsigned int)=0, const string &help=string())
 
void addParam (Algorithm &algo, const char *name, uint64 &value, bool readOnly=false, uint64(Algorithm::*getter)()=0, void(Algorithm::*setter)(uint64)=0, const string &help=string())
 
void addParam (Algorithm &algo, const char *name, uchar &value, bool readOnly=false, uchar(Algorithm::*getter)()=0, void(Algorithm::*setter)(uchar)=0, const string &help=string())
 
template<typename _Tp , typename _Base >
void addParam (Algorithm &algo, const char *name, Ptr< _Tp > &value, bool readOnly=false, Ptr< _Tp >(Algorithm::*getter)()=0, void(Algorithm::*setter)(const Ptr< _Tp > &)=0, const string &help=string())
 
template<typename _Tp >
void addParam (Algorithm &algo, const char *name, Ptr< _Tp > &value, bool readOnly=false, Ptr< _Tp >(Algorithm::*getter)()=0, void(Algorithm::*setter)(const Ptr< _Tp > &)=0, const string &help=string())
 

Protected Member Functions

void set (Algorithm *algo, const char *name, int argType, const void *value, bool force=false) const
 

Protected Attributes

AlgorithmInfoData * data
 

Friends

class Algorithm
 

Constructor & Destructor Documentation

cv::AlgorithmInfo::AlgorithmInfo ( const string &  name,
Algorithm::Constructor  create 
)
cv::AlgorithmInfo::~AlgorithmInfo ( )

Member Function Documentation

void cv::AlgorithmInfo::addParam ( Algorithm algo,
const char *  name,
int value,
bool  readOnly = false,
int(Algorithm::*)()  getter = 0,
void(Algorithm::*)(int setter = 0,
const string &  help = string() 
)
void cv::AlgorithmInfo::addParam ( Algorithm algo,
const char *  name,
short &  value,
bool  readOnly = false,
int(Algorithm::*)()  getter = 0,
void(Algorithm::*)(int setter = 0,
const string &  help = string() 
)
void cv::AlgorithmInfo::addParam ( Algorithm algo,
const char *  name,
bool &  value,
bool  readOnly = false,
int(Algorithm::*)()  getter = 0,
void(Algorithm::*)(int setter = 0,
const string &  help = string() 
)
void cv::AlgorithmInfo::addParam ( Algorithm algo,
const char *  name,
double &  value,
bool  readOnly = false,
double(Algorithm::*)()  getter = 0,
void(Algorithm::*)(double)  setter = 0,
const string &  help = string() 
)
void cv::AlgorithmInfo::addParam ( Algorithm algo,
const char *  name,
string &  value,
bool  readOnly = false,
string(Algorithm::*)()  getter = 0,
void(Algorithm::*)(const string &)  setter = 0,
const string &  help = string() 
)
void cv::AlgorithmInfo::addParam ( Algorithm algo,
const char *  name,
Mat value,
bool  readOnly = false,
Mat(Algorithm::*)()  getter = 0,
void(Algorithm::*)(const Mat &)  setter = 0,
const string &  help = string() 
)
void cv::AlgorithmInfo::addParam ( Algorithm algo,
const char *  name,
vector< Mat > &  value,
bool  readOnly = false,
vector< Mat >(Algorithm::*)()  getter = 0,
void(Algorithm::*)(const vector< Mat > &)  setter = 0,
const string &  help = string() 
)
void cv::AlgorithmInfo::addParam ( Algorithm algo,
const char *  name,
Ptr< Algorithm > &  value,
bool  readOnly = false,
Ptr< Algorithm >(Algorithm::*)()  getter = 0,
void(Algorithm::*)(const Ptr< Algorithm > &)  setter = 0,
const string &  help = string() 
)
void cv::AlgorithmInfo::addParam ( Algorithm algo,
const char *  name,
float &  value,
bool  readOnly = false,
float(Algorithm::*)()  getter = 0,
void(Algorithm::*)(float)  setter = 0,
const string &  help = string() 
)
void cv::AlgorithmInfo::addParam ( Algorithm algo,
const char *  name,
unsigned int value,
bool  readOnly = false,
unsigned int(Algorithm::*)()  getter = 0,
void(Algorithm::*)(unsigned int setter = 0,
const string &  help = string() 
)
void cv::AlgorithmInfo::addParam ( Algorithm algo,
const char *  name,
uint64 value,
bool  readOnly = false,
uint64(Algorithm::*)()  getter = 0,
void(Algorithm::*)(uint64 setter = 0,
const string &  help = string() 
)
void cv::AlgorithmInfo::addParam ( Algorithm algo,
const char *  name,
uchar value,
bool  readOnly = false,
uchar(Algorithm::*)()  getter = 0,
void(Algorithm::*)(uchar setter = 0,
const string &  help = string() 
)
template<typename _Tp , typename _Base >
void cv::AlgorithmInfo::addParam ( Algorithm algo,
const char *  name,
Ptr< _Tp > &  value,
bool  readOnly = false,
Ptr< _Tp >(Algorithm::*)()  getter = 0,
void(Algorithm::*)(const Ptr< _Tp > &)  setter = 0,
const string &  help = string() 
)
inline
template<typename _Tp >
void cv::AlgorithmInfo::addParam ( Algorithm algo,
const char *  name,
Ptr< _Tp > &  value,
bool  readOnly = false,
Ptr< _Tp >(Algorithm::*)()  getter = 0,
void(Algorithm::*)(const Ptr< _Tp > &)  setter = 0,
const string &  help = string() 
)
inline
void cv::AlgorithmInfo::addParam_ ( Algorithm algo,
const char *  name,
int  argType,
void value,
bool  readOnly,
Algorithm::Getter  getter,
Algorithm::Setter  setter,
const string &  help = string() 
)
void cv::AlgorithmInfo::get ( const Algorithm algo,
const char *  name,
int  argType,
void value 
) const
void cv::AlgorithmInfo::getParams ( vector< string > &  names) const
string cv::AlgorithmInfo::name ( ) const
string cv::AlgorithmInfo::paramHelp ( const char *  name) const
int cv::AlgorithmInfo::paramType ( const char *  name) const
void cv::AlgorithmInfo::read ( Algorithm algo,
const FileNode fn 
) const
void cv::AlgorithmInfo::set ( Algorithm algo,
const char *  name,
int  argType,
const void value,
bool  force = false 
) const
protected
void cv::AlgorithmInfo::write ( const Algorithm algo,
FileStorage fs 
) const

Friends And Related Function Documentation

friend class Algorithm
friend

Member Data Documentation

AlgorithmInfoData* cv::AlgorithmInfo::data
protected

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