123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201 |
- //
- // This file is auto-generated. Please don't modify it!
- //
- #pragma once
- #ifdef __cplusplus
- //#import "opencv.hpp"
- #import "opencv2/features2d.hpp"
- #else
- #define CV_EXPORTS
- #endif
- #import <Foundation/Foundation.h>
- #import "Algorithm.h"
- @class KeyPoint;
- @class Mat;
- NS_ASSUME_NONNULL_BEGIN
- // C++: class Feature2D
- /**
- * Abstract base class for 2D image feature detectors and descriptor extractors
- *
- * Member of `Features2d`
- */
- CV_EXPORTS @interface Feature2D : Algorithm
- #ifdef __cplusplus
- @property(readonly)cv::Ptr<cv::Feature2D> nativePtrFeature2D;
- #endif
- #ifdef __cplusplus
- - (instancetype)initWithNativePtr:(cv::Ptr<cv::Feature2D>)nativePtr;
- + (instancetype)fromNative:(cv::Ptr<cv::Feature2D>)nativePtr;
- #endif
- #pragma mark - Methods
- //
- // void cv::Feature2D::detect(Mat image, vector_KeyPoint& keypoints, Mat mask = Mat())
- //
- /**
- * Detects keypoints in an image (first variant) or image set (second variant).
- *
- * @param image Image.
- * @param keypoints The detected keypoints. In the second variant of the method keypoints[i] is a set
- * of keypoints detected in images[i] .
- * @param mask Mask specifying where to look for keypoints (optional). It must be a 8-bit integer
- * matrix with non-zero values in the region of interest.
- */
- - (void)detect:(Mat*)image keypoints:(NSMutableArray<KeyPoint*>*)keypoints mask:(Mat*)mask NS_SWIFT_NAME(detect(image:keypoints:mask:));
- /**
- * Detects keypoints in an image (first variant) or image set (second variant).
- *
- * @param image Image.
- * @param keypoints The detected keypoints. In the second variant of the method keypoints[i] is a set
- * of keypoints detected in images[i] .
- * matrix with non-zero values in the region of interest.
- */
- - (void)detect:(Mat*)image keypoints:(NSMutableArray<KeyPoint*>*)keypoints NS_SWIFT_NAME(detect(image:keypoints:));
- //
- // void cv::Feature2D::detect(vector_Mat images, vector_vector_KeyPoint& keypoints, vector_Mat masks = vector_Mat())
- //
- /**
- *
- * @param images Image set.
- * @param keypoints The detected keypoints. In the second variant of the method keypoints[i] is a set
- * of keypoints detected in images[i] .
- * @param masks Masks for each input image specifying where to look for keypoints (optional).
- * masks[i] is a mask for images[i].
- */
- - (void)detect2:(NSArray<Mat*>*)images keypoints:(NSMutableArray<NSMutableArray<KeyPoint*>*>*)keypoints masks:(NSArray<Mat*>*)masks NS_SWIFT_NAME(detect(images:keypoints:masks:));
- /**
- *
- * @param images Image set.
- * @param keypoints The detected keypoints. In the second variant of the method keypoints[i] is a set
- * of keypoints detected in images[i] .
- * masks[i] is a mask for images[i].
- */
- - (void)detect2:(NSArray<Mat*>*)images keypoints:(NSMutableArray<NSMutableArray<KeyPoint*>*>*)keypoints NS_SWIFT_NAME(detect(images:keypoints:));
- //
- // void cv::Feature2D::compute(Mat image, vector_KeyPoint& keypoints, Mat& descriptors)
- //
- /**
- * Computes the descriptors for a set of keypoints detected in an image (first variant) or image set
- * (second variant).
- *
- * @param image Image.
- * @param keypoints Input collection of keypoints. Keypoints for which a descriptor cannot be
- * computed are removed. Sometimes new keypoints can be added, for example: SIFT duplicates keypoint
- * with several dominant orientations (for each orientation).
- * @param descriptors Computed descriptors. In the second variant of the method descriptors[i] are
- * descriptors computed for a keypoints[i]. Row j is the keypoints (or keypoints[i]) is the
- * descriptor for keypoint j-th keypoint.
- */
- - (void)compute:(Mat*)image keypoints:(NSMutableArray<KeyPoint*>*)keypoints descriptors:(Mat*)descriptors NS_SWIFT_NAME(compute(image:keypoints:descriptors:));
- //
- // void cv::Feature2D::compute(vector_Mat images, vector_vector_KeyPoint& keypoints, vector_Mat& descriptors)
- //
- /**
- *
- *
- * @param images Image set.
- * @param keypoints Input collection of keypoints. Keypoints for which a descriptor cannot be
- * computed are removed. Sometimes new keypoints can be added, for example: SIFT duplicates keypoint
- * with several dominant orientations (for each orientation).
- * @param descriptors Computed descriptors. In the second variant of the method descriptors[i] are
- * descriptors computed for a keypoints[i]. Row j is the keypoints (or keypoints[i]) is the
- * descriptor for keypoint j-th keypoint.
- */
- - (void)compute2:(NSArray<Mat*>*)images keypoints:(NSMutableArray<NSMutableArray<KeyPoint*>*>*)keypoints descriptors:(NSMutableArray<Mat*>*)descriptors NS_SWIFT_NAME(compute(images:keypoints:descriptors:));
- //
- // void cv::Feature2D::detectAndCompute(Mat image, Mat mask, vector_KeyPoint& keypoints, Mat& descriptors, bool useProvidedKeypoints = false)
- //
- /**
- * Detects keypoints and computes the descriptors
- */
- - (void)detectAndCompute:(Mat*)image mask:(Mat*)mask keypoints:(NSMutableArray<KeyPoint*>*)keypoints descriptors:(Mat*)descriptors useProvidedKeypoints:(BOOL)useProvidedKeypoints NS_SWIFT_NAME(detectAndCompute(image:mask:keypoints:descriptors:useProvidedKeypoints:));
- /**
- * Detects keypoints and computes the descriptors
- */
- - (void)detectAndCompute:(Mat*)image mask:(Mat*)mask keypoints:(NSMutableArray<KeyPoint*>*)keypoints descriptors:(Mat*)descriptors NS_SWIFT_NAME(detectAndCompute(image:mask:keypoints:descriptors:));
- //
- // int cv::Feature2D::descriptorSize()
- //
- - (int)descriptorSize NS_SWIFT_NAME(descriptorSize());
- //
- // int cv::Feature2D::descriptorType()
- //
- - (int)descriptorType NS_SWIFT_NAME(descriptorType());
- //
- // int cv::Feature2D::defaultNorm()
- //
- - (int)defaultNorm NS_SWIFT_NAME(defaultNorm());
- //
- // void cv::Feature2D::write(String fileName)
- //
- - (void)write:(NSString*)fileName NS_SWIFT_NAME(write(fileName:));
- //
- // void cv::Feature2D::read(String fileName)
- //
- - (void)read:(NSString*)fileName NS_SWIFT_NAME(read(fileName:));
- //
- // void cv::Feature2D::read(FileNode arg1)
- //
- // Unknown type 'FileNode' (I), skipping the function
- //
- // bool cv::Feature2D::empty()
- //
- - (BOOL)empty NS_SWIFT_NAME(empty());
- //
- // String cv::Feature2D::getDefaultName()
- //
- - (NSString*)getDefaultName NS_SWIFT_NAME(getDefaultName());
- //
- // void cv::Feature2D::write(Ptr_FileStorage fs, String name = String())
- //
- // Unknown type 'Ptr_FileStorage' (I), skipping the function
- @end
- NS_ASSUME_NONNULL_END
|