fixed description of Algorithm::getList(); added sample, thanks to Shervin Emami (ticket #1972)
This commit is contained in:
parent
3108423a37
commit
01169ec826
@ -2423,11 +2423,17 @@ Algorithm::getList
|
|||||||
------------------
|
------------------
|
||||||
Returns the list of registered algorithms
|
Returns the list of registered algorithms
|
||||||
|
|
||||||
.. ocv:function:: void read(vector<string>& algorithms)
|
.. ocv:function:: void getList(vector<string>& algorithms)
|
||||||
|
|
||||||
:param algorithms: The output vector of algorithm names.
|
: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<string> algorithms;
|
||||||
|
Algorithm::getList(algorithms);
|
||||||
|
cout << "Algorithms: " << algorithms.size() << endl;
|
||||||
|
for (size_t i=0; i < algorithms.size(); i++)
|
||||||
|
cout << algorithms[i] << endl;
|
||||||
|
|
||||||
|
|
||||||
Algorithm::getList
|
Algorithm::getList
|
||||||
|
Loading…
x
Reference in New Issue
Block a user