Skip to content

Commit 177ed7c

Browse files
committed
warnning fixed
1 parent a39d026 commit 177ed7c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

modules/rgbd/src/keyframe.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ Ptr<KeyFrame> KeyFrameDatabase::getKeyFrameByID(int keyFrameID)
121121
}
122122
}
123123

124-
int KeyFrameDatabase::getSize()
124+
size_t KeyFrameDatabase::getSize()
125125
{
126126
return DataBase.size();
127127
}
@@ -150,7 +150,7 @@ double KeyFrameDatabase::score(InputArray feature1, InputArray feature2)
150150
std::vector<int> KeyFrameDatabase::getCandidateKF(const Mat& currentFeature, const int currentSubmapID, const double& similarityLow, double& bestSimilarity, int& bestId )
151151
{
152152
std::vector<int> cadidateKFs;
153-
float similarity;
153+
double similarity;
154154

155155
bestSimilarity = 0;
156156

modules/rgbd/src/loop_closure_detection.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ bool LoopClosureDetectionImpl::loopCheck(int& tarSubmapID)
3434
//Calculate the similarity with all pictures in the database.
3535

3636
// If the KFDataBase is too small, then skip.
37-
if(KFDataBase->getSize() < minDatabaseSize )
37+
if(int(KFDataBase->getSize()) < minDatabaseSize )
3838
return false;
3939

4040
double maxScore = 0;
@@ -200,7 +200,7 @@ void LoopClosureDetectionImpl::reset()
200200
KFDataBase->reset();
201201
}
202202

203-
void LoopClosureDetectionImpl::processFrame(InputArray img, Mat& DNNfeature, std::vector<KeyPoint>& currentKeypoints, Mat& ORBFeature)
203+
void LoopClosureDetectionImpl::processFrame(InputArray img, Mat& DNNfeature, std::vector<KeyPoint>& Keypoints, Mat& ORBFeature)
204204
{
205205
std::vector<Mat> outMats;
206206

@@ -217,8 +217,8 @@ void LoopClosureDetectionImpl::processFrame(InputArray img, Mat& DNNfeature, std
217217

218218
// ORB process
219219
#ifdef HAVE_OPENCV_FEATURES2D
220-
ORBdetector->detect(img, currentKeypoints);
221-
ORBdescriptor->compute(img,currentKeypoints,outORB);
220+
ORBdetector->detect(img, Keypoints);
221+
ORBdescriptor->compute(img, Keypoints, outORB);
222222
ORBFeature = outORB.clone();
223223
#endif
224224

0 commit comments

Comments
 (0)