2012-01-19 10:43:13 +01:00
|
|
|
Autocalibration
|
|
|
|
===============
|
|
|
|
|
|
|
|
.. highlight:: cpp
|
|
|
|
|
|
|
|
detail::focalsFromHomography
|
|
|
|
----------------------------
|
|
|
|
Tries to estimate focal lengths from the given homography under the assumption that the camera undergoes rotations around its centre only.
|
|
|
|
|
2012-05-30 13:13:07 +02:00
|
|
|
.. ocv:function:: void detail::focalsFromHomography(const Mat &H, double &f0, double &f1, bool &f0_ok, bool &f1_ok)
|
2012-01-19 10:43:13 +01:00
|
|
|
|
|
|
|
:param H: Homography.
|
|
|
|
|
|
|
|
:param f0: Estimated focal length along X axis.
|
|
|
|
|
2012-05-30 13:13:07 +02:00
|
|
|
:param f1: Estimated focal length along Y axis.
|
2012-01-19 10:43:13 +01:00
|
|
|
|
|
|
|
:param f0_ok: True, if f0 was estimated successfully, false otherwise.
|
|
|
|
|
|
|
|
:param f1_ok: True, if f1 was estimated successfully, false otherwise.
|
|
|
|
|
|
|
|
detail::estimateFocal
|
|
|
|
---------------------
|
|
|
|
Estimates focal lengths for each given camera.
|
|
|
|
|
2012-05-30 13:13:07 +02:00
|
|
|
.. ocv:function:: void detail::estimateFocal(const std::vector<ImageFeatures> &features, const std::vector<MatchesInfo> &pairwise_matches, std::vector<double> &focals)
|
2012-01-19 10:43:13 +01:00
|
|
|
|
|
|
|
:param features: Features of images.
|
|
|
|
|
2012-01-19 13:08:09 +01:00
|
|
|
:param pairwise_matches: Matches between all image pairs.
|
2012-01-19 10:43:13 +01:00
|
|
|
|
|
|
|
:param focals: Estimated focal lengths for each camera.
|
|
|
|
|