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 #include <Eigen/Core>
14 
15 // *****************************************************************
16 // structs
17 // *****************************************************************
18 
19 // sphere coordinates with the following convention:
20 // phi: rotation from positive z-axis (pointing up) to the vector (p-o) (around the rotated y-axis)
21 // theta: rotation from the positive x-axis to the projection of the point in xy plane (around z-axis)
23 {
24  float fDistance;
25  float fPhi; // zenith
26  float fTheta; // azimuth
27 };
28 
29 // transformation from one sphere to another
30 // both spheres wiht same radius
31 // psi: orientation of the view = rotation around the rotated (by spherical coords) x-axis
33 {
35  float fPsi; // orientation
36 };
37 
38 // transformation from one sphere to another
39 // both spheres wiht same radius
40 // fAlpha: rotation around the z axis in counterclockwise direction considering the positive z-axis
41 // fBeta: rotation around the rotated y axis in counterclockwise direction considering the positive y-axis
42 struct TTransform
43 {
44  float fAlpha;
45  float fBeta;
46  Eigen::Vector3d betaAxis;
47  float fPsi;
48  Eigen::Vector3d psiAxis;
49 };
50 
51 // *****************************************************************
52 // structs
53 // *****************************************************************
55 {
58  int nHits;
60 };
61 
62 using TPath = std::vector<TPathElement>;
63 
65 {
66  int nID;
68  // path look-a-like rating
69  float fRating;
70  // visual similarity of last comparison
71  float fSimilarity;
72  // overall visual similarity
74  // overall rating
78 };
79 
80 
81 
THypothesis
Definition: Structs.h:64
TSphereTransform
Definition: Structs.h:32
TSphereCoord::fTheta
float fTheta
Definition: Structs.h:26
THypothesis::bValidTransform
bool bValidTransform
Definition: Structs.h:77
TTransform::fBeta
float fBeta
Definition: Structs.h:45
TTransform::fAlpha
float fAlpha
Definition: Structs.h:44
THypothesis::fSimilarity
float fSimilarity
Definition: Structs.h:71
TPathElement::nHits
int nHits
Definition: Structs.h:58
THypothesis::fAccSimilarity
float fAccSimilarity
Definition: Structs.h:73
TTransform::betaAxis
Eigen::Vector3d betaAxis
Definition: Structs.h:46
TTransform
Definition: Structs.h:42
TPathElement::fBestSimilarity
float fBestSimilarity
Definition: Structs.h:59
TPathElement::Position
TSphereCoord Position
Definition: Structs.h:56
TSphereCoord::fPhi
float fPhi
Definition: Structs.h:25
TTransform::fPsi
float fPsi
Definition: Structs.h:47
THypothesis::fRating
float fRating
Definition: Structs.h:69
THypothesis::fOverallRating
float fOverallRating
Definition: Structs.h:75
TSphereTransform::fPsi
float fPsi
Definition: Structs.h:35
TTransform::psiAxis
Eigen::Vector3d psiAxis
Definition: Structs.h:48
TPathElement::nNodeIndex
int nNodeIndex
Definition: Structs.h:57
TSphereCoord::fDistance
float fDistance
Definition: Structs.h:24
TPathElement
Definition: Structs.h:54
THypothesis::Path
TPath Path
Definition: Structs.h:67
THypothesis::nID
int nID
Definition: Structs.h:66
TSphereTransform::fPosition
TSphereCoord fPosition
Definition: Structs.h:34
TSphereCoord
Definition: Structs.h:22
THypothesis::Transform
TTransform Transform
Definition: Structs.h:76
TPath
std::vector< TPathElement > TPath
Definition: Structs.h:62