-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathtypes.h
48 lines (43 loc) · 1.43 KB
/
types.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
46
47
48
// This file is part of OpenMVG (Open Multiple View Geometry) C++ library.
// Copyright (c) 2016 nomoko AG, Srivathsan Murali<[email protected]>
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#ifndef _NOMOKO_TYPES_H_
#define _NOMOKO_TYPES_H_
namespace nomoko {
/* brief:
Contains the camera parameters
currently contains only a intrinsic matrix for a pinhole camera
*/
struct Camera {
Eigen::Matrix3f K;
unsigned int width;
unsigned int height;
}; // struct Camera
/* brief:
Contains the information for each view;
rot -> Rotation matrix for the pose
trans -> Translation vector for the pose
cameraID -> index for the camera used of the vector of Cameras
filepath -> filepath to the image
*/
struct View {
Eigen::Matrix3f rot;
Eigen::Vector3f trans;
size_t cameraId;
std::string filename;
std::vector<size_t> viewPoints;
}; // struct View
/* brief:
Contains the information for each point in the sparse point cloud
pos -> 3D position of the point
color -> RGB values for the point
viewList -> List of views that see this point
*/
struct Point {
Eigen::Vector3f pos;
std::vector<size_t> viewList;
};
} // namespace nomoko
#endif // _NOMOKO_TYPES_H_