OpenCV  2.4.13
Open Source Computer Vision
cv::detail::DisjointSets Class Reference

#include <util.hpp>

Public Member Functions

 DisjointSets (int elem_count=0)
 
void createOneElemSets (int elem_count)
 
int findSetByElem (int elem)
 
int mergeSets (int set1, int set2)
 

Public Attributes

std::vector< intparent
 
std::vector< intsize
 

Constructor & Destructor Documentation

cv::detail::DisjointSets::DisjointSets ( int  elem_count = 0)
inline

Member Function Documentation

void cv::detail::DisjointSets::createOneElemSets ( int  elem_count)
int cv::detail::DisjointSets::findSetByElem ( int  elem)
int cv::detail::DisjointSets::mergeSets ( int  set1,
int  set2 
)

Member Data Documentation

std::vector<int> cv::detail::DisjointSets::parent
std::vector<int> cv::detail::DisjointSets::size

The documentation for this class was generated from the following file: