152 lines
3.1 KiB
Objective-C
152 lines
3.1 KiB
Objective-C
//
|
|
// This file is auto-generated. Please don't modify it!
|
|
//
|
|
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
//#import "opencv.hpp"
|
|
#import "opencv2/ml.hpp"
|
|
#else
|
|
#define CV_EXPORTS
|
|
#endif
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import "DTrees.h"
|
|
|
|
|
|
|
|
|
|
// C++: enum Types (cv.ml.Boost.Types)
|
|
typedef NS_ENUM(int, Types) {
|
|
Boost_DISCRETE NS_SWIFT_NAME(DISCRETE) = 0,
|
|
Boost_REAL NS_SWIFT_NAME(REAL) = 1,
|
|
Boost_LOGIT NS_SWIFT_NAME(LOGIT) = 2,
|
|
Boost_GENTLE NS_SWIFT_NAME(GENTLE) = 3
|
|
};
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
// C++: class Boost
|
|
/**
|
|
* Boosted tree classifier derived from DTrees
|
|
*
|
|
* @see REF: ml_intro_boost
|
|
*
|
|
* Member of `Ml`
|
|
*/
|
|
CV_EXPORTS @interface Boost : DTrees
|
|
|
|
|
|
#ifdef __cplusplus
|
|
@property(readonly)cv::Ptr<cv::ml::Boost> nativePtrBoost;
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
- (instancetype)initWithNativePtr:(cv::Ptr<cv::ml::Boost>)nativePtr;
|
|
+ (instancetype)fromNative:(cv::Ptr<cv::ml::Boost>)nativePtr;
|
|
#endif
|
|
|
|
|
|
#pragma mark - Methods
|
|
|
|
|
|
//
|
|
// int cv::ml::Boost::getBoostType()
|
|
//
|
|
/**
|
|
* @see `-setBoostType:`
|
|
*/
|
|
- (int)getBoostType NS_SWIFT_NAME(getBoostType());
|
|
|
|
|
|
//
|
|
// void cv::ml::Boost::setBoostType(int val)
|
|
//
|
|
/**
|
|
* getBoostType @see `-getBoostType:`
|
|
*/
|
|
- (void)setBoostType:(int)val NS_SWIFT_NAME(setBoostType(val:));
|
|
|
|
|
|
//
|
|
// int cv::ml::Boost::getWeakCount()
|
|
//
|
|
/**
|
|
* @see `-setWeakCount:`
|
|
*/
|
|
- (int)getWeakCount NS_SWIFT_NAME(getWeakCount());
|
|
|
|
|
|
//
|
|
// void cv::ml::Boost::setWeakCount(int val)
|
|
//
|
|
/**
|
|
* getWeakCount @see `-getWeakCount:`
|
|
*/
|
|
- (void)setWeakCount:(int)val NS_SWIFT_NAME(setWeakCount(val:));
|
|
|
|
|
|
//
|
|
// double cv::ml::Boost::getWeightTrimRate()
|
|
//
|
|
/**
|
|
* @see `-setWeightTrimRate:`
|
|
*/
|
|
- (double)getWeightTrimRate NS_SWIFT_NAME(getWeightTrimRate());
|
|
|
|
|
|
//
|
|
// void cv::ml::Boost::setWeightTrimRate(double val)
|
|
//
|
|
/**
|
|
* getWeightTrimRate @see `-getWeightTrimRate:`
|
|
*/
|
|
- (void)setWeightTrimRate:(double)val NS_SWIFT_NAME(setWeightTrimRate(val:));
|
|
|
|
|
|
//
|
|
// static Ptr_Boost cv::ml::Boost::create()
|
|
//
|
|
/**
|
|
* Creates the empty model.
|
|
* Use StatModel::train to train the model, Algorithm::load\<Boost\>(filename) to load the pre-trained model.
|
|
*/
|
|
+ (Boost*)create NS_SWIFT_NAME(create());
|
|
|
|
|
|
//
|
|
// static Ptr_Boost cv::ml::Boost::load(String filepath, String nodeName = String())
|
|
//
|
|
/**
|
|
* Loads and creates a serialized Boost from a file
|
|
*
|
|
* Use Boost::save to serialize and store an RTree to disk.
|
|
* Load the Boost from this file again, by calling this function with the path to the file.
|
|
* Optionally specify the node for the file containing the classifier
|
|
*
|
|
* @param filepath path to serialized Boost
|
|
* @param nodeName name of node containing the classifier
|
|
*/
|
|
+ (Boost*)load:(NSString*)filepath nodeName:(NSString*)nodeName NS_SWIFT_NAME(load(filepath:nodeName:));
|
|
|
|
/**
|
|
* Loads and creates a serialized Boost from a file
|
|
*
|
|
* Use Boost::save to serialize and store an RTree to disk.
|
|
* Load the Boost from this file again, by calling this function with the path to the file.
|
|
* Optionally specify the node for the file containing the classifier
|
|
*
|
|
* @param filepath path to serialized Boost
|
|
*/
|
|
+ (Boost*)load:(NSString*)filepath NS_SWIFT_NAME(load(filepath:));
|
|
|
|
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|
|
|
|
|