gaussian-splatting
gaussian-splatting copied to clipboard
Question about the render function of inverse depth
trafficstars
Hi, thanks for your excellent work.
I noticed that the code computes the weighted average of the inverse depths of all Gaussians to get the rendered inverse depth value.
https://github.com/graphdeco-inria/diff-gaussian-rasterization/blob/9c5c2028f6fbee2be239bc4c9421ff894fe4fbe0/cuda_rasterizer/forward.cu#L374-L375
But from my understanding, it should first compute the weighted average of the depths, and then take the inverse. These two ways are not equivalent, so I’m wondering: is it a bug, or did I misunderstand something?