Hugintrunk
0.1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
hugin_cpfind
localfeatures
CircularKeyPointDescriptor.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2007-2009 Anael Orlinski & Pablo d'Angelo
3
*
4
* This file is part of Panomatic.
5
*
6
* Panomatic is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or
9
* (at your option) any later version.
10
*
11
* Panomatic is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with Panomatic; if not, write to the Free Software
18
* <http://www.gnu.org/licenses/>.
19
*/
20
21
#ifndef __lfeat_circularkeypointdescriptor_h
22
#define __lfeat_circularkeypointdescriptor_h
23
24
#include "
Image.h
"
25
#include "
KeyPoint.h
"
26
#include "
KeyPointDescriptor.h
"
27
28
namespace
lfeat
29
{
30
31
struct
SampleSpec
32
{
33
double
x
,
y
,
size
;
34
};
35
36
class
LFIMPEX
CircularKeyPointDescriptor
:
public
KeyPointDescriptor
37
{
38
public
:
39
CircularKeyPointDescriptor
(
Image
& iImage,
40
std::vector<int> rings = std::vector<int>(),
41
std::vector<double> ring_radius = std::vector<double>(),
42
std::vector<double> ring_gradient_width = std::vector<double>(),
43
int
ori_bins=18,
double
ori_sample_scale=4,
int
ori_gridsize=11);
44
~
CircularKeyPointDescriptor
();
45
46
void
makeDescriptor(
KeyPoint
& ioKeyPoint)
const
;
47
int
getDescriptorLength
()
const
48
{
49
return
_descrLen;
50
};
51
int
assignOrientation(
KeyPoint
& ioKeyPoint,
double
angles[4])
const
;
52
53
protected
:
54
void
createDescriptor(
KeyPoint
& ioKeyPoint)
const
;
55
56
private
:
57
// orig image info
58
Image
&
_image
;
59
int
_vecLen
;
60
int
_subRegions
;
61
int
_descrLen
;
62
SampleSpec
*
_samples
;
63
const
int
_ori_nbins
;
64
const
double
_ori_sample_scale
;
65
const
int
_ori_gridsize
;
66
double
*
_ori_hist
;
67
};
68
69
}
70
71
#endif //__lfeat_keypointdescriptor_h
lfeat::CircularKeyPointDescriptor::_ori_nbins
const int _ori_nbins
Definition:
CircularKeyPointDescriptor.h:63
lfeat::KeyPointDescriptor
Abstract base class for all keypoint descriptors.
Definition:
KeyPointDescriptor.h:31
lfeat::CircularKeyPointDescriptor::_descrLen
int _descrLen
Definition:
CircularKeyPointDescriptor.h:61
lfeat::CircularKeyPointDescriptor::_ori_gridsize
const int _ori_gridsize
Definition:
CircularKeyPointDescriptor.h:65
lfeat::SampleSpec::x
double x
Definition:
CircularKeyPointDescriptor.h:33
lfeat::CircularKeyPointDescriptor::_samples
SampleSpec * _samples
Definition:
CircularKeyPointDescriptor.h:62
lfeat::SampleSpec::y
double y
Definition:
CircularKeyPointDescriptor.h:33
lfeat::SampleSpec::size
double size
Definition:
CircularKeyPointDescriptor.h:33
lfeat::Image
Definition:
Image.h:33
lfeat::CircularKeyPointDescriptor
Definition:
CircularKeyPointDescriptor.h:36
lfeat::KeyPoint
Definition:
KeyPoint.h:32
Image.h
KeyPointDescriptor.h
KeyPoint.h
lfeat::CircularKeyPointDescriptor::_ori_sample_scale
const double _ori_sample_scale
Definition:
CircularKeyPointDescriptor.h:64
lfeat::CircularKeyPointDescriptor::_subRegions
int _subRegions
Definition:
CircularKeyPointDescriptor.h:60
lfeat::CircularKeyPointDescriptor::_image
Image & _image
Definition:
CircularKeyPointDescriptor.h:58
lfeat::CircularKeyPointDescriptor::getDescriptorLength
int getDescriptorLength() const
Definition:
CircularKeyPointDescriptor.h:47
lfeat::SampleSpec
Definition:
CircularKeyPointDescriptor.h:31
LFIMPEX
#define LFIMPEX
Definition:
hugin_shared.h:41
lfeat::CircularKeyPointDescriptor::_vecLen
int _vecLen
Definition:
CircularKeyPointDescriptor.h:59
lfeat::CircularKeyPointDescriptor::_ori_hist
double * _ori_hist
Definition:
CircularKeyPointDescriptor.h:66
Generated on Sun Nov 17 2024 01:25:52 for Hugintrunk by
1.8.5