![]() In the beginning, we are looking for methods to do some sort of a manual UV mapping. So it becomes important how we could provide information about the texture along with the point cloud before the mesh is generated. The mesh and texture will be generated in MeshLab. Stereo images -> disparity map -> reprojected 3D point cloud -> mesh -> textured mesh Table 1 Processing pipeline of this project. Particularly for our project, we want to bake a texture onto a mesh. I think most of them MeshLab could recognize, but I did not test all of them. One documentation of MATLAB summarized the data types often encountered in a PLY file. But somehow, we always would like a list which makes it clear that what the “pre-defined” data people are using.Īfter some search, I found some useful information. 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: 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. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |