Img_hash.h 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  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/img_hash.hpp"
  8. #else
  9. #define CV_EXPORTS
  10. #endif
  11. #import <Foundation/Foundation.h>
  12. @class Mat;
  13. // C++: enum BlockMeanHashMode (cv.img_hash.BlockMeanHashMode)
  14. typedef NS_ENUM(int, BlockMeanHashMode) {
  15. BLOCK_MEAN_HASH_MODE_0 = 0,
  16. BLOCK_MEAN_HASH_MODE_1 = 1
  17. };
  18. NS_ASSUME_NONNULL_BEGIN
  19. // C++: class Img_hash
  20. /**
  21. * The Img_hash module
  22. *
  23. * Member classes: `AverageHash`, `ColorMomentHash`, `RadialVarianceHash`, `PHash`, `ImgHashBase`, `MarrHildrethHash`, `BlockMeanHash`
  24. *
  25. * Member enums: `BlockMeanHashMode`
  26. */
  27. CV_EXPORTS @interface Img_hash : NSObject
  28. #pragma mark - Methods
  29. //
  30. // void cv::img_hash::averageHash(Mat inputArr, Mat& outputArr)
  31. //
  32. /**
  33. * Calculates img_hash::AverageHash in one call
  34. * @param inputArr input image want to compute hash value, type should be CV_8UC4, CV_8UC3 or CV_8UC1.
  35. * @param outputArr Hash value of input, it will contain 16 hex decimal number, return type is CV_8U
  36. */
  37. + (void)averageHash:(Mat*)inputArr outputArr:(Mat*)outputArr NS_SWIFT_NAME(averageHash(inputArr:outputArr:));
  38. //
  39. // void cv::img_hash::colorMomentHash(Mat inputArr, Mat& outputArr)
  40. //
  41. /**
  42. * Computes color moment hash of the input, the algorithm
  43. * is come from the paper "Perceptual Hashing for Color Images
  44. * Using Invariant Moments"
  45. * @param inputArr input image want to compute hash value,
  46. * type should be CV_8UC4, CV_8UC3 or CV_8UC1.
  47. * @param outputArr 42 hash values with type CV_64F(double)
  48. */
  49. + (void)colorMomentHash:(Mat*)inputArr outputArr:(Mat*)outputArr NS_SWIFT_NAME(colorMomentHash(inputArr:outputArr:));
  50. //
  51. // void cv::img_hash::radialVarianceHash(Mat inputArr, Mat& outputArr, double sigma = 1, int numOfAngleLine = 180)
  52. //
  53. /**
  54. * Computes radial variance hash of the input image
  55. * @param inputArr input image want to compute hash value,
  56. * type should be CV_8UC4, CV_8UC3, CV_8UC1.
  57. * @param outputArr Hash value of input
  58. * @param sigma Gaussian kernel standard deviation
  59. * @param numOfAngleLine The number of angles to consider
  60. */
  61. + (void)radialVarianceHash:(Mat*)inputArr outputArr:(Mat*)outputArr sigma:(double)sigma numOfAngleLine:(int)numOfAngleLine NS_SWIFT_NAME(radialVarianceHash(inputArr:outputArr:sigma:numOfAngleLine:));
  62. /**
  63. * Computes radial variance hash of the input image
  64. * @param inputArr input image want to compute hash value,
  65. * type should be CV_8UC4, CV_8UC3, CV_8UC1.
  66. * @param outputArr Hash value of input
  67. * @param sigma Gaussian kernel standard deviation
  68. */
  69. + (void)radialVarianceHash:(Mat*)inputArr outputArr:(Mat*)outputArr sigma:(double)sigma NS_SWIFT_NAME(radialVarianceHash(inputArr:outputArr:sigma:));
  70. /**
  71. * Computes radial variance hash of the input image
  72. * @param inputArr input image want to compute hash value,
  73. * type should be CV_8UC4, CV_8UC3, CV_8UC1.
  74. * @param outputArr Hash value of input
  75. */
  76. + (void)radialVarianceHash:(Mat*)inputArr outputArr:(Mat*)outputArr NS_SWIFT_NAME(radialVarianceHash(inputArr:outputArr:));
  77. //
  78. // void cv::img_hash::pHash(Mat inputArr, Mat& outputArr)
  79. //
  80. /**
  81. * Computes pHash value of the input image
  82. * @param inputArr input image want to compute hash value,
  83. * type should be CV_8UC4, CV_8UC3, CV_8UC1.
  84. * @param outputArr Hash value of input, it will contain 8 uchar value
  85. */
  86. + (void)pHash:(Mat*)inputArr outputArr:(Mat*)outputArr NS_SWIFT_NAME(pHash(inputArr:outputArr:));
  87. //
  88. // void cv::img_hash::marrHildrethHash(Mat inputArr, Mat& outputArr, float alpha = 2.0f, float scale = 1.0f)
  89. //
  90. /**
  91. * Computes average hash value of the input image
  92. * @param inputArr input image want to compute hash value,
  93. * type should be CV_8UC4, CV_8UC3, CV_8UC1.
  94. * @param outputArr Hash value of input, it will contain 16 hex
  95. * decimal number, return type is CV_8U
  96. * @param alpha int scale factor for marr wavelet (default=2).
  97. * @param scale int level of scale factor (default = 1)
  98. */
  99. + (void)marrHildrethHash:(Mat*)inputArr outputArr:(Mat*)outputArr alpha:(float)alpha scale:(float)scale NS_SWIFT_NAME(marrHildrethHash(inputArr:outputArr:alpha:scale:));
  100. /**
  101. * Computes average hash value of the input image
  102. * @param inputArr input image want to compute hash value,
  103. * type should be CV_8UC4, CV_8UC3, CV_8UC1.
  104. * @param outputArr Hash value of input, it will contain 16 hex
  105. * decimal number, return type is CV_8U
  106. * @param alpha int scale factor for marr wavelet (default=2).
  107. */
  108. + (void)marrHildrethHash:(Mat*)inputArr outputArr:(Mat*)outputArr alpha:(float)alpha NS_SWIFT_NAME(marrHildrethHash(inputArr:outputArr:alpha:));
  109. /**
  110. * Computes average hash value of the input image
  111. * @param inputArr input image want to compute hash value,
  112. * type should be CV_8UC4, CV_8UC3, CV_8UC1.
  113. * @param outputArr Hash value of input, it will contain 16 hex
  114. * decimal number, return type is CV_8U
  115. */
  116. + (void)marrHildrethHash:(Mat*)inputArr outputArr:(Mat*)outputArr NS_SWIFT_NAME(marrHildrethHash(inputArr:outputArr:));
  117. //
  118. // void cv::img_hash::blockMeanHash(Mat inputArr, Mat& outputArr, int mode = BLOCK_MEAN_HASH_MODE_0)
  119. //
  120. /**
  121. * Computes block mean hash of the input image
  122. * @param inputArr input image want to compute hash value, type should be CV_8UC4, CV_8UC3 or CV_8UC1.
  123. * @param outputArr Hash value of input, it will contain 16 hex decimal number, return type is CV_8U
  124. * @param mode the mode
  125. */
  126. + (void)blockMeanHash:(Mat*)inputArr outputArr:(Mat*)outputArr mode:(int)mode NS_SWIFT_NAME(blockMeanHash(inputArr:outputArr:mode:));
  127. /**
  128. * Computes block mean hash of the input image
  129. * @param inputArr input image want to compute hash value, type should be CV_8UC4, CV_8UC3 or CV_8UC1.
  130. * @param outputArr Hash value of input, it will contain 16 hex decimal number, return type is CV_8U
  131. */
  132. + (void)blockMeanHash:(Mat*)inputArr outputArr:(Mat*)outputArr NS_SWIFT_NAME(blockMeanHash(inputArr:outputArr:));
  133. @end
  134. NS_ASSUME_NONNULL_END