Skip to content

Commit

Permalink
Merge pull request #99 from Willyzw/main
Browse files Browse the repository at this point in the history
Fix fov xy mismatch
  • Loading branch information
pierotofy authored Jun 6, 2024
2 parents 214e7cf + 0aca3f0 commit 39f0e04
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 39f0e04

Please sign in to comment.