refactored opencv_stitching
This commit is contained in:
@@ -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])
|
||||
{
|
||||
|
Reference in New Issue
Block a user