MVE - Multi-View Environment mve-devel
Loading...
Searching...
No Matches
ba_types.h
Go to the documentation of this file.
1#ifndef SFM_BA_TYPES_HEADER
2#define SFM_BA_TYPES_HEADER
3
4#include <algorithm>
5
6#include "sfm/defines.h"
7
10
12struct Camera
13{
14 Camera (void);
15
16 double focal_length = 0.0;
17 double distortion[2];
18 double translation[3];
19 double rotation[9];
20 bool is_constant = false;
21};
22
24struct Point3D
25{
26 double pos[3];
27 bool is_constant = false;
28};
29
32{
33 double pos[2];
36};
37
38/* ------------------------ Implementation ------------------------ */
39
40inline
41Camera::Camera (void)
42{
43 std::fill(this->distortion, this->distortion + 2, 0.0);
44 std::fill(this->translation, this->translation + 3, 0.0);
45 std::fill(this->rotation, this->rotation + 9, 0.0);
46}
47
50
51#endif /* SFM_BA_TYPES_HEADER */
52
#define SFM_BA_NAMESPACE_BEGIN
Definition defines.h:22
#define SFM_NAMESPACE_END
Definition defines.h:14
#define SFM_NAMESPACE_BEGIN
Definition defines.h:13
#define SFM_BA_NAMESPACE_END
Definition defines.h:23
Camera representation for bundle adjustment.
Definition ba_types.h:13
Observation of a 3D point for a camera.
Definition ba_types.h:32
3D point representation for bundle adjustment.
Definition ba_types.h:25