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

Extracting normal vectors from estimated normal map #11

Open
dqj5182 opened this issue Jul 15, 2024 · 3 comments
Open

Extracting normal vectors from estimated normal map #11

dqj5182 opened this issue Jul 15, 2024 · 3 comments

Comments

@dqj5182
Copy link

dqj5182 commented Jul 15, 2024

May I ask how to extract normal vectors from the estimated normal maps which are in rgb format?

@guyuezuntinggithub
Copy link

I have the same question too! I get 3 channel values and make 0 channel to normal_x, 1 to normal_y, and 2 to normal_z. but, the normals are wrong.

@guyuezuntinggithub
Copy link

x=(r/255)⋅2−1
y=(g/255)⋅2−1
z=(b/255)⋅2−1

@baegwangbin
Copy link
Owner

The formula above is correct. But the problem is that, after you quantize the normals into uint8 format, you lose a lot of precision. I would recommend to directly use the network output.

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

3 participants