Hugin trunk 0.1
Loading...
Searching...
No Matches
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
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.
35{
36public:
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
46typedef std::vector<KDElemKeyPoint> KDElemKeyPointVect_t;
47
48
49
50
51
52
53
54
55#endif // __detectpano_panodetectordefs_h
56
std::vector< KDElemKeyPoint > KDElemKeyPointVect_t
KDElemKeyPoint(lfeat::KeyPointPtr &iK, int iNumber)
double & getVectorElem(int iPos) const
std::shared_ptr< KeyPoint > KeyPointPtr
Definition KeyPoint.h:110
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