From 01169ec826e16e65fb1b61f1340af698fd6494f2 Mon Sep 17 00:00:00 2001 From: Vadim Pisarevsky Date: Wed, 23 May 2012 12:35:51 +0000 Subject: [PATCH] fixed description of Algorithm::getList(); added sample, thanks to Shervin Emami (ticket #1972) --- modules/core/doc/basic_structures.rst | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/modules/core/doc/basic_structures.rst b/modules/core/doc/basic_structures.rst index cfdc3c61a8..6a2881703d 100644 --- a/modules/core/doc/basic_structures.rst +++ b/modules/core/doc/basic_structures.rst @@ -2423,11 +2423,17 @@ Algorithm::getList ------------------ Returns the list of registered algorithms -.. ocv:function:: void read(vector& algorithms) +.. ocv:function:: void getList(vector& algorithms) :param algorithms: The output vector of algorithm names. -This static method returns the list of registered algorithms in alphabetical order. +This static method returns the list of registered algorithms in alphabetical order. Here is how to use it :: + + vector algorithms; + Algorithm::getList(algorithms); + cout << "Algorithms: " << algorithms.size() << endl; + for (size_t i=0; i < algorithms.size(); i++) + cout << algorithms[i] << endl; Algorithm::getList