Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
cv::Algorithm Class Reference

Base class for high-level OpenCV algorithms. More...

#include <core.hpp>

List of all members.

Public Types

typedef Algorithm *(* Constructor )(void)

Public Member Functions

virtual ~Algorithm ()
virtual string name () const
template<typename _Tp >
_Tp get (int paramId) const
template<typename _Tp >
bool set (int paramId, const _Tp &value)
string paramName (int paramId) const
string paramHelp (int paramId) const
int paramType (int paramId) const
int findParam (const string &name) const
template<typename _Tp >
_Tp paramDefaultValue (int paramId) const
template<typename _Tp >
bool paramRange (int paramId, _Tp &minVal, _Tp &maxVal) const
virtual void getParams (vector< int > &ids) const
virtual void write (vector< uchar > &buf) const
virtual bool read (const vector< uchar > &buf)

Static Public Member Functions

static void add (const string &name, Constructor create)
static void getList (vector< string > &algorithms)
static Ptr< Algorithmcreate (const string &name)

Protected Member Functions

template<typename _Tp >
void addParam (int propId, _Tp &value, bool readOnly, const string &name, const string &help=string(), const _Tp &defaultValue=_Tp(), _Tp(Algorithm::*getter)()=0, bool(Algorithm::*setter)(const _Tp &)=0)
template<typename _Tp >
void setParamRange (int propId, const _Tp &minVal, const _Tp &maxVal)
bool set_ (int paramId, int argType, const void *value)
void get_ (int paramId, int argType, void *value)
void paramDefaultValue_ (int paramId, int argType, void *value)
void paramRange_ (int paramId, int argType, void *minval, void *maxval)
void addParam_ (int propId, int argType, void *value, bool readOnly, const string &name, const string &help, const void *defaultValue, void *getter, void *setter)
void setParamRange_ (int propId, int argType, const void *minVal, const void *maxVal)

Protected Attributes

Ptr< AlgorithmImplimpl

Detailed Description

Base class for high-level OpenCV algorithms.


Member Typedef Documentation


Constructor & Destructor Documentation

virtual cv::Algorithm::~Algorithm ( ) [virtual]

Member Function Documentation

virtual string cv::Algorithm::name ( ) const [virtual]
template<typename _Tp >
_Tp cv::Algorithm::get ( int  paramId) const
template<typename _Tp >
bool cv::Algorithm::set ( int  paramId,
const _Tp &  value 
)
string cv::Algorithm::paramName ( int  paramId) const
string cv::Algorithm::paramHelp ( int  paramId) const
int cv::Algorithm::paramType ( int  paramId) const
int cv::Algorithm::findParam ( const string &  name) const
template<typename _Tp >
_Tp cv::Algorithm::paramDefaultValue ( int  paramId) const
template<typename _Tp >
bool cv::Algorithm::paramRange ( int  paramId,
_Tp &  minVal,
_Tp &  maxVal 
) const
virtual void cv::Algorithm::getParams ( vector< int > &  ids) const [virtual]
virtual void cv::Algorithm::write ( vector< uchar > &  buf) const [virtual]
virtual bool cv::Algorithm::read ( const vector< uchar > &  buf) [virtual]
static void cv::Algorithm::add ( const string &  name,
Constructor  create 
) [static]
static void cv::Algorithm::getList ( vector< string > &  algorithms) [static]
static Ptr<Algorithm> cv::Algorithm::create ( const string &  name) [static]
template<typename _Tp >
void cv::Algorithm::addParam ( int  propId,
_Tp &  value,
bool  readOnly,
const string &  name,
const string &  help = string(),
const _Tp &  defaultValue = _Tp(),
_Tp(Algorithm::*)()  getter = 0,
bool(Algorithm::*)(const _Tp &)  setter = 0 
) [protected]
template<typename _Tp >
void cv::Algorithm::setParamRange ( int  propId,
const _Tp &  minVal,
const _Tp &  maxVal 
) [protected]
bool cv::Algorithm::set_ ( int  paramId,
int  argType,
const void value 
) [protected]
void cv::Algorithm::get_ ( int  paramId,
int  argType,
void value 
) [protected]
void cv::Algorithm::paramDefaultValue_ ( int  paramId,
int  argType,
void value 
) [protected]
void cv::Algorithm::paramRange_ ( int  paramId,
int  argType,
void minval,
void maxval 
) [protected]
void cv::Algorithm::addParam_ ( int  propId,
int  argType,
void value,
bool  readOnly,
const string &  name,
const string &  help,
const void defaultValue,
void getter,
void setter 
) [protected]
void cv::Algorithm::setParamRange_ ( int  propId,
int  argType,
const void minVal,
const void maxVal 
) [protected]

Member Data Documentation


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