Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Question about how to calculate tilt angle for a new RGBD image like SUN-RGBD dataset? #96

Open
xiaodongww opened this issue Sep 1, 2020 · 3 comments

Comments

@xiaodongww
Copy link

Hi, I noticed that in the training process of SUN RGB-D dataset, the point cloud's axis is aligned to the gravity direction.

If I have a new RGBD image taken from Kinect V2 camera, I will also have to know the tilt angle before sending it into VoteNet. The tilt angle calculation is not mentioned in this repo. Do you have any suggestions on how to calculate it? Are there any ready-made tools available?

Any suggestions will be helpful. Thanks very much!

@Sakshee5
Copy link

Sakshee5 commented Jul 3, 2021

I want to implement a similar strategy for ImVoteNet. Did you get any solution for this?

@rXYZkit
Copy link

rXYZkit commented Jul 29, 2021

I found the following in the paper of sunrgbd:
2.5. Ground truth annotation
For each RGB-D image, we obtain LabelMe-style 2D polygon annotations, 3D bounding box annotations for objects, and 3D polygon annotations for room layouts.

For 3D annotation, the point clouds are first rotated to align with the gravity direction using an automatic algorithm. We estimate the normal direction for each 3D point with the 25 closest 3D points. Then we accumulate a histogram on a 3D half-sphere and pick the maximal count from it to obtain the first axis. For the second axis, we pick the maximal count from the directions orthogonal to the first axis. In this way, we obtain the rotation matrix to rotate the point cloud to align with the gravity direction. We manually adjust the rotation when the algorithm fails.

@yangzilongdmgy
Copy link

I have the same problem

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants