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

Download this file

53 lines (43 with data), 1.4 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
53
/**
* @file FeatureMatchingLinearSearch.h
* gsoc2008_feature_matching
*
* This class implements the straightforward way of matching keypoints in a
* given panorama.
*
* @author Onur Kucuktunc <onurcc@gmail.com>
*/
#ifndef _CTRLPNTSALGORITHMS_FEATURE_MATCHING_LINEAR_H
#define _CTRLPNTSALGORITHMS_FEATURE_MATCHING_LINEAR_H
#include <algorithm/PanoramaAlgorithm.h>
#include <panodata/Panorama.h>
#include <cmath>
#include <limits>
class FeatureMatchingLinearSearch : public FeatureMatchingAlgorihtm
{
public:
// constructor and destructor
FeatureMatchingLinearSearch(PanoramaData& panorama)
: PanoramaAlgorithm(panorama), upper_bound_for_distance(100d) {};
FeatureMatchingLinearSearch(PanoramaData& panorama, float ub)
: PanoramaAlgorithm(panorama), upper_bound_for_distance(ub) {};
virtual ~FeatureMatchingLinearSearch() {};
// function to find the control points in the panorama
virtual bool runAlgorithm()
{
o_controlPoints = match(o_panorama, upper_bound_for_distance);
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, float upper_bound_for_distance);
protected:
FPMVector o_controlPoints;
float upper_bound_for_distance;
};
#endif // _H

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

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks