Class implementing Signature Quadratic Form Distance (SQFD).
More...
#include <opencv2/xfeatures2d.hpp>
|
static Ptr< PCTSignaturesSQFD > | create (const int distanceFunction=3, const int similarityFunction=2, const float similarityParameter=1.0f) |
| Creates the algorithm instance using selected distance function, similarity function and similarity function parameter.
|
|
template<typename _Tp > |
static Ptr< _Tp > | load (const String &filename, const String &objname=String()) |
| Loads algorithm from the file.
|
|
template<typename _Tp > |
static Ptr< _Tp > | loadFromString (const String &strModel, const String &objname=String()) |
| Loads algorithm from a String.
|
|
template<typename _Tp > |
static Ptr< _Tp > | read (const FileNode &fn) |
| Reads algorithm from the file node.
|
|
Class implementing Signature Quadratic Form Distance (SQFD).
- See also
- Christian Beecks, Merih Seran Uysal, Thomas Seidl. Signature quadratic form distance. In Proceedings of the ACM International Conference on Image and Video Retrieval, pages 438-445. ACM, 2010. [22]
◆ computeQuadraticFormDistance()
virtual float cv::xfeatures2d::PCTSignaturesSQFD::computeQuadraticFormDistance |
( |
InputArray | _signature0, |
|
|
InputArray | _signature1 ) const |
|
pure virtual |
Python: |
---|
| cv.xfeatures2d.PCTSignaturesSQFD.computeQuadraticFormDistance( | _signature0, _signature1 | ) -> | retval |
Computes Signature Quadratic Form Distance of two signatures.
- Parameters
-
_signature0 | The first signature. |
_signature1 | The second signature. |
◆ computeQuadraticFormDistances()
virtual void cv::xfeatures2d::PCTSignaturesSQFD::computeQuadraticFormDistances |
( |
const Mat & | sourceSignature, |
|
|
const std::vector< Mat > & | imageSignatures, |
|
|
std::vector< float > & | distances ) const |
|
pure virtual |
Python: |
---|
| cv.xfeatures2d.PCTSignaturesSQFD.computeQuadraticFormDistances( | sourceSignature, imageSignatures, distances | ) -> | None |
Computes Signature Quadratic Form Distance between the reference signature and each of the other image signatures.
- Parameters
-
sourceSignature | The signature to measure distance of other signatures from. |
imageSignatures | Vector of signatures to measure distance from the source signature. |
distances | Output vector of measured distances. |
◆ create()
static Ptr< PCTSignaturesSQFD > cv::xfeatures2d::PCTSignaturesSQFD::create |
( |
const int | distanceFunction = 3, |
|
|
const int | similarityFunction = 2, |
|
|
const float | similarityParameter = 1.0f ) |
|
static |
Python: |
---|
| cv.xfeatures2d.PCTSignaturesSQFD.create( | [, distanceFunction[, similarityFunction[, similarityParameter]]] | ) -> | retval |
| cv.xfeatures2d.PCTSignaturesSQFD_create( | [, distanceFunction[, similarityFunction[, similarityParameter]]] | ) -> | retval |
Creates the algorithm instance using selected distance function, similarity function and similarity function parameter.
- Parameters
-
distanceFunction | Distance function selector. Default: L2 Available: L0_25, L0_5, L1, L2, L2SQUARED, L5, L_INFINITY |
similarityFunction | Similarity function selector. Default: HEURISTIC Available: MINUS, GAUSSIAN, HEURISTIC |
similarityParameter | Parameter of the similarity function. |
The documentation for this class was generated from the following file: