Closed thomasmeeus2 closed 2 years ago
Hi,
It seems that the extrinsic matrix is not correct. Try the following codes:
extrinsic = np.vstack((np.hstack((np.array(rot).T, np.array([trans]).T)), np.array([0, 0, 0, 1])))
extrinsic = np.linalg.inv(extrinsic)
For color issues, try to use cv2
instead.
Best, Jia
Dear Jia,
Thank you for the very quick respons. Using cv2 to load in the image does indeed work! However, using the extrinsic matrix that you proposed unfortunately still doesn't align the two point clouds perfectly.
I'm still using the same code as before, only with the change that you proposed. I'm guessing the axis direction of the dataset and the axis direction that Open3D works with are not the same, resulting in the point clouds not aligning. Is there something else I could try?
I'm looking forward to your responds.
Best,
Thomas
Hi Thomas,
Yes, I guess the camera coordinate system in open3d is different from ours.
Another solution may directly convert the RGB-D image to the point clouds by yourself, instead of using built-in functions in open3d.
Best, Jia
Hi Jia,
I accidentally closed the issue. I am indeed now trying to create the point cloud myself. Unfortunately, I'm not very knowledgeable in this. So if you got any tips where I should start, I'll be happy to hear it. Thanks for the help you have given me!
Best, Thomas
Hi @thomasmeeus2 ,
Could you please try the following code?
Best, Jia
Hi Jia,
The code that you have send me does indeed work! Thanks a lot for helping me with my problem.
Kind regards,
Thomas
Hi,
I'm trying to create full point clouds from the RGB and depth images from the full perspective folders. I'm using Open3D to first create RGBD images and then use the intrinsics and extrinsics derived from the "parse_camera_info" function in utils to create the point clouds. However, when I try to merge two point clouds from different images of the same room they don't align properly.
The colors also don't seem to work properly, but this is not as much of a problem than the two point clouds not aligning. I was wondering if I could get some help with my problem. I'll attach my code so it's easier to see where it could go wrong.
Thanks!