我試圖用這個OpenCV的模塊 http://xanthippi.ceid.upatras.gr/people/evangelidis/ecc/編譯程序使用opencv庫
我使用這裏的源,其中包括編譯程序「cc_image_registration.cpp」實用程序 http://xanthippi.ceid.upatras.gr/people/evangelidis/ecc/data/ecc_opencv.zip
源包括
- ecc.cpp
- ecc.h
- 個ecc_image_registration.cpp
- ...一些示例文件
我試圖編譯他們的獨立工具,它是 「cc_image_registration.cpp」
當我運行
g++ -B/usr/exp/ecc/ecc.h -I/usr/include/opencv ecc_image_registration.cpp $(pkg-config opencv --libs) -o ecc
我回來
/tmp/cceULny7.o: In function `main':
ecc_image_registration.cpp:(.text+0x91f): undefined reference to `cvFindTransform(_IplImage const*, _IplImage const*, CvMat*, WARP_MODE, CvTermCriteria const&)'
collect2: error: ld returned 1 exit status
cvFindTransf orm在ecc.h中定義。
我通常不使用C++,但我只是想編譯這個工具並從Python調用它。
..只是有點懷疑有關使用代碼2008,這都寫在OpenCV中的過時C-API ... – berak 2014-11-03 18:30:20