bazar
1.3.1
Main Page
Modules
Classes
Files
Examples
File List
File Members
garfeild
keypoints
keypoint.h
Go to the documentation of this file.
1
/*
2
Copyright 2005, 2006 Computer Vision Lab,
3
Ecole Polytechnique Federale de Lausanne (EPFL), Switzerland.
4
All rights reserved.
5
6
This file is part of BazAR.
7
8
BazAR is free software; you can redistribute it and/or modify it under the
9
terms of the GNU General Public License as published by the Free Software
10
Foundation; either version 2 of the License, or (at your option) any later
11
version.
12
13
BazAR is distributed in the hope that it will be useful, but WITHOUT ANY
14
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
15
PARTICULAR PURPOSE. See the GNU General Public License for more details.
16
17
You should have received a copy of the GNU General Public License along with
18
BazAR; if not, write to the Free Software Foundation, Inc., 51 Franklin
19
Street, Fifth Floor, Boston, MA 02110-1301, USA
20
*/
21
#ifndef KEYPOINT_H
22
#define KEYPOINT_H
23
24
#include <cv.h>
25
29
30
31
35
class
keypoint
36
{
37
public
:
38
keypoint
(
void
) {}
39
~keypoint
() {}
40
42
float
u
,
v
;
43
44
float
scale
;
45
float
score
;
46
47
49
float
orientation_in_radians
;
50
52
53
float
meanI
,
sigmaI
;
54
keypoint
*
potential_correspondent
;
55
float
match_score
;
56
int
i_bucket
,
j_bucket
;
57
58
int
index
;
// used to locate the keypoint in the keypoint array after matching.
60
};
61
69
inline
CvPoint
mcvPoint
(
keypoint
& p)
70
{
71
int
s = int(p.
scale
);
72
int
K = 1 << s;
73
return
cvPoint
(
int
(K * p.
u
+ 0.5),
int
(K * p.
v
+ 0.5));
74
}
75
77
#endif // KEYPOINT_H
Generated on Tue Jan 15 2013 12:50:21 for bazar by
1.8.1.2