目标C中的点向量是什么类型

时间:2018-11-08 04:43:15

标签: vector objective-c++

我对函数有以下声明,但我不知道我在做类型声明方面做错了什么:

//function is defined in the OpenCVWrapper.mm file .....no errors
+ (NSArray *)analysePoints:(std::vector<cv::Point> )pointsVector{
    .......
}

//error is in the OpenCVWrapper.h file
@interface OpenCVWrapper : NSObject

+ (NSArray *)analysePoints:(NSMutableArray *)mutableArray:(std::vector<cv::Point>)pointsArray;
//red marker under the std
@end

我收到矢量错误“期望类型”。我在这里做什么错了?

1 个答案:

答案 0 :(得分:1)

实际上,我通过user11118321输入找到了解决方案,以查看更大的图片。我正在通过桥接头使用openCV的快速应用程序中使用此设置。实际上不可能迅速导入或使用向量。