refactored opencv_stitching

This commit is contained in:
Alexey Spizhevoy
2011-08-16 12:36:11 +00:00
parent f1e8b43c7a
commit 78bb392088
6 changed files with 39 additions and 77 deletions

View File

@@ -44,7 +44,7 @@
using namespace std;
using namespace cv;
void DjSets::create(int n)
void DisjointSets::createOneElemSets(int n)
{
rank_.assign(n, 0);
size.assign(n, 1);
@@ -54,7 +54,7 @@ void DjSets::create(int n)
}
int DjSets::find(int elem)
int DisjointSets::findSetByElem(int elem)
{
int set = elem;
while (set != parent[set])
@@ -70,7 +70,7 @@ int DjSets::find(int elem)
}
int DjSets::merge(int set1, int set2)
int DisjointSets::mergeSets(int set1, int set2)
{
if (rank_[set1] < rank_[set2])
{