FernPoseEstimator.h
Go to the documentation of this file.
1 /*
2  * This file is part of ALVAR, A Library for Virtual and Augmented Reality.
3  *
4  * Copyright 2007-2012 VTT Technical Research Centre of Finland
5  *
6  * Contact: VTT Augmented Reality Team <alvar.info@vtt.fi>
7  * <http://www.vtt.fi/multimedia/alvar.html>
8  *
9  * ALVAR is free software; you can redistribute it and/or modify it under the
10  * terms of the GNU Lesser General Public License as published by the Free
11  * Software Foundation; either version 2.1 of the License, or (at your option)
12  * any later version.
13  *
14  * This library is distributed in the hope that it will be useful, but WITHOUT
15  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
17  * for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public License
20  * along with ALVAR; if not, see
21  * <http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html>.
22  */
23 
24 #ifndef FERNPOSEESTIMATOR_H
25 #define FERNPOSEESTIMATOR_H
26 
34 #include <map>
35 #include <vector>
36 
37 #include "cv.h"
38 
39 #include "Pose.h"
40 #include "Camera.h"
41 #include "EC.h"
42 
43 namespace alvar
44 {
45 
50 {
51 
52 public:
55 
56  Pose pose() const;
57  Camera camera() const;
58 
59  bool setCalibration(const std::string &filename, int width, int height);
60  void setResolution(int width, int height);
61 
62  typedef std::vector<CvPoint2D64f> ImagePointVector;
63  typedef std::vector<CvPoint3D64f> ModelPointVector;
64  typedef std::map<int, alvar::ExternalContainer> ExternalContainerMap;
65  void calculateFromPointCorrespondences(ModelPointVector &mpts, ImagePointVector &ipts);
66  void updateFromTrackedPoints(ExternalContainerMap &container);
67  void extractPlaneCoordinates(ExternalContainerMap &container);
68 
69 private:
73 };
74 
75 } // namespace alvar
76 
77 #endif
Main ALVAR namespace.
Definition: Alvar.h:174
std::vector< CvPoint2D64f > ImagePointVector
filename
This file implements a camera used for projecting points and computing homographies.
Version of Camera using external container.
Definition: EC.h:392
int height
Definition: GlutViewer.cpp:160
Simple Camera class for calculating distortions, orientation or projections with pre-calibrated camer...
Definition: Camera.h:82
Camera * camera
Pose representation derived from the Rotation class
Definition: Pose.h:50
int width
Definition: GlutViewer.cpp:159
#define ALVAR_EXPORT
Definition: Alvar.h:168
This file implements a collection of External Container (EC) versions of many ALVAR classes...
This file implements a pose.
Pose estimation class for FernImageDetector.
std::vector< CvPoint3D64f > ModelPointVector
std::map< int, alvar::ExternalContainer > ExternalContainerMap


ar_track_alvar
Author(s): Scott Niekum
autogenerated on Mon Jun 10 2019 12:47:04