Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A problem about pointcloudsequentialencoder #1056

Closed
Rouen007 opened this issue Mar 15, 2024 · 1 comment
Closed

A problem about pointcloudsequentialencoder #1056

Rouen007 opened this issue Mar 15, 2024 · 1 comment

Comments

@Rouen007
Copy link

When I look up the comment in the point_cloud_sequential_encoder.h file, I found the following sentences:
// This encoder preserves the order and the number of input points, but the
// mapping between point ids and attribute values may be different for the
// decoded point cloud.

And I am confused that the order of the input points does not change, why the mapping may different in decoded point cloud? In my opinion, the mapping remain the initial state is all right.

@ondys
Copy link
Collaborator

ondys commented Mar 21, 2024

The encoder encodes all points sequentially. It does not encode mapping from points to attribute values though. So basically for each point it encodes the values directly. The decoded point cloud will then have identity mapping between point indices and attribute value indices (at least before deduplication takes place).

A more specific example, imagine point cloud with a single attribute and 4 points that are mapped to attribute values [2, 0, 1, 1] (so three unique attribute values). Without deduplication, the decoded point cloud will have 4 points where the points are mapped to attribute values as: [0, 1, 2, 3]. The order of the points will be the same but the decoded values will be in a different order (decoded to encoded mapping will be: (0->2, 1->0, 2->1, 3->1)).

@ondys ondys closed this as completed Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants