Skip to content

Commit

Permalink
Update documentation in calibration
Browse files Browse the repository at this point in the history
  • Loading branch information
johningve committed Dec 10, 2024
1 parent 58e5824 commit 0766553
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions modules/zivid/experimental/calibration.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ def intrinsics(camera, settings=None):
with the given settings. If settings are not provided, intrinsics appropriate for the camera's
default 3D capture settings is returned.
For a 2D+3D capture, the 2D color image and 3D point cloud may have different resolutions, depending
on the pixel sampling and resampling settings used in the Settings and in the Settings.color. This function
returns intrinsics applicable for the 3D point cloud resolution. You can call this function with a Settings2D
instance for the 2D intrinsics.
Args:
camera: A Camera instance
settings: Settings or Settings2D to be used to get correct intrinsics (optional)
Expand Down Expand Up @@ -57,8 +62,13 @@ def intrinsics(camera, settings=None):
def estimate_intrinsics(frame):
"""Estimate camera intrinsics for a given frame.
The estimated parameters may be used to project 3D point cloud onto the corresponding 2D image.
This function is for advanced use cases. Otherwise, use intrinsics(camera).
For a 2D+3D capture, the 2D color image and 3D point cloud may have different resolutions, depending
on the pixel sampling and resampling settings used in the Settings and in the Settings.color. This function
returns intrinsics applicable for the 3D point cloud resolution.
Args:
frame: A Frame instance
Expand Down

0 comments on commit 0766553

Please sign in to comment.