MCPcopy Create free account
hub / github.com/UZ-SLAMLab/ORB_SLAM3 / GetNumberMPs

Method GetNumberMPs

src/KeyFrame.cc:284–295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

282}
283
284int KeyFrame::GetNumberMPs()
285{
286 unique_lock<mutex> lock(mMutexFeatures);
287 int numberMPs = 0;
288 for(size_t i=0, iend=mvpMapPoints.size(); i<iend; i++)
289 {
290 if(!mvpMapPoints[i])
291 continue;
292 numberMPs++;
293 }
294 return numberMPs;
295}
296
297void KeyFrame::AddMapPoint(MapPoint *pMP, const size_t &idx)
298{

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected