rpp_types.h
Go to the documentation of this file.
1 /* ========================================================================
2  * PROJECT: ARToolKitPlus
3  * ========================================================================
4  *
5  * The robust pose estimator algorithm has been provided by G. Schweighofer
6  * and A. Pinz (Inst.of El.Measurement and Measurement Signal Processing,
7  * Graz University of Technology). Details about the algorithm are given in
8  * a Technical Report: TR-EMT-2005-01, available at:
9  * http://www.emt.tu-graz.ac.at/publications/index.htm
10  *
11  * Ported from MATLAB to C by T.Pintaric (Vienna University of Technology).
12  *
13  * Copyright of the derived and new portions of this work
14  * (C) 2006 Graz University of Technology
15  *
16  * This framework is free software; you can redistribute it and/or modify
17  * it under the terms of the GNU General Public License as published by
18  * the Free Software Foundation; either version 2 of the License, or
19  * (at your option) any later version.
20  *
21  * This framework is distributed in the hope that it will be useful,
22  * but WITHOUT ANY WARRANTY; without even the implied warranty of
23  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24  * GNU General Public License for more details.
25  *
26  * You should have received a copy of the GNU General Public License
27  * along with this framework; if not, write to the Free Software
28  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
29  *
30  * For further information please contact
31  * Dieter Schmalstieg
32  * <schmalstieg@icg.tu-graz.ac.at>
33  * Graz University of Technology,
34  * Institut for Computer Graphics and Vision,
35  * Inffeldgasse 16a, 8010 Graz, Austria.
36  * ========================================================================
37  ** @author Thomas Pintaric
38  *
39  * $Id: rpp_types.h 162 2006-04-19 21:28:10Z grabner $
40  * @file
41  * ======================================================================== */
42 
43 
44 
45 #ifndef __RPP_TYPES_H__
46 #define __RPP_TYPES_H__
47 
48 #include <vector>
49 #include "rpp_const.h"
50 
51 //
52 // _USE_CUSTOMFLOAT_ is defined in rpp_const.h
53 //
54 
55 #ifdef _USE_CUSTOMFLOAT_
56 # include "../math/artkpFloat_float.h"
57 #endif
58 
59 namespace rpp {
60 
61 #ifdef _USE_CUSTOMFLOAT_
63 #else
64  typedef double real_t;
65 #endif
66 
67 // standard types
68 //
69 typedef real_t vec3[3];
70 struct vec3_t { vec3 v; };
71 typedef std::vector<vec3_t> vec3_array;
72 typedef std::vector<vec3_t>::iterator vec3_array_iter;
73 typedef std::vector<vec3_t>::const_iterator vec3_array_const_iter;
74 
75 typedef real_t mat33[3][3];
76 struct mat33_t { mat33 m; };
77 typedef std::vector<mat33_t> mat33_array;
78 typedef std::vector<mat33_t>::iterator mat33_array_iter;
79 typedef std::vector<mat33_t>::const_iterator mat33_array_const_iter;
80 
81 typedef std::vector<real_t> scalar_array;
82 
83 
84 
85 struct pose_t
86 {
89  real_t E;
92  real_t obj_err;
93 };
94 
95 typedef std::vector<pose_t> pose_vec;
96 
97 struct quat_t
98 {
100  real_t s;
101 };
102 
103 struct options_t
104 {
106  real_t tol;
107  real_t epsilon;
108  unsigned int max_iter;
109 };
110 
111 } // namespace rpp
112 #endif
vec3_t PoseLu_t
Definition: rpp_types.h:91
real_t epsilon
Definition: rpp_types.h:107
vec3_t v
Definition: rpp_types.h:99
std::vector< vec3_t >::const_iterator vec3_array_const_iter
Definition: rpp_types.h:73
std::vector< pose_t > pose_vec
Definition: rpp_types.h:95
real_t obj_err
Definition: rpp_types.h:92
vec3_t t
Definition: rpp_types.h:88
Definition: rpp.cpp:55
std::vector< mat33_t > mat33_array
Definition: rpp_types.h:77
std::vector< vec3_t > vec3_array
Definition: rpp_types.h:71
std::vector< mat33_t >::iterator mat33_array_iter
Definition: rpp_types.h:78
mat33_t PoseLu_R
Definition: rpp_types.h:90
std::vector< vec3_t >::iterator vec3_array_iter
Definition: rpp_types.h:72
std::vector< real_t > scalar_array
Definition: rpp_types.h:81
double real_t
Definition: rpp_types.h:64
mat33_t R
Definition: rpp_types.h:87
unsigned int max_iter
Definition: rpp_types.h:108
real_t mat33[3][3]
Definition: rpp_types.h:75
mat33_t initR
Definition: rpp_types.h:105
real_t E
Definition: rpp_types.h:89
std::vector< mat33_t >::const_iterator mat33_array_const_iter
Definition: rpp_types.h:79
real_t vec3[3]
Definition: rpp_types.h:69
real_t s
Definition: rpp_types.h:100


tuw_artoolkitplus
Author(s): Markus Bader
autogenerated on Sun Sep 4 2016 03:24:33