forked from jonazpiazu/PTAM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Map.h
44 lines (33 loc) · 875 Bytes
/
Map.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// -*- c++ -*-
// Copyright 2008 Isis Innovation Limited
//
// This header declares the Map class.
// This is pretty light-weight: All it contains is
// a vector of MapPoints and a vector of KeyFrames.
//
// N.b. since I don't do proper thread safety,
// everything is stored as lists of pointers,
// and map points are not erased if they are bad:
// they are moved to the trash list. That way
// old pointers which other threads are using are not
// invalidated!
#ifndef __MAP_H
#define __MAP_H
#include <vector>
#include <TooN/se3.h>
#include <cvd/image.h>
struct MapPoint;
struct KeyFrame;
struct Map
{
Map();
inline bool IsGood() {return bGood;}
void Reset();
void MoveBadPointsToTrash();
void EmptyTrash();
std::vector<MapPoint*> vpPoints;
std::vector<MapPoint*> vpPointsTrash;
std::vector<KeyFrame*> vpKeyFrames;
bool bGood;
};
#endif