Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mapping 3D points to 2D points #102

Closed
TUYaYa1 opened this issue Sep 18, 2023 · 0 comments
Closed

mapping 3D points to 2D points #102

TUYaYa1 opened this issue Sep 18, 2023 · 0 comments

Comments

@TUYaYa1
Copy link

TUYaYa1 commented Sep 18, 2023

hello, I want to mapping 3D points to 2D point. I use this code :
points = np.array([[238, 332, 304],
[614, 357, 298],
[363, 306, 159]])
camera_projection = geo.CameraProjection
points_world = [geo.point(p) for p in points]
points_index = [np.dot(camera_projection.index_from_world, p) for p in points_world]
But, the code reported an error
“raceback (most recent call last):
File "/home/cui/Deepdrr/keypoint.py", line 120, in
points_index = [np.dot(camera_projection.index_from_world, p) for p in points_world]
File "/home/cui/Deepdrr/keypoint.py", line 120, in
points_index = [np.dot(camera_projection.index_from_world, p) for p in points_world]
File "<array_function internals>", line 200, in dot
TypeError: unsupported operand type(s) for *: 'property' and 'float'

May I ask how I should solve it?

@TUYaYa1 TUYaYa1 closed this as completed Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant