我如何在带有OpenCV的iOS上执行此EmguCV C#代码(使用SURF)
How do I do this EmguCV C# code (that uses SURF) on iOS with OpenCV?
这是我使用 EmguCV 包装器的 C# 代码。我不知道如何在iOS上将其转换为可用的代码以与OpenCV一起使用。有人有OpenCV专家吗?
public Matrix<float> ComputeSingleDescriptors(string imagePath)
{
private SURFDetector detector = new SURFDetector(surfHessianThresh, surfExtendedFlag);
Matrix<float> descs;
using (Image<Gray, Byte> img = new Image<Gray, byte>(imagePath))
{
VectorOfKeyPoint keyPoints = detector.DetectKeyPointsRaw(img, null);
descs = detector.ComputeDescriptorsRaw(img, null, keyPoints);
}
return descs;
}
我不会称自己为专家,但我认为解决问题的最佳方法是查看最新的OpenCV和OpenCV-Contrib存储库。然后,您将能够手动构建opencv_ios.framework并包含contrib模块(SURF检测器就是其中之一)。然后,您将能够使用 opencv_ios.framework 创建一个 iOS 应用程序
相关文章:
- C++我的数学有什么问题,为什么我的代码不能正确循环
- 代码在main()中运行,但在函数中出现错误
- 在VS代码中交叉编译Windows与Linux上的MinGW的SDL程序
- 编译包含字符串的代码时遇到问题
- 我在c++代码中生成了一个运行时#3异常
- 如何在linux终端中同时编译和运行c++代码
- 为cl.exe(Visual Studio代码)指定命令行C++版本
- 在Linux for Windows上编译C++代码时出错
- 我的字符计数代码计算错误.为什么
- 孤立代码块在结构中引发异常
- 在编译C++代码(具有dlib和opencv)到WASM时面临问题
- 为什么我的C#代码在调用回C++COM直到Task时会暂停.等待/线程.加入
- 处理小于cpu数据总线的数据类型.(c++转换为机器代码)
- 此代码是否违反一个定义规则
- 为什么我的代码在输出中增加了93天
- 将OpenCV C++重写为EmguCV C#-如何使用指针
- 我的简单if-else语句是如何无法访问的代码
- 使用动态分配的数组会导致代码分析发出虚假的C6386缓冲区溢出警告
- 为什么在这个代码结束循环中没有得到结束
- 我如何在带有OpenCV的iOS上执行此EmguCV C#代码(使用SURF)