Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On the standard deviation of depth map #20

Open
joeyw1030 opened this issue Sep 1, 2022 · 1 comment
Open

On the standard deviation of depth map #20

joeyw1030 opened this issue Sep 1, 2022 · 1 comment

Comments

@joeyw1030
Copy link

std = (((z_vals - depth.unsqueeze(-1)).pow(2) * weights).sum(-1)).sqrt()
I don't quite understand the concept of standard deviation on your side. Can you expand it?

@barbararoessle
Copy link
Owner

This implements a weighted sample standard deviation, i.e., the square root of the weighted sample variance.

z_vals are the depths of samples along the ray
depth is the weighted mean of z_vals
weights are the normalized weights of the samples

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

No branches or pull requests

2 participants