bazar
1.3.1
Main Page
Modules
Classes
Files
Examples
File List
File Members
garfeild
viewsets
object_view.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 OBJECT_VIEW_H
22
#define OBJECT_VIEW_H
23
24
#include <cv.h>
25
26
#include <
keypoints/keypoint.h
>
27
#include <
keypoints/yape.h
>
28
#include <
viewsets/image_object_point_match.h
>
29
#include <
keypoints/keypoint.h
>
30
34
class
object_view
35
{
36
public
:
37
38
// Constructor for training stage:
39
object_view
(
PyrImage
*
image
);
40
41
// Constructor for recognition stage (alloc memory once):
42
object_view
(
int
width,
int
height,
int
nbLev);
43
44
~object_view
();
45
46
void
build_from_image_0
(
int
kernelSize = 3);
47
void
build
(IplImage *im,
int
kernelSize = -1);
48
void
comp_gradient
();
49
50
PyrImage
image
;
51
PyrImage
gradX
;
52
PyrImage
gradY
;
53
54
float
affine_projection
[6];
55
int
u0
,
v0
;
56
float
alpha
,
scale
;
57
};
58
59
#endif // OBJECT_VIEW_H
Generated on Tue Jan 15 2013 12:50:21 for bazar by
1.8.1.2