Ask Your Question

Revision history [back]

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.

class algorithm

I want to get the list of algorithms available. My code is is

 std::vector<cv::string> 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.