Skip to content

Commit 485d2b5

Browse files
committed
Merge pull request opencv#18178 from catree:improve_camera_matrix_doc
2 parents 1bea537 + cd01ee9 commit 485d2b5

File tree

3 files changed

+109
-99
lines changed

3 files changed

+109
-99
lines changed

doc/mymath.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ MathJax.Hub.Config(
99
forkfour: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ #7 & \\mbox{#8}\\\\ \\end{array} \\right.", 8],
1010
vecthree: ["\\begin{bmatrix} #1\\\\ #2\\\\ #3 \\end{bmatrix}", 3],
1111
vecthreethree: ["\\begin{bmatrix} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{bmatrix}", 9],
12+
cameramatrix: ["#1 = \\begin{bmatrix} f_x & 0 & c_x\\\\ 0 & f_y & c_y\\\\ 0 & 0 & 1 \\end{bmatrix}", 1],
13+
distcoeffs: ["(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6 [, s_1, s_2, s_3, s_4[, \\tau_x, \\tau_y]]]]) \\text{ of 4, 5, 8, 12 or 14 elements}"],
14+
distcoeffsfisheye: ["(k_1, k_2, k_3, k_4)"],
1215
hdotsfor: ["\\dots", 1],
1316
mathbbm: ["\\mathbb{#1}", 1],
1417
bordermatrix: ["\\matrix{#1}", 1]

doc/mymath.sty

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,20 @@
5151
#7 & #8 & #9
5252
\end{bmatrix}
5353
}
54+
55+
\newcommand{\cameramatrix}[1]{
56+
#1 =
57+
\begin{bmatrix}
58+
f_x & 0 & c_x\\
59+
0 & f_y & c_y\\
60+
0 & 0 & 1
61+
\end{bmatrix}
62+
}
63+
64+
\newcommand{\distcoeffs}[]{
65+
(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6 [, s_1, s_2, s_3, s_4[, \tau_x, \tau_y]]]]) \text{ of 4, 5, 8, 12 or 14 elements}
66+
}
67+
68+
\newcommand{\distcoeffsfisheye}[]{
69+
(k_1, k_2, k_3, k_4)
70+
}

0 commit comments

Comments
 (0)