2013年12月29日 星期日

[openCV]邊緣偵測

引用標頭檔morphoFeatures

  • #include "morphoFeatures.h"

假想:宣告邊緣影像處理工廠物件

  • MorphoFeatures morpho;

設定邊緣影像處理工廠處理程度參數

  • morpho.setThreshold(40);

將影像丟進工廠處理

  • cv::Mat edges;
  • edges= morpho.getEdges(image);
結果




















程式碼Webcam套上邊緣偵測

  • https://drive.google.com/file/d/0B3iLa8F71LQwV0pfRzlXSDRzN3c/edit?usp=sharing


Reference

  • 孫士韋老師課堂六

沒有留言:

張貼留言