0
這裏是我的代碼與EmguCV包裝的C#代碼。我不知道如何將其轉換爲iOS上的可用代碼以用於OpenCV。任何OpenCV專家都在那裏?如何在iOS上使用OpenCV完成此EmguCV C#代碼(使用SURF)?
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;
}