[e976b6]: src / hugin_base / algorithms / control_points / FeatureMatchingMultiKdTree.h  Maximize  Restore  History

Download this file

52 lines (40 with data), 1.2 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/**
* @file FeatureMatchingMultiKdTree.h
* gsoc2008_feature_matching
*
* Matching keypoints in a panorama using multiple k-d trees.
*
* @author Onur Kucuktunc <onurcc@gmail.com>
*/
#ifndef _CTRLPNTSALGORITHMS_FEATURE_MATCHING_MULTIKD_H
#define _CTRLPNTSALGORITHMS_FEATURE_MATCHING_MULTIKD_H
#include <algorithm/PanoramaAlgorithm.h>
#include <panodata/Panorama.h>
#include "KDTreeKeypointMatcher.h"
namespace HuginBase {
class FeatureMatchingMultiKdTree : public FeatureMatchingAlgorithm
{
public:
// constructor and destructor
FeatureMatchingMultiKdTree(PanoramaData& panorama)
: PanoramaAlgorithm(panorama) {};
virtual ~FeatureMatchingMultiKdTree() {};
// function to find the control points in the panorama
virtual bool runAlgorithm()
{
o_controlPoints = match(o_panorama);
return true; // let's hope so.
}
// getter method for control points
virtual const FPMVector & getControlPoints() const
{
// [TODO] if(!hasRunSuccessfully()) DEBUG;
return o_controlPoints;
}
// matching function
static HuginBase::FPMVector& match(const PanoramaData& pano);
protected:
FPMVector o_controlPoints;
};
}
#endif

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks