From 0aca3f0a1c51e3867edd13e4eca8fc5bc0b2a057 Mon Sep 17 00:00:00 2001 From: Willyzw Date: Wed, 5 Jun 2024 16:29:34 +0200 Subject: [PATCH] Fix fov xy mismatch --- rasterizer/gsplat-cpu/gsplat_cpu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rasterizer/gsplat-cpu/gsplat_cpu.cpp b/rasterizer/gsplat-cpu/gsplat_cpu.cpp index 694269b..6310288 100644 --- a/rasterizer/gsplat-cpu/gsplat_cpu.cpp +++ b/rasterizer/gsplat-cpu/gsplat_cpu.cpp @@ -61,8 +61,8 @@ project_gaussians_forward_tensor_cpu( const unsigned img_width, const float clip_thresh ){ - float fovx = 0.5f * static_cast(img_height) / fx; - float fovy = 0.5f * static_cast(img_width) / fy; + float fovx = 0.5f * static_cast(img_width) / fx; + float fovy = 0.5f * static_cast(img_height) / fy; // clip_near_plane torch::Tensor Rclip = viewmat.index({"...", Slice(None, 3), Slice(None, 3)});