

You could put anything you want as long as the data type is defined and the downstream program could recognize the data. Unfortunately, I have clear answers on none of them.įirst of all, it seems to me that the PLY file format only makes constraints on the data type we could use, but not on the data itself. The other is what information MeshLab is expecting or MeshLab could make use of. One is what kind of information is allowed to put into a PLY file. I face two issues when I was trying to figure out what I could put inside a PLY file. Sometimes we would like the PLY file to contain additional information. ↑ġ.3 Per-vertex information and UV coordinate I use the “Measuring Tool” in figure 1 to measure the known distance between two points.įigure 1 The “Measuring Tool” of MeshLab. 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:
Meshlab 2016 code#
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.
