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

Method PostLoad

src/Atlas.cc:335–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

333}
334
335void Atlas::PostLoad()
336{
337 map<unsigned int,GeometricCamera*> mpCams;
338 for(GeometricCamera* pCam : mvpCameras)
339 {
340 mpCams[pCam->GetId()] = pCam;
341 }
342
343 mspMaps.clear();
344 unsigned long int numKF = 0, numMP = 0;
345 for(Map* pMi : mvpBackupMaps)
346 {
347 mspMaps.insert(pMi);
348 pMi->PostLoad(mpKeyFrameDB, mpORBVocabulary, mpCams);
349 numKF += pMi->GetAllKeyFrames().size();
350 numMP += pMi->GetAllMapPoints().size();
351 }
352 mvpBackupMaps.clear();
353}
354
355void Atlas::SetKeyFrameDababase(KeyFrameDatabase* pKFDB)
356{

Callers

nothing calls this directly

Calls 5

GetIdMethod · 0.45
clearMethod · 0.45
sizeMethod · 0.45
GetAllKeyFramesMethod · 0.45
GetAllMapPointsMethod · 0.45

Tested by

no test coverage detected