You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed a potential issue in the calculation of the Chamfer Distance within the codebase. Specifically, the current implementation sums the mean distances rather than taking the average.
Current Implementation
In the current implementation, the Chamfer Distance is calculated as follows:
The Chamfer Distance is typically defined as the average of the mean distances, not the sum. This is in fact, what is written in the project's documentation:
Description
I noticed a potential issue in the calculation of the Chamfer Distance within the codebase. Specifically, the current implementation sums the mean distances rather than taking the average.
Current Implementation
In the current implementation, the Chamfer Distance is calculated as follows:
point-cloud-utils/point_cloud_utils/__init__.py
Line 115 in 387b84f
Issue
The Chamfer Distance is typically defined as the average of the mean distances, not the sum. This is in fact, what is written in the project's documentation:
Source: https://github.com/fwilliams/point-cloud-utils/blob/master/docs/docs/sections/shape_metrics.md#chamfer-distance
The current method calculates the sum of the mean distances, thus performing the following computation instead:
(notice the change in the denominators with respect to the original equation)
Proposed Fix
The correct calculation should take the average of these distances:
The text was updated successfully, but these errors were encountered: