SLAMflex SE  0.1.0
SLAMflex provides detection and tracking of dominant planes for smartphone devices. This plane can then be used to show AR content relative to the plane orientation. The detection of plane is performed in the field of view of the smartphone camera. In subsequent frames it is tracked. The interface returns the plane position and orientation.
Relocaliser.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Copyright 2008 Isis Innovation Limited
3 //
4 // SmallBlurryImage-based relocaliser
5 //
6 // Each KF stores a small, blurred version of itself;
7 // Just compare a small, blurred version of the input frame to all the KFs,
8 // choose the closest match, and then estimate a camera rotation by direct image
9 // minimisation.
10 
11 #ifndef __RELOCALISER_H
12 #define __RELOCALISER_H
13 #include "se2.h"
14 #include "ATANCamera.h"
15 #include "SmallBlurryImage.h"
16 
17 #include "Map.h"
18 #include "globals.h"
19 
20 
22 {
23 public:
24  Relocaliser(Map &map, ATANCamera &camera);
25  bool AttemptRecovery(KeyFrame &k);
26  SE3<> BestPose();
27 
28 protected:
29  void ScoreKFs(KeyFrame &kCurrentF);
32  int mnBest;
33  double mdBestScore;
36 
37 };
38 #endif
39 
40 
41 
42 
43 
44 
45 
46 
47 
ATANCamera mCamera
Definition: Relocaliser.h:31
Definition: se2.h:52
Map & mMap
Definition: Relocaliser.h:30
Definition: se3.h:50
void ScoreKFs(KeyFrame &kCurrentF)
Definition: Relocaliser.cpp:47
double mdBestScore
Definition: Relocaliser.h:33
Definition: Map.h:24
bool AttemptRecovery(KeyFrame &k)
Definition: Relocaliser.cpp:20
Relocaliser(Map &map, ATANCamera &camera)
Definition: Relocaliser.cpp:9
SE3 BestPose()
Definition: Relocaliser.cpp:15