BIF.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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/face.hpp"
  8. #import "face/bif.hpp"
  9. #import "opencv2/face/bif.hpp"
  10. #else
  11. #define CV_EXPORTS
  12. #endif
  13. #import <Foundation/Foundation.h>
  14. #import "Algorithm.h"
  15. @class Mat;
  16. NS_ASSUME_NONNULL_BEGIN
  17. // C++: class BIF
  18. /**
  19. * Implementation of bio-inspired features (BIF) from the paper:
  20. * Guo, Guodong, et al. "Human age estimation using bio-inspired features."
  21. * Computer Vision and Pattern Recognition, 2009. CVPR 2009.
  22. *
  23. * Member of `Face`
  24. */
  25. CV_EXPORTS @interface BIF : Algorithm
  26. #ifdef __cplusplus
  27. @property(readonly)cv::Ptr<cv::face::BIF> nativePtrBIF;
  28. #endif
  29. #ifdef __cplusplus
  30. - (instancetype)initWithNativePtr:(cv::Ptr<cv::face::BIF>)nativePtr;
  31. + (instancetype)fromNative:(cv::Ptr<cv::face::BIF>)nativePtr;
  32. #endif
  33. #pragma mark - Methods
  34. //
  35. // int cv::face::BIF::getNumBands()
  36. //
  37. /**
  38. * @return The number of filter bands used for computing BIF.
  39. */
  40. - (int)getNumBands NS_SWIFT_NAME(getNumBands());
  41. //
  42. // int cv::face::BIF::getNumRotations()
  43. //
  44. /**
  45. * @return The number of image rotations.
  46. */
  47. - (int)getNumRotations NS_SWIFT_NAME(getNumRotations());
  48. //
  49. // void cv::face::BIF::compute(Mat image, Mat& features)
  50. //
  51. /**
  52. * Computes features sby input image.
  53. * @param image Input image (CV_32FC1).
  54. * @param features Feature vector (CV_32FC1).
  55. */
  56. - (void)compute:(Mat*)image features:(Mat*)features NS_SWIFT_NAME(compute(image:features:));
  57. //
  58. // static Ptr_BIF cv::face::BIF::create(int num_bands = 8, int num_rotations = 12)
  59. //
  60. /**
  61. * @param num_bands The number of filter bands (<=8) used for computing BIF.
  62. * @param num_rotations The number of image rotations for computing BIF.
  63. * @return Object for computing BIF.
  64. */
  65. + (BIF*)create:(int)num_bands num_rotations:(int)num_rotations NS_SWIFT_NAME(create(num_bands:num_rotations:));
  66. /**
  67. * @param num_bands The number of filter bands (<=8) used for computing BIF.
  68. * @return Object for computing BIF.
  69. */
  70. + (BIF*)create:(int)num_bands NS_SWIFT_NAME(create(num_bands:));
  71. /**
  72. * @return Object for computing BIF.
  73. */
  74. + (BIF*)create NS_SWIFT_NAME(create());
  75. @end
  76. NS_ASSUME_NONNULL_END