Hugin trunk
0.1
Loading...
Searching...
No Matches
hugin_cpfind
cpfind
PanoDetectorDefs.h
Go to the documentation of this file.
1
// -*- c-basic-offset: 4 ; tab-width: 4 -*-
2
/*
3
* Copyright (C) 2007-2008 Anael Orlinski
4
*
5
* This file is part of Panomatic.
6
*
7
* Panomatic is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; either version 2 of the License, or
10
* (at your option) any later version.
11
*
12
* Panomatic is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with Panomatic; if not, write to the Free Software
19
* <http://www.gnu.org/licenses/>.
20
*/
21
22
#ifndef __detectpano_panodetectordefs_h
23
#define __detectpano_panodetectordefs_h
24
#include <vector>
25
#include <iostream>
26
27
#include <
localfeatures/KeyPoint.h
>
28
#include "
KDTree.h
"
29
#include "
Utils.h
"
30
31
32
// define KDTree element from a KeyPointPtr
33
// define a class to wrap an Ipoint and make it KDTree compliant.
34
class
KDElemKeyPoint
:
public
KDTreeSpace::KDTreeElemInterface
<double>
35
{
36
public
:
37
KDElemKeyPoint
(
lfeat::KeyPointPtr
&
iK
,
int
iNumber
) :
_ivec
(
iK
->_vec),
_n
(
iNumber
) {}
38
inline
double
&
getVectorElem
(
int
iPos
)
const
39
{
40
return
_ivec
[
iPos
];
// access to the vector elements.
41
}
42
double
*
_ivec
;
43
size_t
_n
;
44
};
45
46
typedef
std::vector<KDElemKeyPoint>
KDElemKeyPointVect_t
;
47
48
49
50
51
52
53
54
55
#endif
// __detectpano_panodetectordefs_h
56
KDTree.h
KeyPoint.h
KDElemKeyPointVect_t
std::vector< KDElemKeyPoint > KDElemKeyPointVect_t
Definition
PanoDetectorDefs.h:46
Utils.h
KDElemKeyPoint
Definition
PanoDetectorDefs.h:35
KDElemKeyPoint::KDElemKeyPoint
KDElemKeyPoint(lfeat::KeyPointPtr &iK, int iNumber)
Definition
PanoDetectorDefs.h:37
KDElemKeyPoint::getVectorElem
double & getVectorElem(int iPos) const
Definition
PanoDetectorDefs.h:38
KDElemKeyPoint::_ivec
double * _ivec
Definition
PanoDetectorDefs.h:42
KDElemKeyPoint::_n
size_t _n
Definition
PanoDetectorDefs.h:43
KDTreeSpace::KDTreeElemInterface
Definition
KDTree.h:45
lfeat::KeyPointPtr
std::shared_ptr< KeyPoint > KeyPointPtr
Definition
KeyPoint.h:110
threshold
std::vector< deghosting::BImagePtr > threshold(const std::vector< deghosting::FImagePtr > &inputImages, const double threshold, const uint16_t flags)
Threshold function used for creating alpha masks for images.
Definition
threshold.h:41
Generated on Sun Sep 6 2026 02:43:02 for Hugin trunk by
1.9.8