mymath.sty 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. \ProvidesPackage{mymath}
  2. \usepackage{euler}
  3. \usepackage{amssymb}
  4. \usepackage{amsmath}
  5. \usepackage{bbm}
  6. \newcommand{\matTT}[9]{
  7. \[
  8. \left|\begin{array}{ccc}
  9. #1 & #2 & #3\\
  10. #4 & #5 & #6\\
  11. #7 & #8 & #9
  12. \end{array}\right|
  13. \]
  14. }
  15. \newcommand{\fork}[4]{
  16. \left\{
  17. \begin{array}{l l}
  18. #1 & \mbox{#2}\\
  19. #3 & \mbox{#4}\\
  20. \end{array} \right.}
  21. \newcommand{\forkthree}[6]{
  22. \left\{
  23. \begin{array}{l l}
  24. #1 & \mbox{#2}\\
  25. #3 & \mbox{#4}\\
  26. #5 & \mbox{#6}\\
  27. \end{array} \right.}
  28. \newcommand{\forkfour}[8]{
  29. \left\{
  30. \begin{array}{l l}
  31. #1 & \mbox{#2}\\
  32. #3 & \mbox{#4}\\
  33. #5 & \mbox{#6}\\
  34. #7 & \mbox{#8}\\
  35. \end{array} \right.}
  36. \newcommand{\vecthree}[3]{
  37. \begin{bmatrix}
  38. #1\\
  39. #2\\
  40. #3
  41. \end{bmatrix}
  42. }
  43. \newcommand{\vecthreethree}[9]{
  44. \begin{bmatrix}
  45. #1 & #2 & #3\\
  46. #4 & #5 & #6\\
  47. #7 & #8 & #9
  48. \end{bmatrix}
  49. }
  50. \newcommand{\cameramatrix}[1]{
  51. #1 =
  52. \begin{bmatrix}
  53. f_x & 0 & c_x\\
  54. 0 & f_y & c_y\\
  55. 0 & 0 & 1
  56. \end{bmatrix}
  57. }
  58. \newcommand{\distcoeffs}[]{
  59. (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}
  60. }
  61. \newcommand{\distcoeffsfisheye}[]{
  62. (k_1, k_2, k_3, k_4)
  63. }