MVE - Multi-View Environment
mve-devel
Loading...
Searching...
No Matches
libs
sfm
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
8
SFM_NAMESPACE_BEGIN
9
SFM_BA_NAMESPACE_BEGIN
10
12
struct
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
24
struct
Point3D
25
{
26
double
pos[3];
27
bool
is_constant =
false
;
28
};
29
31
struct
Observation
32
{
33
double
pos[2];
34
int
camera_id
;
35
int
point_id
;
36
};
37
38
/* ------------------------ Implementation ------------------------ */
39
40
inline
41
Camera::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
48
SFM_BA_NAMESPACE_END
49
SFM_NAMESPACE_END
50
51
#endif
/* SFM_BA_TYPES_HEADER */
52
defines.h
SFM_BA_NAMESPACE_BEGIN
#define SFM_BA_NAMESPACE_BEGIN
Definition
defines.h:22
SFM_NAMESPACE_END
#define SFM_NAMESPACE_END
Definition
defines.h:14
SFM_NAMESPACE_BEGIN
#define SFM_NAMESPACE_BEGIN
Definition
defines.h:13
SFM_BA_NAMESPACE_END
#define SFM_BA_NAMESPACE_END
Definition
defines.h:23
sfm::ba::Camera
Camera representation for bundle adjustment.
Definition
ba_types.h:13
sfm::ba::Observation
Observation of a 3D point for a camera.
Definition
ba_types.h:32
sfm::ba::Observation::point_id
int point_id
Definition
ba_types.h:35
sfm::ba::Observation::camera_id
int camera_id
Definition
ba_types.h:34
sfm::ba::Point3D
3D point representation for bundle adjustment.
Definition
ba_types.h:25
Generated on Thu Dec 21 2023 01:53:38 for MVE - Multi-View Environment by
1.9.8