Skip to content

Commit

Permalink
Black reformatting
Browse files Browse the repository at this point in the history
  • Loading branch information
SBCV committed Jun 13, 2023
1 parent 419a035 commit 398c845
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,12 @@ def _parse_cameras_from_json_data(
# Principal point (in pixel) relative to the image center
width_px = float(intrinsic_params["width"])
height_px = float(intrinsic_params["height"])
cx_px_rel_to_center = float(intrinsic_params["principalPoint"][0])
cy_px_rel_to_center = float(intrinsic_params["principalPoint"][1])
cx_px_rel_to_center = float(
intrinsic_params["principalPoint"][0]
)
cy_px_rel_to_center = float(
intrinsic_params["principalPoint"][1]
)
cx_px = width_px / 2 + cx_px_rel_to_center
cy_px = height_px / 2 + cy_px_rel_to_center
else:
Expand Down

0 comments on commit 398c845

Please sign in to comment.