LATCH.h 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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 "Feature2D.h"
  13. NS_ASSUME_NONNULL_BEGIN
  14. // C++: class LATCH
  15. /**
  16. * latch Class for computing the LATCH descriptor.
  17. * If you find this code useful, please add a reference to the following paper in your work:
  18. * Gil Levi and Tal Hassner, "LATCH: Learned Arrangements of Three Patch Codes", arXiv preprint arXiv:1501.03719, 15 Jan. 2015
  19. *
  20. * LATCH is a binary descriptor based on learned comparisons of triplets of image patches.
  21. *
  22. * bytes is the size of the descriptor - can be 64, 32, 16, 8, 4, 2 or 1
  23. * rotationInvariance - whether or not the descriptor should compansate for orientation changes.
  24. * half_ssd_size - the size of half of the mini-patches size. For example, if we would like to compare triplets of patches of size 7x7x
  25. * then the half_ssd_size should be (7-1)/2 = 3.
  26. * sigma - sigma value for GaussianBlur smoothing of the source image. Source image will be used without smoothing in case sigma value is 0.
  27. *
  28. * Note: the descriptor can be coupled with any keypoint extractor. The only demand is that if you use set rotationInvariance = True then
  29. * you will have to use an extractor which estimates the patch orientation (in degrees). Examples for such extractors are ORB and SIFT.
  30. *
  31. * Note: a complete example can be found under /samples/cpp/tutorial_code/xfeatures2D/latch_match.cpp
  32. *
  33. * Member of `Xfeatures2d`
  34. */
  35. CV_EXPORTS @interface LATCH : Feature2D
  36. #ifdef __cplusplus
  37. @property(readonly)cv::Ptr<cv::xfeatures2d::LATCH> nativePtrLATCH;
  38. #endif
  39. #ifdef __cplusplus
  40. - (instancetype)initWithNativePtr:(cv::Ptr<cv::xfeatures2d::LATCH>)nativePtr;
  41. + (instancetype)fromNative:(cv::Ptr<cv::xfeatures2d::LATCH>)nativePtr;
  42. #endif
  43. #pragma mark - Methods
  44. //
  45. // static Ptr_LATCH cv::xfeatures2d::LATCH::create(int bytes = 32, bool rotationInvariance = true, int half_ssd_size = 3, double sigma = 2.0)
  46. //
  47. + (LATCH*)create:(int)bytes rotationInvariance:(BOOL)rotationInvariance half_ssd_size:(int)half_ssd_size sigma:(double)sigma NS_SWIFT_NAME(create(bytes:rotationInvariance:half_ssd_size:sigma:));
  48. + (LATCH*)create:(int)bytes rotationInvariance:(BOOL)rotationInvariance half_ssd_size:(int)half_ssd_size NS_SWIFT_NAME(create(bytes:rotationInvariance:half_ssd_size:));
  49. + (LATCH*)create:(int)bytes rotationInvariance:(BOOL)rotationInvariance NS_SWIFT_NAME(create(bytes:rotationInvariance:));
  50. + (LATCH*)create:(int)bytes NS_SWIFT_NAME(create(bytes:));
  51. + (LATCH*)create NS_SWIFT_NAME(create());
  52. //
  53. // void cv::xfeatures2d::LATCH::setBytes(int bytes)
  54. //
  55. - (void)setBytes:(int)bytes NS_SWIFT_NAME(setBytes(bytes:));
  56. //
  57. // int cv::xfeatures2d::LATCH::getBytes()
  58. //
  59. - (int)getBytes NS_SWIFT_NAME(getBytes());
  60. //
  61. // void cv::xfeatures2d::LATCH::setRotationInvariance(bool rotationInvariance)
  62. //
  63. - (void)setRotationInvariance:(BOOL)rotationInvariance NS_SWIFT_NAME(setRotationInvariance(rotationInvariance:));
  64. //
  65. // bool cv::xfeatures2d::LATCH::getRotationInvariance()
  66. //
  67. - (BOOL)getRotationInvariance NS_SWIFT_NAME(getRotationInvariance());
  68. //
  69. // void cv::xfeatures2d::LATCH::setHalfSSDsize(int half_ssd_size)
  70. //
  71. - (void)setHalfSSDsize:(int)half_ssd_size NS_SWIFT_NAME(setHalfSSDsize(half_ssd_size:));
  72. //
  73. // int cv::xfeatures2d::LATCH::getHalfSSDsize()
  74. //
  75. - (int)getHalfSSDsize NS_SWIFT_NAME(getHalfSSDsize());
  76. //
  77. // void cv::xfeatures2d::LATCH::setSigma(double sigma)
  78. //
  79. - (void)setSigma:(double)sigma NS_SWIFT_NAME(setSigma(sigma:));
  80. //
  81. // double cv::xfeatures2d::LATCH::getSigma()
  82. //
  83. - (double)getSigma NS_SWIFT_NAME(getSigma());
  84. //
  85. // String cv::xfeatures2d::LATCH::getDefaultName()
  86. //
  87. - (NSString*)getDefaultName NS_SWIFT_NAME(getDefaultName());
  88. @end
  89. NS_ASSUME_NONNULL_END