1 | /* |
---|
2 | * Speeded-Up Robust Features (SURF) |
---|
3 | * http://people.ee.ethz.ch/~surf |
---|
4 | * |
---|
5 | * Authors: Herbert Bay, Andreas Ess, Geert Willems |
---|
6 | * Windows port by Stefan Saur |
---|
7 | * |
---|
8 | * Copyright (2006): ETH Zurich, Switzerland |
---|
9 | * Katholieke Universiteit Leuven, Belgium |
---|
10 | * All rights reserved. |
---|
11 | * |
---|
12 | * For details, see the paper: |
---|
13 | * Herbert Bay, Tinne Tuytelaars, Luc Van Gool, |
---|
14 | * "SURF: Speeded Up Robust Features" |
---|
15 | * Proceedings of the ninth European Conference on Computer Vision, May 2006 |
---|
16 | * |
---|
17 | * Permission to use, copy, modify, and distribute this software and |
---|
18 | * its documentation for educational, research, and non-commercial |
---|
19 | * purposes, without fee and without a signed licensing agreement, is |
---|
20 | * hereby granted, provided that the above copyright notice and this |
---|
21 | * paragraph appear in all copies modifications, and distributions. |
---|
22 | * |
---|
23 | * Any commercial use or any redistribution of this software |
---|
24 | * requires a license from one of the above mentioned establishments. |
---|
25 | * |
---|
26 | * For further details, contact Andreas Ess (aess@vision.ee.ethz.ch). |
---|
27 | */ |
---|
28 | |
---|
29 | #ifndef IPOINT_H |
---|
30 | #define IPOINT_H |
---|
31 | |
---|
32 | #include <stdlib.h> |
---|
33 | |
---|
34 | namespace surf { |
---|
35 | |
---|
36 | class Ipoint { |
---|
37 | public: |
---|
38 | // Constructor |
---|
39 | Ipoint(){ |
---|
40 | ivec = NULL; |
---|
41 | ori = 0.0; |
---|
42 | }; |
---|
43 | |
---|
44 | // Destructor |
---|
45 | ~Ipoint(){ |
---|
46 | if (ivec) |
---|
47 | delete [] ivec; |
---|
48 | }; |
---|
49 | |
---|
50 | // Allocate space |
---|
51 | void allocIvec(const int si){ |
---|
52 | ivec = new double[si]; |
---|
53 | }; |
---|
54 | |
---|
55 | // x, y value of the interest point |
---|
56 | double x, y; |
---|
57 | // detected scale |
---|
58 | double scale; |
---|
59 | // strength of the interest point |
---|
60 | double strength; |
---|
61 | // orientation |
---|
62 | double ori; |
---|
63 | // sign of Laplacian |
---|
64 | int laplace; |
---|
65 | // descriptor |
---|
66 | double *ivec; |
---|
67 | }; |
---|
68 | |
---|
69 | } |
---|
70 | |
---|
71 | #endif // IPOINT_H |
---|