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
This involved converting objects to points, and the geometries will likely have precision models applied.
Desktop (please complete the following information):
OS: Likely all
QuPath Version: 0.4.3 (but no known relevant changes made recently, so probably earlier versions too)
Additional context
When fixing this, it may also be possible to make the calculation more efficient by checking for object matches in the source and target list.
The text was updated successfully, but these errors were encountered:
Bug report
Describe the bug
See https://forum.image.sc/t/distances-between-objects-and-annotations/77933
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The distance between an object and itself should always be 0.
The underlying issue seems to be a rounding error due to the way the calculation is performed:
qupath/qupath-core/src/main/java/qupath/lib/analysis/DistanceTools.java
Line 358 in 1368912
This involved converting objects to points, and the geometries will likely have precision models applied.
Desktop (please complete the following information):
Additional context
When fixing this, it may also be possible to make the calculation more efficient by checking for object matches in the source and target list.
The text was updated successfully, but these errors were encountered: