Ask Your Question

Deltanullnull's profile - activity

2017-11-22 02:59:07 -0600 marked best answer How to use cv::ml::RTrees::getVotes()

Hi there,

I need help with the new method cv::ml::RTrees::getVotes() method introduced in version 3.3. for Random Forests.

I am using Microsoft Visual Studio 2015 for compiling. My program works very well with the methods in the previous OpenCV versions, but as soon as I include getVotes(), the following error occurs during linking process:

Error LNK2001 unresolved external symbol "public: void __cdecl cv::ml::RTrees::getVotes(class cv::debug_build_guard::_InputArray const &,class cv::debug_build_guard::_OutputArray const &,int)const " (?getVotes@RTrees@ml@cv@@QEBAXAEBV_InputArray@debug_build_guard@3@AEBV_OutputArray@53@H@Z)

I assume it's missing a library. However, I have included all libraries provided by OpenCV.

Does anyone have the same problem? If yes, did you find a solution?

Thank you very much

2017-11-22 02:28:17 -0600 commented question How to use cv::ml::RTrees::getVotes()

Linking with Debug configuration is working! Also, when including debug libraries in the Release configuration. Thank yo

2017-11-21 04:29:14 -0600 commented question How to use cv::ml::RTrees::getVotes()

I call it like this: classifier->getVotes(sample, outputMat, 0) and I link it with opencv_ml330.lib (Release version)

2017-11-21 04:20:32 -0600 commented question How to use cv::ml::RTrees::getVotes()

I call it like this: classifier->getVotes(sample, outputMat, 0) and I link it with opencv_ml330.lib (Release version)

2017-11-21 03:09:18 -0600 asked a question How to use cv::ml::RTrees::getVotes()

How to use cv::ml::RTrees::getVotes() Hi there, I need help with the new method cv::ml::RTrees::getVotes() method intro