Skip to content

Commit

Permalink
Fix fov xy mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
Willyzw committed Jun 5, 2024
1 parent 1ff3d05 commit 0aca3f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rasterizer/gsplat-cpu/gsplat_cpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ project_gaussians_forward_tensor_cpu(
const unsigned img_width,
const float clip_thresh
){
float fovx = 0.5f * static_cast<float>(img_height) / fx;
float fovy = 0.5f * static_cast<float>(img_width) / fy;
float fovx = 0.5f * static_cast<float>(img_width) / fx;
float fovy = 0.5f * static_cast<float>(img_height) / fy;

// clip_near_plane
torch::Tensor Rclip = viewmat.index({"...", Slice(None, 3), Slice(None, 3)});
Expand Down

0 comments on commit 0aca3f0

Please sign in to comment.