0
A
回答
0
首先,創建一個類SURF.cs
然後寫在它下面的代碼:
public void FindSURF(Image<Gray, Byte> modelImage)
{
VectorOfKeyPoint modelKeyPoints;
SURFDetector surfCPU = new SURFDetector(500, false);
//extract features from the object image
modelKeyPoints = new VectorOfKeyPoint();
Matrix<float> modelDescriptors = surfCPU.DetectAndCompute(modelImage, null, modelKeyPoints);
}
然後,在program.cs
寫下面的代碼:
SURF FindImageSURF = new SURF();
string[] filePaths = Directory.GetFiles(@"E:\folderimages\");
for (int i = 0; i < filePaths.Length; ++i)
{
string path = filePaths[i];
using (Image<Gray, Byte> modelImage = new Image<Gray, byte>(path))
{
FindImageSURF.FindSURF(modelImage);
}
}
相關問題
- 1. 興趣點API?
- 2. Wikitude。興趣點
- 3. 如何提取OSM興趣點類別
- 4. Google Maps API - 如何啓用「興趣點」?
- 5. 在drupal中節點「興趣」通知
- 6. 在圖中註釋興趣點(Matplotlib)
- 7. Google Maps API - 興趣點
- 8. 自動添加興趣點
- 9. C++如果在功能上沒有興趣
- 10. 如何創建興趣類別的興趣?
- 11. 如何將用戶的興趣存儲在drupal profile2中?
- 12. 如何從Windows Phone 8.1 MapControl中刪除興趣點?
- 13. 如何計算MySQL中的類似興趣點
- 14. objective-c iphone編程:興趣點mapview
- 15. 用興趣點近似列表
- 16. OpenCV STIP(空間時間興趣點)
- 17. Tableau:有兩個「興趣點」的熱圖
- 18. Mailchimp:用興趣名稱獲取興趣ID?
- 19. OpenCV - SURF功能比較
- 20. 的OpenCV - SURF功能問題
- 21. 您如何看待這種興趣點檢測算法?
- 22. openlayers3檢查興趣點是否在邊界框中
- 23. 如何在OpenCV中設置感興趣的區域 - JAVA
- 24. PropertyGrid.BrowsableAttributes的興趣是什麼?
- 25. MailChimp API PHP - 加入興趣
- 26. HTTPS JSON興趣字符串
- 27. 感興趣的區域
- 28. 保存功能++
- 29. 如何使用overpass-api獲得我的觀點附近的興趣點?
- 30. 如何到附近的景點或城市的興趣地點,位置