Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
include
ivtrecognition
TexturedRecognition
HoughSpace2D.h
Go to the documentation of this file.
1
// *****************************************************************
2
// Filename: HoughSpace2D.h
3
// Copyright: Pedram Azad, Chair Prof. Dillmann (IAIM),
4
// Institute for Computer Science and Engineering (CSE),
5
// University of Karlsruhe. All rights reserved.
6
// Author: Pedram Azad
7
// Date: 2005
8
// *****************************************************************
9
10
11
#ifndef _HOUGH_SPACE_2D_H_
12
#define _HOUGH_SPACE_2D_H_
13
14
15
// *****************************************************************
16
// necessary includes
17
// *****************************************************************
18
19
#include "
DataStructures/DynamicArray.h
"
20
21
22
// *****************************************************************
23
// define
24
// *****************************************************************
25
26
27
28
// *****************************************************************
29
// forward declarations
30
// *****************************************************************
31
32
class
CFeatureEntry
;
33
class
CByteImage
;
34
struct
Mat3d
;
35
struct
Vec2d
;
36
37
38
39
// *****************************************************************
40
// CFeatureSet
41
// *****************************************************************
42
43
class
CHoughSpace2D
44
{
45
public
:
46
// constructor
47
CHoughSpace2D
(
int
nImageWidth,
int
nImageHeight,
float
fScale);
48
49
// CFeatureSet
50
~CHoughSpace2D
();
51
52
53
// public methods
54
void
InitNextRun
();
55
void
Vote
(
const
CFeatureEntry
*pFeature,
const
CFeatureEntry
*pMatchedFeature,
const
Vec2d
¢er);
56
bool
CheckAndDetermineHomography
(
Mat3d
&A,
Vec2d
¢roid,
int
&nResultMatches,
float
&fResultError,
CByteImage
*pResultImage = 0);
57
58
void
SetRecognitionThresholds
(
int
nMinValidFeatures,
float
fMaxError);
59
60
void
WriteHoughSpaceImage
();
61
62
const
Vec2d
*
GetValidFeatures
() {
return
m_pValidFeatures
; }
63
const
Vec2d
*
GetMatchedFeatures
() {
return
m_pMatchedFeatures
; }
64
int
GetNumberOfValidFeatures
() {
return
m_nValidFeatures
; }
65
66
void
SetVerbose
(
bool
bVerbose) {
m_bVerbose
= bVerbose; }
67
68
69
private
:
70
// private class definitions
71
class
CHoughSpace2DBin
72
{
73
public
:
74
CHoughSpace2DBin
()
75
{
76
nID
= 0;
77
nHits
= 0;
78
}
79
80
int
nID
;
81
unsigned
short
nHits
;
82
};
83
84
class
CFeaturePair
:
public
CDynamicArrayElement
85
{
86
public
:
87
CFeaturePair
(
const
CFeatureEntry
*pFeature_,
const
CFeatureEntry
*pMatchedFeature_) : pFeature(pFeature_), pMatchedFeature(pMatchedFeature_)
88
{
89
}
90
91
const
CFeatureEntry
*
pFeature
;
92
const
CFeatureEntry
*
pMatchedFeature
;
93
int
offsets[6];
94
};
95
96
// private attributes
97
CHoughSpace2DBin
**
m_ppHoughSpace
;
98
int
m_nWidth
;
99
int
m_nHeight
;
100
float
m_fScale
;
101
int
m_nCurrentID
;
102
int
m_nMaxHits
;
103
int
m_nBestOffset
;
104
float
m_fBestScale
;
105
106
CDynamicArray
*
m_pPairList
;
107
108
Vec2d
*
m_pValidFeatures
;
109
Vec2d
*
m_pMatchedFeatures
;
110
int
m_nValidFeatures
;
111
112
int
m_nMinValidFeatures
;
113
float
m_fMaxError
;
114
115
bool
m_bVerbose
;
116
};
117
118
119
120
#endif
/* _HOUGH_SPACE_2D_H_ */
CHoughSpace2D::SetRecognitionThresholds
void SetRecognitionThresholds(int nMinValidFeatures, float fMaxError)
CHoughSpace2D::m_bVerbose
bool m_bVerbose
Definition:
HoughSpace2D.h:115
CHoughSpace2D::CFeaturePair::pMatchedFeature
const CFeatureEntry * pMatchedFeature
Definition:
HoughSpace2D.h:92
CDynamicArray
Definition:
DynamicArray.h:78
CHoughSpace2D::CheckAndDetermineHomography
bool CheckAndDetermineHomography(Mat3d &A, Vec2d ¢roid, int &nResultMatches, float &fResultError, CByteImage *pResultImage=0)
CHoughSpace2D
Definition:
HoughSpace2D.h:43
CHoughSpace2D::m_ppHoughSpace
CHoughSpace2DBin ** m_ppHoughSpace
Definition:
HoughSpace2D.h:97
CFeatureEntry
Base class for the representation of local features.
Definition:
FeatureEntry.h:72
CHoughSpace2D::Vote
void Vote(const CFeatureEntry *pFeature, const CFeatureEntry *pMatchedFeature, const Vec2d ¢er)
CByteImage
Data structure for the representation of 8-bit grayscale images and 24-bit RGB (or HSV) color images ...
Definition:
ByteImage.h:80
CHoughSpace2D::m_pValidFeatures
Vec2d * m_pValidFeatures
Definition:
HoughSpace2D.h:108
CHoughSpace2D::m_fBestScale
float m_fBestScale
Definition:
HoughSpace2D.h:104
CHoughSpace2D::m_nHeight
int m_nHeight
Definition:
HoughSpace2D.h:99
CHoughSpace2D::m_fMaxError
float m_fMaxError
Definition:
HoughSpace2D.h:113
CHoughSpace2D::InitNextRun
void InitNextRun()
CHoughSpace2D::CHoughSpace2DBin::nID
int nID
Definition:
HoughSpace2D.h:80
CHoughSpace2D::CHoughSpace2DBin
Definition:
HoughSpace2D.h:71
CHoughSpace2D::m_nBestOffset
int m_nBestOffset
Definition:
HoughSpace2D.h:103
CHoughSpace2D::m_nWidth
int m_nWidth
Definition:
HoughSpace2D.h:98
CHoughSpace2D::WriteHoughSpaceImage
void WriteHoughSpaceImage()
CDynamicArrayElement
Definition:
DynamicArray.h:57
CHoughSpace2D::m_nMinValidFeatures
int m_nMinValidFeatures
Definition:
HoughSpace2D.h:112
CHoughSpace2D::m_nCurrentID
int m_nCurrentID
Definition:
HoughSpace2D.h:101
CHoughSpace2D::m_fScale
float m_fScale
Definition:
HoughSpace2D.h:100
CHoughSpace2D::CHoughSpace2DBin::nHits
unsigned short nHits
Definition:
HoughSpace2D.h:81
CHoughSpace2D::CFeaturePair::CFeaturePair
CFeaturePair(const CFeatureEntry *pFeature_, const CFeatureEntry *pMatchedFeature_)
Definition:
HoughSpace2D.h:87
CHoughSpace2D::CFeaturePair::pFeature
const CFeatureEntry * pFeature
Definition:
HoughSpace2D.h:91
CHoughSpace2D::CHoughSpace2DBin::CHoughSpace2DBin
CHoughSpace2DBin()
Definition:
HoughSpace2D.h:74
CHoughSpace2D::GetValidFeatures
const Vec2d * GetValidFeatures()
Definition:
HoughSpace2D.h:62
CHoughSpace2D::CFeaturePair
Definition:
HoughSpace2D.h:84
DynamicArray.h
Vec2d
Data structure for the representation of a 2D vector.
Definition:
Math2d.h:82
CHoughSpace2D::GetMatchedFeatures
const Vec2d * GetMatchedFeatures()
Definition:
HoughSpace2D.h:63
CHoughSpace2D::m_pPairList
CDynamicArray * m_pPairList
Definition:
HoughSpace2D.h:106
CHoughSpace2D::~CHoughSpace2D
~CHoughSpace2D()
CHoughSpace2D::m_pMatchedFeatures
Vec2d * m_pMatchedFeatures
Definition:
HoughSpace2D.h:109
CHoughSpace2D::CHoughSpace2D
CHoughSpace2D(int nImageWidth, int nImageHeight, float fScale)
CHoughSpace2D::m_nValidFeatures
int m_nValidFeatures
Definition:
HoughSpace2D.h:110
Mat3d
Data structure for the representation of a 3x3 matrix.
Definition:
Math3d.h:93
CHoughSpace2D::GetNumberOfValidFeatures
int GetNumberOfValidFeatures()
Definition:
HoughSpace2D.h:64
CHoughSpace2D::SetVerbose
void SetVerbose(bool bVerbose)
Definition:
HoughSpace2D.h:66
CHoughSpace2D::m_nMaxHits
int m_nMaxHits
Definition:
HoughSpace2D.h:102
asr_ivt
Author(s): Allgeyer Tobias, Hutmacher Robin, Kleinert Daniel, Meißner Pascal, Scholz Jonas, Stöckle Patrick
autogenerated on Mon Dec 2 2019 03:47:28