forked from MasteringOpenCV/code
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BundleAdjuster.h
executable file
·24 lines (22 loc) · 965 Bytes
/
BundleAdjuster.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*****************************************************************************
* ExploringSfMWithOpenCV
******************************************************************************
* by Roy Shilkrot, 5th Dec 2012
* http://www.morethantechnical.com/
******************************************************************************
* Ch4 of the book "Mastering OpenCV with Practical Computer Vision Projects"
* Copyright Packt Publishing 2012.
* http://www.packtpub.com/cool-projects-with-opencv/book
*****************************************************************************/
#include <vector>
#include <opencv2/core/core.hpp>
#include "Common.h"
class BundleAdjuster {
public:
void adjustBundle(std::vector<CloudPoint>& pointcloud,
cv::Mat& cam_matrix,
const std::vector<std::vector<cv::KeyPoint> >& imgpts,
std::map<int ,cv::Matx34d>& Pmats);
private:
int Count2DMeasurements(const std::vector<CloudPoint>& pointcloud);
};