copy#

deltacamera.Camera.copy(*, intrinsic_matrix=None, rot_world_to_cam=None, R=None, optical_center=None, t=None, distortion_model=_UNSET, world_up=None, image_shape=_UNSET, image_size=None)[source]#

Create a copy of this camera, optionally with modified parameters.

Always creates a deep copy of arrays (structural sharing deferred to v1.0).

Parameters:
  • intrinsic_matrix – New intrinsic matrix (will be copied)

  • rot_world_to_cam – New rotation matrix (will be copied)

  • R – Alias for rot_world_to_cam

  • optical_center – New optical center (will be copied)

  • t – Alias for optical_center

  • distortion_model – New distortion model (pass None to remove distortion)

  • world_up – New world up vector (will be copied)

  • image_shape – New image shape (height, width), or None to unset

  • image_size – New image size (width, height)

Returns:

New Camera instance

Return type:

Camera