machine learning - OpenCV partition() underlying algorithm -


does know algorithm used here?

i want implement function detection's windows grouping.

thank you.

if @ opencv source code partition function, see following comments:

// function splits input sequence or set 1 or more equivalence classes , // returns vector of labels - 0-based class indexes each element. // predicate(a,b) returns true if 2 sequence elements belong same class. // // algorithm described in "introduction algorithms" // cormen, leiserson , rivest, chapter "data structures disjoint sets" template<typename _tp, class _eqpredicate> int partition( const vector<_tp>& _vec, vector<int>& labels, _eqpredicate predicate=_eqpredicate()) {     // ... etc. } 

this gives both source code, , reference algorithm.

so, that's chapter 21 in book.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -