ImgHashBase.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. #import "opencv2/img_hash/img_hash_base.hpp"
  9. #else
  10. #define CV_EXPORTS
  11. #endif
  12. #import <Foundation/Foundation.h>
  13. #import "Algorithm.h"
  14. @class Mat;
  15. NS_ASSUME_NONNULL_BEGIN
  16. // C++: class ImgHashBase
  17. /**
  18. * The base class for image hash algorithms
  19. *
  20. * Member of `Img_hash`
  21. */
  22. CV_EXPORTS @interface ImgHashBase : Algorithm
  23. #ifdef __cplusplus
  24. @property(readonly)cv::Ptr<cv::img_hash::ImgHashBase> nativePtrImgHashBase;
  25. #endif
  26. #ifdef __cplusplus
  27. - (instancetype)initWithNativePtr:(cv::Ptr<cv::img_hash::ImgHashBase>)nativePtr;
  28. + (instancetype)fromNative:(cv::Ptr<cv::img_hash::ImgHashBase>)nativePtr;
  29. #endif
  30. #pragma mark - Methods
  31. //
  32. // void cv::img_hash::ImgHashBase::compute(Mat inputArr, Mat& outputArr)
  33. //
  34. /**
  35. * Computes hash of the input image
  36. * @param inputArr input image want to compute hash value
  37. * @param outputArr hash of the image
  38. */
  39. - (void)compute:(Mat*)inputArr outputArr:(Mat*)outputArr NS_SWIFT_NAME(compute(inputArr:outputArr:));
  40. //
  41. // double cv::img_hash::ImgHashBase::compare(Mat hashOne, Mat hashTwo)
  42. //
  43. /**
  44. * Compare the hash value between inOne and inTwo
  45. * @param hashOne Hash value one
  46. * @param hashTwo Hash value two
  47. * @return value indicate similarity between inOne and inTwo, the meaning
  48. * of the value vary from algorithms to algorithms
  49. */
  50. - (double)compare:(Mat*)hashOne hashTwo:(Mat*)hashTwo NS_SWIFT_NAME(compare(hashOne:hashTwo:));
  51. @end
  52. NS_ASSUME_NONNULL_END