File: autocalib.rst

package info (click to toggle)
opencv 2.4.9.1%2Bdfsg-1%2Bdeb8u1
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 126,800 kB
  • ctags: 62,729
  • sloc: xml: 509,055; cpp: 490,794; lisp: 23,208; python: 21,174; java: 19,317; ansic: 1,038; sh: 128; makefile: 72
file content (32 lines) | stat: -rw-r--r-- 1,079 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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.

.. ocv:function:: void detail::focalsFromHomography(const Mat &H, double &f0, double &f1, bool &f0_ok, bool &f1_ok)

    :param H: Homography.

    :param f0: Estimated focal length along X axis.

    :param f1: Estimated focal length along Y axis.

    :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.

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

    :param features: Features of images.

    :param pairwise_matches: Matches between all image pairs.

    :param focals: Estimated focal lengths for each camera.