-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocation.h
45 lines (34 loc) · 907 Bytes
/
location.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
44
45
#include "common.h"
#ifdef BOOST
#include <boost/archive/text_oarchive.hpp>
#include <boost/archive/text_iarchive.hpp>
#include <boost/serialization/array.hpp>
#include <boost/serialization/split_member.hpp>
#include <fstream>
#endif
struct Location {
int32_t x, y, theta;
Patch * image;
//these two are related
int8_t * foreground_frame;
int64_t * foreground_score;
#ifdef BOOST
friend class boost::serialization::access;
private:
template <typename Archive>
void load(Archive &ar, const unsigned int version) {
ar & x;
ar & y;
ar & theta;
ar & image;
}
template <typename Archive>
void save(Archive &ar, const unsigned int version) const {
ar & x;
ar & y;
ar & theta;
ar & image;
}
BOOST_SERIALIZATION_SPLIT_MEMBER()
#endif
};