PCTSignaturesSQFD.h 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. //
  2. // This file is auto-generated. Please don't modify it!
  3. //
  4. #pragma once
  5. #ifdef __cplusplus
  6. //#import "opencv.hpp"
  7. #import "opencv2/xfeatures2d.hpp"
  8. #else
  9. #define CV_EXPORTS
  10. #endif
  11. #import <Foundation/Foundation.h>
  12. #import "Algorithm.h"
  13. @class FloatVector;
  14. @class Mat;
  15. NS_ASSUME_NONNULL_BEGIN
  16. // C++: class PCTSignaturesSQFD
  17. /**
  18. * Class implementing Signature Quadratic Form Distance (SQFD).
  19. * @see Christian Beecks, Merih Seran Uysal, Thomas Seidl.
  20. * Signature quadratic form distance.
  21. * In Proceedings of the ACM International Conference on Image and Video Retrieval, pages 438-445.
  22. * ACM, 2010.
  23. * CITE: BeecksUS10
  24. *
  25. * Member of `Xfeatures2d`
  26. */
  27. CV_EXPORTS @interface PCTSignaturesSQFD : Algorithm
  28. #ifdef __cplusplus
  29. @property(readonly)cv::Ptr<cv::xfeatures2d::PCTSignaturesSQFD> nativePtrPCTSignaturesSQFD;
  30. #endif
  31. #ifdef __cplusplus
  32. - (instancetype)initWithNativePtr:(cv::Ptr<cv::xfeatures2d::PCTSignaturesSQFD>)nativePtr;
  33. + (instancetype)fromNative:(cv::Ptr<cv::xfeatures2d::PCTSignaturesSQFD>)nativePtr;
  34. #endif
  35. #pragma mark - Methods
  36. //
  37. // static Ptr_PCTSignaturesSQFD cv::xfeatures2d::PCTSignaturesSQFD::create(int distanceFunction = 3, int similarityFunction = 2, float similarityParameter = 1.0f)
  38. //
  39. /**
  40. * Creates the algorithm instance using selected distance function,
  41. * similarity function and similarity function parameter.
  42. * @param distanceFunction Distance function selector. Default: L2
  43. * Available: L0_25, L0_5, L1, L2, L2SQUARED, L5, L_INFINITY
  44. * @param similarityFunction Similarity function selector. Default: HEURISTIC
  45. * Available: MINUS, GAUSSIAN, HEURISTIC
  46. * @param similarityParameter Parameter of the similarity function.
  47. */
  48. + (PCTSignaturesSQFD*)create:(int)distanceFunction similarityFunction:(int)similarityFunction similarityParameter:(float)similarityParameter NS_SWIFT_NAME(create(distanceFunction:similarityFunction:similarityParameter:));
  49. /**
  50. * Creates the algorithm instance using selected distance function,
  51. * similarity function and similarity function parameter.
  52. * @param distanceFunction Distance function selector. Default: L2
  53. * Available: L0_25, L0_5, L1, L2, L2SQUARED, L5, L_INFINITY
  54. * @param similarityFunction Similarity function selector. Default: HEURISTIC
  55. * Available: MINUS, GAUSSIAN, HEURISTIC
  56. */
  57. + (PCTSignaturesSQFD*)create:(int)distanceFunction similarityFunction:(int)similarityFunction NS_SWIFT_NAME(create(distanceFunction:similarityFunction:));
  58. /**
  59. * Creates the algorithm instance using selected distance function,
  60. * similarity function and similarity function parameter.
  61. * @param distanceFunction Distance function selector. Default: L2
  62. * Available: L0_25, L0_5, L1, L2, L2SQUARED, L5, L_INFINITY
  63. * Available: MINUS, GAUSSIAN, HEURISTIC
  64. */
  65. + (PCTSignaturesSQFD*)create:(int)distanceFunction NS_SWIFT_NAME(create(distanceFunction:));
  66. /**
  67. * Creates the algorithm instance using selected distance function,
  68. * similarity function and similarity function parameter.
  69. * Available: L0_25, L0_5, L1, L2, L2SQUARED, L5, L_INFINITY
  70. * Available: MINUS, GAUSSIAN, HEURISTIC
  71. */
  72. + (PCTSignaturesSQFD*)create NS_SWIFT_NAME(create());
  73. //
  74. // float cv::xfeatures2d::PCTSignaturesSQFD::computeQuadraticFormDistance(Mat _signature0, Mat _signature1)
  75. //
  76. /**
  77. * Computes Signature Quadratic Form Distance of two signatures.
  78. * @param _signature0 The first signature.
  79. * @param _signature1 The second signature.
  80. */
  81. - (float)computeQuadraticFormDistance:(Mat*)_signature0 _signature1:(Mat*)_signature1 NS_SWIFT_NAME(computeQuadraticFormDistance(_signature0:_signature1:));
  82. //
  83. // void cv::xfeatures2d::PCTSignaturesSQFD::computeQuadraticFormDistances(Mat sourceSignature, vector_Mat imageSignatures, vector_float distances)
  84. //
  85. /**
  86. * Computes Signature Quadratic Form Distance between the reference signature
  87. * and each of the other image signatures.
  88. * @param sourceSignature The signature to measure distance of other signatures from.
  89. * @param imageSignatures Vector of signatures to measure distance from the source signature.
  90. * @param distances Output vector of measured distances.
  91. */
  92. - (void)computeQuadraticFormDistances:(Mat*)sourceSignature imageSignatures:(NSArray<Mat*>*)imageSignatures distances:(FloatVector*)distances NS_SWIFT_NAME(computeQuadraticFormDistances(sourceSignature:imageSignatures:distances:));
  93. @end
  94. NS_ASSUME_NONNULL_END