About how to use the getList function of class "Algorithm" [closed]
By use the getList function of class "Algorithm" we can know which algorithm can invoke.But when I use the latest version of opencv the getList result only have one algorithm "CLANE" The code I use as below:
#include <opencv\cv.h>
#include <opencv\highgui.h>
#include <opencv2\core\core.hpp>
#include <vector>
using namespace std;
int main( int argc, char** argv )
{
std::vector<cv::String> algorithms;
cv::Algorithm::getList(algorithms);
cout << "Algorithms: " << (int)algorithms.size() << endl;
for (int i=0; i<(int)algorithms.size(); i++) {
cout << algorithms[i] << endl;
}
getchar();
return 0;
}
=======
Did U have the same problems?
try calling initModule_ml(); initModule_features2d(); initModule_video(); initModule_contrib();
before getList
3Q U :) Look I should try to learn more about opencv, it's really cool~
As this problem is solved, I will close it down with solution provided.