PCTSignaturesSQFD
Class implementing Signature Quadratic Form Distance (SQFD).
See
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. CITE: BeecksUS10Member of Xfeatures2d
-
Creates the algorithm instance using selected distance function, similarity function and similarity function parameter.
Declaration
Objective-C
+ (nonnull PCTSignaturesSQFD *)create:(int)distanceFunction similarityFunction:(int)similarityFunction similarityParameter:(float)similarityParameter;
Swift
class func create(distanceFunction: Int32, similarityFunction: Int32, similarityParameter: Float) -> PCTSignaturesSQFD
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.
-
Creates the algorithm instance using selected distance function, similarity function and similarity function parameter.
Declaration
Objective-C
+ (nonnull PCTSignaturesSQFD *)create:(int)distanceFunction similarityFunction:(int)similarityFunction;
Swift
class func create(distanceFunction: Int32, similarityFunction: Int32) -> PCTSignaturesSQFD
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
-
Creates the algorithm instance using selected distance function, similarity function and similarity function parameter.
Declaration
Objective-C
+ (nonnull PCTSignaturesSQFD *)create:(int)distanceFunction;
Swift
class func create(distanceFunction: Int32) -> PCTSignaturesSQFD
Parameters
distanceFunction
Distance function selector. Default: L2 Available: L0_25, L0_5, L1, L2, L2SQUARED, L5, L_INFINITY Available: MINUS, GAUSSIAN, HEURISTIC
-
Creates the algorithm instance using selected distance function, similarity function and similarity function parameter. Available: L0_25, L0_5, L1, L2, L2SQUARED, L5, L_INFINITY Available: MINUS, GAUSSIAN, HEURISTIC
Declaration
Objective-C
+ (nonnull PCTSignaturesSQFD *)create;
Swift
class func create() -> PCTSignaturesSQFD
-
Computes Signature Quadratic Form Distance between the reference signature and each of the other image signatures.
Declaration
Objective-C
- (void)computeQuadraticFormDistances:(nonnull Mat *)sourceSignature imageSignatures:(nonnull NSArray<Mat *> *)imageSignatures distances:(nonnull FloatVector *)distances;
Swift
func computeQuadraticFormDistances(sourceSignature: Mat, imageSignatures: [Mat], distances: FloatVector)
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.