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
how do you call it, exactly ?
do you link opencv_ml330d.lib ?
I call it like this:
classifier->getVotes(sample, outputMat, 0)
and I link it with opencv_ml330.lib (Release version)The problem is, I'm not sure which flag to use as the 3rd argument, so I keep it zero for the time being.
edit: I also used the prebuilt binaries and linked with opencv_world331.lib (latest version), but still nothing changed.
why does it complain about
cv::debug_build_guard::
then ? debug project, but release lib ? that has to match !