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

Source for anisotropic gradients calculation #5

Open
lucagrementieri opened this issue Nov 11, 2024 · 0 comments
Open

Source for anisotropic gradients calculation #5

lucagrementieri opened this issue Nov 11, 2024 · 0 comments

Comments

@lucagrementieri
Copy link

Thank you for the useful repository! Could you provide some references about the formula about the anisotropic gradients and why we need to use such a formula?

In calculate_gradients if the normal is the vector [-1/np.sqrt(2), 0, 1/np.sqrt(2)] I would expect to see a left_gradient with value 1 because the increment of 1 pixel causes an increment in depth by one pixel, but instead the result is 0.29289322.

In general in calculate_gradients I would expect to use the cotangent of horizontal_angle_map to obtain left_gradients but instead the scaling uses 1 - np.sin(horizontal_angle_map). I tried replacing the formula with the one using the cotangent, but the results are not good at all.

Can you explain a bit what is wrong in my reasoning? Any hint about how to recover a metric depth?

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

1 participant