I have use a code from a paper and it need matlab complie C++ function and call opencv 2.4.9. But it failed, my system is 64-bit Windows Operating System,my matlab version is 2018a and I have install the Mricrosoft Visual C++ 2017, look the picture. But when I complie the .cpp is failed. The errors are like this 'undefined reference to `cv::Mat::deallocate()' . It seems can not find the opencv? Anybody can figure this problems ,thank you very much.
The compile commad is
mex generateEllipseCandidates.cpp -IF:\OpenCV\opencv2.4.9\build\include -IF:\OpenCV\opencv2.4.9\build\include\opencv -IF:\OpenCV\opencv2.4.9\build\include\opencv2 -LF:\OpenCV\opencv2.4.9\build\x64\vc11\lib -IF:\Matlab\settlein\extern\include -LF:\Matlab\settlein\extern\lib\win64\microsoft -lopencv_core249 -lopencv_highgui249 -lopencv_imgproc249 -llibmwlapack.lib

 採用された回答

703701363
703701363 2021 年 2 月 10 日

1 投票

it is success, the compile command is error ,delete the '.lib' is right

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeComputer Vision Toolbox についてさらに検索

質問済み:

2021 年 2 月 8 日

回答済み:

2021 年 2 月 10 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by