DSINE
DSINE copied to clipboard
Extracting normal vectors from estimated normal map
trafficstars
May I ask how to extract normal vectors from the estimated normal maps which are in rgb format?
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.
x=(r/255)⋅2−1 y=(g/255)⋅2−1 z=(b/255)⋅2−1
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.