OpenCV  2.4.13.7
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

§ AlgorithmInfo()

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

§ ~AlgorithmInfo()

cv::AlgorithmInfo::~AlgorithmInfo ( )

Member Function Documentation

§ addParam() [1/14]

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() 
)

§ addParam() [2/14]

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() 
)

§ addParam() [3/14]

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() 
)

§ addParam() [4/14]

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() 
)

§ addParam() [5/14]

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() 
)

§ addParam() [6/14]

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() 
)

§ addParam() [7/14]

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() 
)

§ addParam() [8/14]

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() 
)

§ addParam() [9/14]

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() 
)

§ addParam() [10/14]

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() 
)

§ addParam() [11/14]

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() 
)

§ addParam() [12/14]

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() 
)

§ addParam() [13/14]

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

§ addParam() [14/14]

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

§ addParam_()

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() 
)

§ get()

void cv::AlgorithmInfo::get ( const Algorithm algo,
const char *  name,
int  argType,
void value 
) const

§ getParams()

void cv::AlgorithmInfo::getParams ( vector< string > &  names) const

§ name()

string cv::AlgorithmInfo::name ( ) const

§ paramHelp()

string cv::AlgorithmInfo::paramHelp ( const char *  name) const

§ paramType()

int cv::AlgorithmInfo::paramType ( const char *  name) const

§ read()

void cv::AlgorithmInfo::read ( Algorithm algo,
const FileNode fn 
) const

§ set()

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

§ write()

void cv::AlgorithmInfo::write ( const Algorithm algo,
FileStorage fs 
) const

Friends And Related Function Documentation

§ Algorithm

friend class Algorithm
friend

Member Data Documentation

§ data

AlgorithmInfoData* cv::AlgorithmInfo::data
protected

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