12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- //
- // 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 "BOWTrainer.h"
- @class Mat;
- @class TermCriteria;
- NS_ASSUME_NONNULL_BEGIN
- // C++: class BOWKMeansTrainer
- /**
- * kmeans -based class to train visual vocabulary using the *bag of visual words* approach. :
- *
- * Member of `Features2d`
- */
- CV_EXPORTS @interface BOWKMeansTrainer : BOWTrainer
- #ifdef __cplusplus
- @property(readonly)cv::Ptr<cv::BOWKMeansTrainer> nativePtrBOWKMeansTrainer;
- #endif
- #ifdef __cplusplus
- - (instancetype)initWithNativePtr:(cv::Ptr<cv::BOWKMeansTrainer>)nativePtr;
- + (instancetype)fromNative:(cv::Ptr<cv::BOWKMeansTrainer>)nativePtr;
- #endif
- #pragma mark - Methods
- //
- // cv::BOWKMeansTrainer::BOWKMeansTrainer(int clusterCount, TermCriteria termcrit = TermCriteria(), int attempts = 3, int flags = KMEANS_PP_CENTERS)
- //
- /**
- * The constructor.
- *
- * @see `cv::kmeans`
- */
- - (instancetype)initWithClusterCount:(int)clusterCount termcrit:(TermCriteria*)termcrit attempts:(int)attempts flags:(int)flags;
- /**
- * The constructor.
- *
- * @see `cv::kmeans`
- */
- - (instancetype)initWithClusterCount:(int)clusterCount termcrit:(TermCriteria*)termcrit attempts:(int)attempts;
- /**
- * The constructor.
- *
- * @see `cv::kmeans`
- */
- - (instancetype)initWithClusterCount:(int)clusterCount termcrit:(TermCriteria*)termcrit;
- /**
- * The constructor.
- *
- * @see `cv::kmeans`
- */
- - (instancetype)initWithClusterCount:(int)clusterCount;
- //
- // Mat cv::BOWKMeansTrainer::cluster()
- //
- - (Mat*)cluster NS_SWIFT_NAME(cluster());
- //
- // Mat cv::BOWKMeansTrainer::cluster(Mat descriptors)
- //
- - (Mat*)cluster:(Mat*)descriptors NS_SWIFT_NAME(cluster(descriptors:));
- @end
- NS_ASSUME_NONNULL_END
|