Skip to content

Commit

Permalink
Removed hard dependency on pybind11's submodule, removed time import
Browse files Browse the repository at this point in the history
  • Loading branch information
EmanueleGiacomini committed Jul 30, 2024
1 parent 7a6dd09 commit a99cd52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ FetchContent_MakeAvailable(Eigen)

find_package(OpenMP)

# find_package(pybind11 CONFIG REQUIRED)
add_subdirectory(extern/pybind11)
find_package(pybind11 CONFIG REQUIRED)

# add_subdirectory(extern/pybind11)
add_library(core INTERFACE)
target_include_directories(core INTERFACE src)
target_link_libraries(core INTERFACE Eigen3::Eigen OpenMP::OpenMP_CXX)
Expand Down
4 changes: 1 addition & 3 deletions pyprojections/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
project_pinhole_inplace, project_spherical_inplace,
inverse_project_pinhole_inplace, inverse_project_spherical_inplace)

import time
import numpy as np
from enum import Enum
from typing import Tuple
Expand Down Expand Up @@ -175,7 +174,6 @@ def zbuf_test(n: int):
assert np.allclose(lut, lut1) and np.allclose(valid_mask, valid_mask1)

assert np.count_nonzero(valid_mask[n:]) == 0
...


if __name__ == '__main__':
Expand Down Expand Up @@ -228,7 +226,7 @@ def zbuf_test(n: int):
new_K, _, vfov, hfov = calculate_spherical_intrinsics(
point_cloud, img_rows, img_cols)

# assert np.allclose(new_K, K, atol=1e-2)
assert np.allclose(new_K, K, atol=1e-2)

if (not np.allclose(dimage, new_range_img, atol=1e-7)):
print("range images are not approximately equals")
Expand Down

0 comments on commit a99cd52

Please sign in to comment.