Structs.h
Go to the documentation of this file.
1 // *****************************************************************
2 // Filename: Structs.h
3 // Copyright: Kai Welke, Chair Prof. Dillmann (IAIM),
4 // Institute for Computer Science and Engineering (CSE),
5 // University of Karlsruhe. All rights reserved.
6 // Author: Kai Welke
7 // Date: 12.06.2007
8 // *****************************************************************
9 
10 #pragma once
11 
12 #include <vector>
13 
14 #include <Eigen/Core>
15 
16 // *****************************************************************
17 // structs
18 // *****************************************************************
19 
20 // sphere coordinates with the following convention:
21 // phi: rotation from positive z-axis (pointing up) to the vector (p-o) (around the rotated y-axis)
22 // theta: rotation from the positive x-axis to the projection of the point in xy plane (around z-axis)
24 {
25  float fDistance;
26  float fPhi; // zenith
27  float fTheta; // azimuth
28 };
29 
30 // transformation from one sphere to another
31 // both spheres wiht same radius
32 // psi: orientation of the view = rotation around the rotated (by spherical coords) x-axis
34 {
36  float fPsi; // orientation
37 };
38 
39 // transformation from one sphere to another
40 // both spheres wiht same radius
41 // fAlpha: rotation around the z axis in counterclockwise direction considering the positive z-axis
42 // fBeta: rotation around the rotated y axis in counterclockwise direction considering the positive y-axis
43 struct TTransform
44 {
45  float fAlpha;
46  float fBeta;
47  Eigen::Vector3d betaAxis;
48  float fPsi;
49  Eigen::Vector3d psiAxis;
50 };
51 
52 // *****************************************************************
53 // structs
54 // *****************************************************************
56 {
59  int nHits;
61 };
62 
63 using TPath = std::vector<TPathElement>;
64 
66 {
67  int nID;
69  // path look-a-like rating
70  float fRating;
71  // visual similarity of last comparison
72  float fSimilarity;
73  // overall visual similarity
75  // overall rating
79 };
THypothesis
Definition: Structs.h:65
TSphereTransform
Definition: Structs.h:33
TSphereCoord::fTheta
float fTheta
Definition: Structs.h:27
THypothesis::bValidTransform
bool bValidTransform
Definition: Structs.h:78
TTransform::fBeta
float fBeta
Definition: Structs.h:46
TTransform::fAlpha
float fAlpha
Definition: Structs.h:45
THypothesis::fSimilarity
float fSimilarity
Definition: Structs.h:72
TPathElement::nHits
int nHits
Definition: Structs.h:59
THypothesis::fAccSimilarity
float fAccSimilarity
Definition: Structs.h:74
TTransform::betaAxis
Eigen::Vector3d betaAxis
Definition: Structs.h:47
TTransform
Definition: Structs.h:43
TPathElement::fBestSimilarity
float fBestSimilarity
Definition: Structs.h:60
TPathElement::Position
TSphereCoord Position
Definition: Structs.h:57
TSphereCoord::fPhi
float fPhi
Definition: Structs.h:26
TTransform::fPsi
float fPsi
Definition: Structs.h:48
THypothesis::fRating
float fRating
Definition: Structs.h:70
THypothesis::fOverallRating
float fOverallRating
Definition: Structs.h:76
TSphereTransform::fPsi
float fPsi
Definition: Structs.h:36
TTransform::psiAxis
Eigen::Vector3d psiAxis
Definition: Structs.h:49
TPathElement::nNodeIndex
int nNodeIndex
Definition: Structs.h:58
TSphereCoord::fDistance
float fDistance
Definition: Structs.h:25
TPathElement
Definition: Structs.h:55
THypothesis::Path
TPath Path
Definition: Structs.h:68
THypothesis::nID
int nID
Definition: Structs.h:67
TSphereTransform::fPosition
TSphereCoord fPosition
Definition: Structs.h:35
TSphereCoord
Definition: Structs.h:23
THypothesis::Transform
TTransform Transform
Definition: Structs.h:77
TPath
std::vector< TPathElement > TPath
Definition: Structs.h:63