Skip to content

Commit

Permalink
correct distCoeffs of SIMPLE_RADIAL (#337)
Browse files Browse the repository at this point in the history
  • Loading branch information
Master-cai authored Aug 20, 2024
1 parent 1967ca8 commit 435305e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/datasets/colmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def __init__(
params = np.empty(0, dtype=np.float32)
camtype = "perspective"
if type_ == 2 or type_ == "SIMPLE_RADIAL":
params = np.array([cam.k1], dtype=np.float32)
params = np.array([cam.k1, 0.0, 0.0, 0.0], dtype=np.float32)
camtype = "perspective"
elif type_ == 3 or type_ == "RADIAL":
params = np.array([cam.k1, cam.k2, 0.0, 0.0], dtype=np.float32)
Expand Down

0 comments on commit 435305e

Please sign in to comment.