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

Extraction of depth map and normal map #30

Open
gwang-kim opened this issue Apr 12, 2024 · 1 comment
Open

Extraction of depth map and normal map #30

gwang-kim opened this issue Apr 12, 2024 · 1 comment

Comments

@gwang-kim
Copy link

Hi,
Thank you for the great work!
I'm assuming that we can render depth and normal map from the learned point clouds.
Could you give any tips for extracting depth and normal map from the learned models?

Thanks,
Bradley

@dendenxu
Copy link
Member

dendenxu commented Jun 5, 2024

Hi, the depth map extraction is already supported and enabled by default.
For offline rendered depth, you can find the rendered depth image if you've run some training at data/result/xxx/DEPTH.
For online rendering, you can find the depth visualization in the Rendering tab and Visualization node.

For normal maps, I think it should be possible to have one by applying normal estimation methods on the point clouds directly (the quality might suffer). But generally, the point cloud representation of 4K4D doesn't incorporate normal extraction directly.
Reference implementation:

def est_pcd_norms():

Another interesting directly is to compute the normal map as the gradient of the depth map. I think it should lead to better quality than the method I mentioned above.

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

2 participants