Skip to content

Commit

Permalink
fixup! Add Python support for new experimental projection API
Browse files Browse the repository at this point in the history
  • Loading branch information
eskaur committed Aug 16, 2023
1 parent 1a1eb23 commit e39d99e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions modules/zivid/experimental/projection.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,11 @@ def show_image(camera, image_bgra):
def pixels_from_3d_points(camera, points):
"""Get 2D projector pixel coordinates corresponding to 3D points relative to the camera.
This function takes 3D points in the camera's reference frame and converts them to the
projector's 2D (XY) frame using the internal calibration of a Zivid camera. The returned
points maps to projector pixels as round(X)->col and round(Y)->row.
This function takes 3D points in the camera's reference frame and converts them to the projector frame
using the internal calibration of a Zivid camera. In a Zivid point cloud, each point corresponds to a
pixel coordinate in the camera, but the projector has a slight offset. The translation of each point
depends on the distance between the camera and the point, as well as the distance and angle between the
camera and the projector.
Args:
camera: The Camera instance that the 3D points are in the frame of.
Expand Down

0 comments on commit e39d99e

Please sign in to comment.