Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

calculate the variance in 3D space? #11

Open
shuochen365 opened this issue Nov 19, 2021 · 1 comment
Open

calculate the variance in 3D space? #11

shuochen365 opened this issue Nov 19, 2021 · 1 comment

Comments

@shuochen365
Copy link

Hi, this is a very interesting work that solves a key problem in NeRF. I don’t quite understand your code for calculating variance. Can you explain why it is calculated like this?

d_outer = d[..., :, None] * d[..., None, :]
eye = jnp.eye(d.shape[-1])
null_outer = eye - d[..., :, None] * (d / d_mag_sq)[..., None, :]
t_cov = t_var[..., None, None] * d_outer[..., None, :, :]
xy_cov = r_var[..., None, None] * null_outer[..., None, :, :]
cov = t_cov + xy_cov
@jonbarron
Copy link
Contributor

Section 1 of the supplemental material has a complete derivation.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants