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


Abstract base class for shape distance algorithms. 更多...

#include <opencv2/shape/shape_distance.hpp>

Inheritance diagram for cv::ShapeDistanceExtractor:
cv::Algorithm cv::HausdorffDistanceExtractor cv::ShapeContextDistanceExtractor

Public Member Functions

virtual float computeDistance ( InputArray contour1, InputArray contour2)=0
Compute the shape distance between two shapes defined by its contours. 更多...
- 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 shape distance algorithms.

成员函数文档编制

computeDistance()

virtual float cv::ShapeDistanceExtractor::computeDistance ( InputArray contour1 ,
InputArray contour2
)
pure virtual
Python:
retval = cv.ShapeDistanceExtractor.computeDistance( contour1, contour2 )

Compute the shape distance between two shapes defined by its contours.

参数
contour1 Contour defining first shape.
contour2 Contour defining second shape.

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