modified focal estimation function in opencv_stitching

This commit is contained in:
Alexey Spizhevoy
2011-05-18 08:56:48 +00:00
parent 34e2c78cec
commit 60e1eda149
3 changed files with 55 additions and 118 deletions

View File

@@ -1,12 +1,15 @@
#ifndef __OPENCV_AUTOCALIB_HPP__
#define __OPENCV_AUTOCALIB_HPP__
#include <vector>
#include <opencv2/core/core.hpp>
#include "matchers.hpp"
// See "Construction of Panoramic Image Mosaics with Global and Local Alignment"
// by Heung-Yeung Shum and Richard Szeliski.
void focalsFromHomography(const cv::Mat &H, double &f0, double &f1, bool &f0_ok, bool &f1_ok);
bool focalsFromFundamental(const cv::Mat &F, double &f0, double &f1);
double estimateFocal(const std::vector<cv::Mat> &images, const std::vector<ImageFeatures> &features,
const std::vector<MatchesInfo> &pairwise_matches);
#endif // __OPENCV_AUTOCALIB_HPP__