【发布时间】:2016-06-19 20:29:30
【问题描述】:
这是我使用 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;
}
【问题讨论】: