KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
g_camera_calibration.h
Go to the documentation of this file.
1 /* $Id: g_camera_calibration.h 18278 2014-11-25 01:42:10Z ksimek $ */
2 /* =========================================================================== *
3  |
4  | Copyright (c) 1994-2010 by Kobus Barnard (author)
5  |
6  | Personal and educational use of this code is granted, provided that this
7  | header is kept intact, and that the authorship is not misrepresented, that
8  | its use is acknowledged in publications, and relevant papers are cited.
9  |
10  | For other use contact the author (kobus AT cs DOT arizona DOT edu).
11  |
12  | Please note that the code in this file has not necessarily been adequately
13  | tested. Naturally, there is no guarantee of performance, support, or fitness
14  | for any particular task. Nonetheless, I am interested in hearing about
15  | problems that you encounter.
16  |
17  | Author: Kyle Simek
18  * =========================================================================== */
19 
20 #ifndef KJB_G_CPP_CAMERA_CALIBRATION
21 #define KJB_G_CPP_CAMERA_CALIBRATION
22 
23 #include <iosfwd>
24 
25 namespace kjb
26 {
27 class Matrix;
28 class Vector;
29 
31 {
37 
38  };
39 
46 
49 
60 };
61 
62 std::ostream& operator<<(std::ostream& ost, const Calibration_descriptor::Coord_convention& mode);
63 
64 std::istream& operator>>(std::istream& ist, Calibration_descriptor::Coord_convention& mode);
65 
66 
85  Matrix& intrinsic,
86  Matrix& rotation,
87  Vector& translation,
89 
103  const Matrix& camera_matrix,
104  Matrix& intrinsic,
105  Matrix& rotation,
106  Vector& translation);
107 
108 };
109 
110 #endif
bool look_down_positive_z
Definition: g_camera_calibration.h:59
Definition: g_camera_calibration.h:30
Origin at bottom-left, y-axis pointing up.
Definition: g_camera_calibration.h:36
void standardize_camera_matrices(Matrix &intrinsic, Matrix &rotation, Vector &translation, const Calibration_descriptor &cal)
Definition: g_camera_calibration.cpp:79
void decompose_camera_matrix(const Matrix &camera_matrix, Matrix &intrinsic, Matrix &rotation, Vector &translation)
Definition: g_camera_calibration.cpp:184
This class implements vectors, in the linear-algebra sense, with real-valued elements.
Definition: m_vector.h:87
std::istream & operator>>(std::istream &ist, Detection_type &type)
Stream in an detection.
Definition: d_type.cpp:91
Coord_convention convention
the image coordinate convention used to label image points
Definition: g_camera_calibration.h:45
bool world_origin_in_front
When the calibration image was captured, was the origin in front of the camera?
Definition: g_camera_calibration.h:48
std::ofstream & operator<<(std::ofstream &out, const Quaternion &q)
Definition: turntable_camera.cpp:77
int image_height
height of the calibration image
Definition: g_camera_calibration.h:43
Coord_convention
Definition: g_camera_calibration.h:33
Origin at top-left, y-axis pointing down.
Definition: g_camera_calibration.h:35
This class implements matrices, in the linear-algebra sense, with real-valued elements.
Definition: m_matrix.h:94
Definition: g_camera_calibration.h:34
static const Calibration_descriptor STANDARD
Definition: g_camera_calibration.h:32
int image_width
width of the calibration image
Definition: g_camera_calibration.h:41