Skip to content

Fix mean calculation in transform lambda#30

Open
IversonHuang wants to merge 1 commit intokoide3:masterfrom
IversonHuang:master
Open

Fix mean calculation in transform lambda#30
IversonHuang wants to merge 1 commit intokoide3:masterfrom
IversonHuang:master

Conversation

@IversonHuang
Copy link
Copy Markdown

The previous implementation only computed the sum of points in each cloud,
but failed to divide by the number of points to obtain the actual mean.
This commit corrects the logic by dividing the accumulated sum by cloud->size(),
ensuring the result is the true centroid (mean) of each point cloud.

fixes incorrect clustering that relied on accurate mean positions
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

Successfully merging this pull request may close these issues.

1 participant