cv::HistogramCostExtractor Class Reference abstract 形状距离和匹配

Abstract base class for histogram cost algorithms. 更多...

#include <opencv2/shape/hist_cost.hpp>

Inheritance diagram for cv::HistogramCostExtractor:
cv::Algorithm cv::ChiHistogramCostExtractor cv::EMDHistogramCostExtractor cv::EMDL1HistogramCostExtractor cv::NormHistogramCostExtractor

Public Member Functions

virtual void buildCostMatrix ( InputArray descriptors1, InputArray descriptors2, OutputArray costMatrix)=0
virtual float getDefaultCost () const =0
virtual int getNDummies () const =0
virtual void setDefaultCost (float defaultCost)=0
virtual void setNDummies (int nDummies)=0
- Public Member Functions inherited from cv::Algorithm
Algorithm ()
virtual ~Algorithm ()
virtual void clear ()
Clears the algorithm state. 更多...
virtual bool empty () const
返回 true 若 Algorithm is empty (e.g. in the very beginning or after unsuccessful read. 更多...
virtual 字符串 getDefaultName () const
virtual void read (const FileNode &fn)
Reads algorithm parameters from a file storage. 更多...
virtual void save (const 字符串 &filename) const
virtual void write ( FileStorage &fs) const
Stores algorithm parameters in a file storage. 更多...
void write (const Ptr < FileStorage > &fs, const 字符串 &name= 字符串 ()) const
simplified API for language bindings This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. 更多...


- Static Public Member Functions inherited from cv::Algorithm
template<typename _Tp >
static Ptr < _Tp > load (const 字符串 &filename, const 字符串 &objname= 字符串 ())
Loads algorithm from the file. 更多...
template<typename _Tp >
static Ptr < _Tp > loadFromString (const 字符串 &strModel, const 字符串 &objname= 字符串 ())
Loads algorithm from a String. 更多...
template<typename _Tp >
static Ptr < _Tp > read (const FileNode &fn)
Reads algorithm from the file node. 更多...
- Protected Member Functions inherited from cv::Algorithm
void writeFormat ( FileStorage &fs) const


Abstract base class for histogram cost algorithms.



virtual void cv::HistogramCostExtractor::buildCostMatrix ( InputArray descriptors1 ,
InputArray descriptors2 ,
OutputArray costMatrix
pure virtual
costMatrix = cv.HistogramCostExtractor.buildCostMatrix( descriptors1, descriptors2[, costMatrix] )


virtual float cv::HistogramCostExtractor::getDefaultCost ( ) const
pure virtual
retval = cv.HistogramCostExtractor.getDefaultCost( )


virtual int cv::HistogramCostExtractor::getNDummies ( ) const
pure virtual
retval = cv.HistogramCostExtractor.getNDummies( )


virtual void cv::HistogramCostExtractor::setDefaultCost ( float defaultCost )
pure virtual
None = cv.HistogramCostExtractor.setDefaultCost( defaultCost )


virtual void cv::HistogramCostExtractor::setNDummies ( int nDummies )
pure virtual
None = cv.HistogramCostExtractor.setNDummies( nDummies )

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