[問題] 關於opencv Kalman Filter

看板C_and_CPP作者 (vincent)時間10年前 (2013/12/16 15:12), 編輯推噓0(003)
留言3則, 2人參與, 最新討論串1/1
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...) opencv2.4.3 +VS2012 錯誤結果(Wrong Output): 1>main.obj : error LNK2019: 無法解析的外部符號 _cvReleaseKalman 在函式 _main 中被參考 1>main.obj : error LNK2019: 無法解析的外部符號 _cvKalmanCorrect 在函式 _main 中被參考 1>main.obj : error LNK2019: 無法解析的外部符號 _cvKalmanPredict 在函式 _main 中被參考 1>main.obj : error LNK2019: 無法解析的外部符號 _cvCreateKalman 在函式 _main 中 被參考 程式碼(Code):(請善用置底文網頁, 記得排版) #include <cv.h> #include <cxcore.h> #include <highgui.h> #include <opencv2/video/tracking.hpp> #include <cmath> #include <vector> #include <iostream> using namespace std; const int winHeight=600; const int winWidth=800; CvPoint mousePosition=cvPoint(winWidth>>1,winHeight>>1); //mouse event callback void mouseEvent(int event, int x, int y, int flags, void *param ) { if (event==CV_EVENT_MOUSEMOVE) { mousePosition=cvPoint(x,y); } } int main ( ) { 補充說明(Supplement): http://blog.sciencenet.cn/blog-261330-534267.html 小弟的程式碼是從這邊複製下來的 有include tracking 但還是無法執行 不知有沒有大大曾經使用過Cvkalman或者遇過這問題解決的 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.114.85.110

12/16 15:52, , 1F
VS2012環境沒設定好 連結器有加嗎?
12/16 15:52, 1F

12/16 16:10, , 2F
我是使用別的專案改裡面code的,改之前那個專案都能跑
12/16 16:10, 2F

12/16 16:25, , 3F
我發現沒有使用opencv_video243d連結器,加完後就可使用了
12/16 16:25, 3F
文章代碼(AID): #1IhgV1rt (C_and_CPP)