DSINE icon indicating copy to clipboard operation
DSINE copied to clipboard

Extracting normal vectors from estimated normal map

Open dqj5182 opened this issue 1 year ago • 3 comments
trafficstars

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

dqj5182 avatar Jul 15 '24 05:07 dqj5182

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 avatar Jul 29 '24 08:07 guyuezuntinggithub

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

guyuezuntinggithub avatar Jul 29 '24 09:07 guyuezuntinggithub

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.

baegwangbin avatar Jul 30 '24 21:07 baegwangbin