Skip to content

Commit

Permalink
Fix format when saving cameras.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
lahavlipson authored Oct 12, 2024
1 parent c0c5a10 commit 859bbbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dpvo/plot_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def save_output_for_COLMAP(name: str, traj: PoseTrajectory3D, points: np.ndarray
(colmap_dir / "points3D.txt").write_text(points3D)

# camera
(colmap_dir / "cameras.txt").write_text(f"1 PINHOLE {H} {W} {fx} {fy} {cx} {cy}")
(colmap_dir / "cameras.txt").write_text(f"1 PINHOLE {W} {H} {fx} {fy} {cx} {cy}")
print(f"Saved COLMAP-compatible reconstruction in {colmap_dir.resolve()}")

def save_ply(name: str, points: np.ndarray, colors: np.ndarray):
Expand Down

0 comments on commit 859bbbf

Please sign in to comment.