You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: