@@ -42,12 +42,11 @@ def cameras_from_opencv_projection(
42
42
followed by the homogenization of `x_screen_opencv`.
43
43
44
44
Note:
45
- The parameters `R, tvec, camera_matrix` correspond to the outputs of
46
- `cv2.decomposeProjectionMatrix`.
47
-
48
- The `rvec` parameter of the `cv2.projectPoints` is an axis-angle vector
49
- that can be converted to the rotation matrix `R` expected here by
50
- calling the `so3_exp_map` function.
45
+ The parameters `R, tvec, camera_matrix` correspond to the inputs of
46
+ `cv2.projectPoints(x_world, rvec, tvec, camera_matrix, [])`,
47
+ where `rvec` is an axis-angle vector that can be obtained from
48
+ the rotation matrix `R` expected here by calling the `so3_log_map` function.
49
+ Correspondingly, `R` can be obtained from `rvec` by calling `so3_exp_map`.
51
50
52
51
Args:
53
52
R: A batch of rotation matrices of shape `(N, 3, 3)`.
@@ -73,12 +72,11 @@ def opencv_from_cameras_projection(
73
72
of `cameras_from_opencv_projection`.
74
73
75
74
Note:
76
- The outputs `R, tvec, camera_matrix` correspond to the outputs of
77
- `cv2.decomposeProjectionMatrix`.
78
-
79
- The `rvec` parameter of the `cv2.projectPoints` is an axis-angle vector
80
- that can be converted from the returned rotation matrix `R` here by
81
- calling the `so3_log_map` function.
75
+ The outputs `R, tvec, camera_matrix` correspond to the inputs of
76
+ `cv2.projectPoints(x_world, rvec, tvec, camera_matrix, [])`,
77
+ where `rvec` is an axis-angle vector that can be obtained from
78
+ the rotation matrix `R` output here by calling the `so3_log_map` function.
79
+ Correspondingly, `R` can be obtained from `rvec` by calling `so3_exp_map`.
82
80
83
81
Args:
84
82
cameras: A batch of `N` cameras in the PyTorch3D convention.
0 commit comments