class algorithm
I want to get the list of algorithms available. My code is
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;
But when I run it getting zero algorithm. Help apppreciated.
you need to include all the headers, and call like :
before your code.
Just out of curiosity @berak, is there an initialization function for each module or only for those?
there should be a function for each module, that exposes Algorithms (not all modules do)
btw, forgot initModule_nonfree();
not that it made the purpose of the functions more clear now but hey... so this gets called for us inside the headers?