class cv::detail::DisjointSets

#include <util.hpp>

class DisjointSets
{
public:
    // fields

    std::vector<int> parent;
    std::vector<int> size;

    // construction

    DisjointSets(int elem_count = 0);

    // methods

    void
    createOneElemSets(int elem_count);

    int
    findSetByElem(int elem);

    int
    mergeSets(
        int set1,
        int set2
        );
};