mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-01 13:28:59 +08:00
Add annotations
This commit is contained in:
1 parent
2b009c3227
commit
080eef4d78
1 file changed
+1
-1
@@ -26,7 +26,7 @@ import numpy as np
|
|||||||
from nerfstudio.process_data.process_data_utils import CAMERA_MODELS
|
from nerfstudio.process_data.process_data_utils import CAMERA_MODELS
|
||||||
|
|
||||||
|
|
||||||
def rodrigues_vec_to_rotation_mat(rodrigues_vec):
|
def rodrigues_vec_to_rotation_mat(rodrigues_vec: np.ndarray) -> np.ndarray:
|
||||||
theta = np.linalg.norm(rodrigues_vec)
|
theta = np.linalg.norm(rodrigues_vec)
|
||||||
if theta < sys.float_info.epsilon:
|
if theta < sys.float_info.epsilon:
|
||||||
rotation_mat = np.eye(3, dtype=float)
|
rotation_mat = np.eye(3, dtype=float)
|
||||||
|
|||||||
Reference in new issue
Block a user