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

How the calculate the true value of depth and surface normal ? #44

Open
Hui-Yao opened this issue Nov 25, 2020 · 0 comments
Open

How the calculate the true value of depth and surface normal ? #44

Hui-Yao opened this issue Nov 25, 2020 · 0 comments

Comments

@Hui-Yao
Copy link

Hui-Yao commented Nov 25, 2020

Respected sir/madam:
I found that all of the values in depth maps and surfce normal maps are integers, but values of this form can not be used for training.

For the depth value

The statement in matterport-3d dataset is: Every depth image a 16 bit PNG containing the pixel's distance in the z-direction from the camera center (not the euclidean distance from the camera center), 0.25 mm per value (divide by 4000 to get meters).
I want to transform the depth values in meter, if divided the depth value by 4000, a samll value will be got, i think it`s uncorrect.

For the surface normal value

I have got the instance-level plane parameter(a, b, c), but all of the values are integer range from 0 to 255, i dont know how to transform it into [1-, 1]. The statement in matterport-3d is: Normal maps are stored in three 16-bit PNG files (_nx.png, _ny.png, and _nz.png), where the integer values in the file are 32768 x (1 + n), where n is a normal coordinate in range [-1,1].
If let normal value = 32768 x (1 + n), the n is always close to -1, it`s also uncorrect.
2020-11-25 20-23-26 的屏幕截图

Any advice will be grateful !

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