points2surf icon indicating copy to clipboard operation
points2surf copied to clipboard

How can I get colored reconstruction fron own point clouds?

Open rootpine opened this issue 1 year ago • 1 comments

Thanks for your excellent works! I have own colored point-clouds data, and I would like to reconstruct mesh from it with color. Currently, it looks like train_p2s_max.sh just outputs gray mesh. Should I need modify make_pc_dataset.py or some other code ...?

rootpine avatar Nov 22 '23 15:11 rootpine

Hi @rootpine ! Coloring is unfortunately not implemented here. You would need to implement it on your own.

For this, I see these options:

  1. Vertex Colors: Quite easy but inefficient or ugly. Use a Scipy KDTree and do a 1-NN query to copy the color to a mesh vertex from the closest point in your point cloud.
  2. Texturing: Not so easy but quite nice. You could try Xatlas , Blender, Meshlab or another texturing method. If this is in the context of photogrammetry (i.e. you have camera poses), you should have a look at NerfStudio and OpenMVG. I'm also trying to figure this out, so I can't help you yet.

The best place to implement those is in source/sdf.py in implicit_surface_to_mesh(). You'll need to load the input point cloud here, so maybe pass the path through.

ErlerPhilipp avatar Nov 22 '23 15:11 ErlerPhilipp

please re-open if you need more help

ErlerPhilipp avatar Jun 07 '24 19:06 ErlerPhilipp