123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- #pragma once
- #ifdef __cplusplus
- #import "opencv2/features2d.hpp"
- #else
- #define CV_EXPORTS
- #endif
- #import <Foundation/Foundation.h>
- #import "Feature2D.h"
- typedef NS_ENUM(int, AgastDetectorType) {
- AGAST_5_8 = 0,
- AGAST_7_12d = 1,
- AGAST_7_12s = 2,
- OAST_9_16 = 3
- };
- NS_ASSUME_NONNULL_BEGIN
- CV_EXPORTS @interface AgastFeatureDetector : Feature2D
- #ifdef __cplusplus
- @property(readonly)cv::Ptr<cv::AgastFeatureDetector> nativePtrAgastFeatureDetector;
- #endif
- #ifdef __cplusplus
- - (instancetype)initWithNativePtr:(cv::Ptr<cv::AgastFeatureDetector>)nativePtr;
- + (instancetype)fromNative:(cv::Ptr<cv::AgastFeatureDetector>)nativePtr;
- #endif
- #pragma mark - Class Constants
- @property (class, readonly) int THRESHOLD NS_SWIFT_NAME(THRESHOLD);
- @property (class, readonly) int NONMAX_SUPPRESSION NS_SWIFT_NAME(NONMAX_SUPPRESSION);
- #pragma mark - Methods
- + (AgastFeatureDetector*)create:(int)threshold nonmaxSuppression:(BOOL)nonmaxSuppression type:(AgastDetectorType)type NS_SWIFT_NAME(create(threshold:nonmaxSuppression:type:));
- + (AgastFeatureDetector*)create:(int)threshold nonmaxSuppression:(BOOL)nonmaxSuppression NS_SWIFT_NAME(create(threshold:nonmaxSuppression:));
- + (AgastFeatureDetector*)create:(int)threshold NS_SWIFT_NAME(create(threshold:));
- + (AgastFeatureDetector*)create NS_SWIFT_NAME(create());
- - (void)setThreshold:(int)threshold NS_SWIFT_NAME(setThreshold(threshold:));
- - (int)getThreshold NS_SWIFT_NAME(getThreshold());
- - (void)setNonmaxSuppression:(BOOL)f NS_SWIFT_NAME(setNonmaxSuppression(f:));
- - (BOOL)getNonmaxSuppression NS_SWIFT_NAME(getNonmaxSuppression());
- - (void)setType:(AgastDetectorType)type NS_SWIFT_NAME(setType(type:));
- - (AgastDetectorType)getType NS_SWIFT_NAME(getType());
- - (NSString*)getDefaultName NS_SWIFT_NAME(getDefaultName());
- @end
- NS_ASSUME_NONNULL_END
|