OpenCV 4.12.0
开源计算机视觉
加载中...
搜索中...
无匹配项
自动校准

详细描述

函数

bool cv::detail::calibrateRotatingCamera (const std::vector< Mat > &Hs, Mat &K)
 
void cv::detail::estimateFocal (const std::vector< ImageFeatures > &features, const std::vector< MatchesInfo > &pairwise_matches, std::vector< double > &focals)
 估计每个给定相机的焦距。
 
void cv::detail::focalsFromHomography (const Mat &H, double &f0, double &f1, bool &f0_ok, bool &f1_ok)
 尝试从给定的单应矩阵估计焦距,假设相机仅围绕其中心旋转。
 

函数文档

◆ calibrateRotatingCamera()

bool cv::detail::calibrateRotatingCamera ( const std::vector< Mat > & Hs,
Mat & K )
Python
cv.detail.calibrateRotatingCamera(Hs[, K]) -> retval, K

◆ estimateFocal()

void cv::detail::estimateFocal ( const std::vector< ImageFeatures > & features,
const std::vector< MatchesInfo > & pairwise_matches,
std::vector< double > & focals )

#include <opencv2/stitching/detail/autocalib.hpp>

估计每个给定相机的焦距。

参数
features图像的特征。
pairwise_matches所有图像对之间的匹配。
focals每个相机的估计焦距。

◆ focalsFromHomography()

void cv::detail::focalsFromHomography ( const Mat & H,
double & f0,
double & f1,
bool & f0_ok,
bool & f1_ok )
Python
cv.detail.focalsFromHomography(H, f0, f1, f0_ok, f1_ok) ->

#include <opencv2/stitching/detail/autocalib.hpp>

尝试从给定的单应矩阵估计焦距,假设相机仅围绕其中心旋转。

参数
H单应矩阵。
f0沿X轴估计的焦距。
f1沿Y轴估计的焦距。
f0_ok如果f0估计成功,则为True,否则为false。
f1_ok如果f1估计成功,则为True,否则为false。

参见Heung-Yeung Shum和Richard Szeliski的“Construction of Panoramic Image Mosaics with Global and Local Alignment”。