-
Notifications
You must be signed in to change notification settings - Fork 63
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
Converting raw point cloud to depth #99
Comments
Problem is solved, it is crucial to set points[:, 3] = 1 in a loop. My mistake. So the only question remains is why the projection matrix P calculated from (K1, D1, K2, D2, R2, T2, S, S_rect) is different from the one provided in perspective.txt |
Hello @SkurSIv |
Hi!
|
I am trying to get a depth information from the raw point cloud. I followed the code example in scripts (viewer/kitti360Viewer3DRaw.py, helpers/project.py, devkits/common/loadCalibration.py):
And as a result I am getting the non-linear displacement between the depth points and the corresponding image points.
I tried to calculate rectification and projection matrices (R_rect, P) with OpenCV from the data in perspective.txt (K1, D1, K2, D2, R2, T2, S, S_rect). I found out that R_rect from perspective.txt is very close to R_rect_cv, but P_rect from perspective.txt is very different from P_rect_cv. When I tried the algorithm above with R_rect_cv and P_rect_cv, I have got the linear displacement between the depth and the corresponding image points.
So what is the correct way of using the calibration information for getting the depth from the raw point clouds?
My projection code:
`
The text was updated successfully, but these errors were encountered: