It is always a good idea to check the dimension inside MeshLab to see if the reprojected point cloud has the right special size. The modified Q matrix makes the point cloud using a Y-axis parallel to the global Y-axis. If a zero-based indexing is used here, the following elements should be modified: The other things that matter are that, as learned from the sample code of OpenCV, certain elements of Q should be modified to make the 3D point cloud lying along the right direction. This may means that we have to do the calibration ourselves by OpenCV. If the OpenCV function reprojectImageTo3D( ) is used, we need the Q matrix that produced by the stereoRectify( ) function. There are a couple of things that we should take care when we doing this. In the sample code of OpenCV, it outputs the 3D point cloud into a PLY file. 1 Exporting the point cloud as a PLY file Well, I mean working at the lab and working from home. I was working on my laptop and desktop at the same time. I would like to share those experiences here because somebody else may be working on similar projects and get frustrated about the situation that there are not enough tutorials that we could just watch and learn.įor this document, I was using Ubuntu 16.04. I experienced a lot of try-and-error loops as I walking through these processes. Composing a MeshLab project (.mlp) file.Exporting the point cloud as a PLY file.Mesh generation and texturing by MeshLab.Stereo calibration and reconstruction by OpenCV.These days, I was working on generating meshes from 3D point cloud obtained from stereo reconstruction. In this post, I will share my experience on mesh generation and texturing. One of them is to be used to generate a 3D mesh and, further, the 3D model of the object in the real world. The point cloud from a stereo reconstruction could be used in many ways.
0 Comments
Leave a Reply. |