PointCloudLibrary / PointCloudLibrary/pcl

[Mesh Sampling] Vertex Color change while Downsampling of a Mesh File to PCD

Open
#4,393 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind: bug module: tools needs: author reply status: stale
Dominant language
C++
Stars
11.1k
Forks
4.7k
Avg merge
4d 10h
Merged PRs (30d)
6

Description

Describe the bug

While Downsampling of a Mesh file (.ply) with specific colors into a Point Cloud file using pcl_mesh_sampling.exe using -write_color flag, the color of the points changes in the output file.

Context

Trying to downsample the mesh to a specific number of points by retaining the RGB color values.

Expected behavior

While downsampling the mesh, the points should be colored depending on the nearest (one-ring) vertices in the mesh,

Current Behavior

The points are given color which are not present in the mesh file.

Your Environment (please complete the following information):

  • OS: Windows 10
  • PCL Version [e.g. 1.11.1]

Possible Solution

As mentioned, nearest neighbours should be used while deciding the color of the points in the downsampled file

Additional context

Let me know if any other info is required.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with pcl_mesh_sampling.exe, the -write_color flag, a colored PLY mesh, and the generated PCD file. Compare output colors with the mesh's vertex colors and investigate how colors are selected during downsampling. Done means output points use colors from the nearest one-ring mesh vertices rather than colors absent from the input.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
computer-vision
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.