私はObjective Cのクラスでこの方法をカスタムC++クラスを統合しようとしています:の初期化に該当するコンストラクタ - C++&Objective Cの
C++クラスのヘッダー
class Analyzer
{
public:
Analyzer(std::string const& face_cascade_url, std::string const& eyes_cascade_url, std::string const& nose_cascade_url);
};
のObjective Cヘッダー:
に@interface cvVideoWrapper : UIViewController <CvVideoCameraDelegate>
@property Analyzer analyzer;
@end
のObjective Cの実装:
@implementation cvVideoWrapper
-(void) get_ready {
NSString* face_filename = [[NSBundle mainBundle]
pathForResource:@"haarcascade_frontalface_alt2"
ofType:@"xml"];
NSString* eyes_filename = [[NSBundle mainBundle]
pathForResource:@"haarcascade_eye_tree_eyeglasses"
ofType:@"xml"];
NSString* nose_filename = [[NSBundle mainBundle]
pathForResource:@"haarcascade_mcs_nose"
ofType:@"xml"];
self.analyzer = Analyzer([face_filename UTF8String], [eyes_filename UTF8String], [nose_filename UTF8String]);
}
@end
私はObjective Cの実装では、このエラーを取得しています:
No matching constructor for initialization of 'Analyzer'
どのように私はこの問題を解決することができますか?