Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
eigenvivek committed Feb 19, 2024
1 parent af45b54 commit 45d3a23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion diffdrr/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def get_focal_length(
) -> float: # Focal length (in units length)
fx = intrinsic[0, 0]
fy = intrinsic[1, 1]
return abs((fx * delx) + (fy * delx)).item() / 2.0
return abs((fx * delx) + (fy * dely)).item() / 2.0

# %% ../notebooks/api/07_utils.ipynb 5
def get_principal_point(
Expand Down
2 changes: 1 addition & 1 deletion notebooks/api/07_utils.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
") -> float: # Focal length (in units length)\n",
" fx = intrinsic[0, 0]\n",
" fy = intrinsic[1, 1]\n",
" return abs((fx * delx) + (fy * delx)).item() / 2.0"
" return abs((fx * delx) + (fy * dely)).item() / 2.0"
]
},
{
Expand Down

0 comments on commit 45d3a23

Please sign in to comment.