-
Notifications
You must be signed in to change notification settings - Fork 76
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
Depth map and intrinsic #25
Comments
Hi, we provide tooling for operating with the depth maps loaded using the Co3DDataset object. Line 92 in 8ad0f03
|
Thanks. I will follow the scripts and let you know how it turns out. |
@colesbury Sorry to bother you agiain. I want to know some details about the depth maps. Do the depth maps directly come from the COLMAP? Have you made any post-processing modifications to the depth maps? |
I guess i found the resaon why the depth map is not working. The depth value in the depth maps should be loaded as 16 bit float number. The same as the _load_16bit_depth Line 728 in b22f145
|
Hello, this projection is exactly what I need in my current project. However I didn't fully understand how you obtained it, I tried quite a few provided functions in this repository but it's a bit unclear how to use them. Please, could you tell us what steps you followed and which functions you used to get this nice point cloud? For example, loading depth as 16 bit had a similar result as your first projection. |
@AlexisStdp Did you use the provided function to load depth? Please note the files are not a standard 16-bit PNG; the function reinterprets binary 16-bit values as floats. |
@shapovalov Thank you very much for your answer! I indeed used some of the provided functions to load depth, and to load RGB image. And some functions to get the frame_annotations. In the provided code, it seems that the function "get_rgbd_point_cloud" is exactly that, but I'm unfortunately unable to make it work because I'm not sure how to get the argument "camera: CamerasBase" (is there a simple way I could get it?). Is there maybe an alternative approach? - I tried using open3d for example but this gives me a "flat" point cloud (where all points seem to lie on a 2D plane). Thanks in advance, and happy new year! |
@AlexisStdp If you want to dig deeper, this is the code that reads the Cameras object: https://github.com/facebookresearch/co3d/blob/main/dataset/co3d_dataset.py#L490 Note that the camera is in NDC coordinate system. Please refer to PyTorch3D documentation for details: https://pytorch3d.org/docs/cameras |
Thanks for your amazing dataset!
I encountered some weird results (as shown below) when planning to back project the depth map to generate the point cloud. The intrinsic matrix is obtained by @liuyuan in issue#4, and the depth map is directly from the
car/106_12650_23736/depths/frame000001.jpg.geometric.png
. It seems the intrinsic matrix is not related to the depth map.Can you give me some quick advice or references?
The text was updated successfully, but these errors were encountered: