InsightSoftwareConsortium / ITK

Insight Toolkit (ITK) -- Official Repository. ITK builds on a proven, spatially-oriented architecture for processing, segmentation, and registration of scientific images in two, three, or more dimensions.
https://itk.org
Apache License 2.0
1.37k stars 660 forks source link

COMP: Numerical computation precision limit in resampling #4570

Closed hjmjohnson closed 2 months ago

hjmjohnson commented 2 months ago

Coordinate computations for nearest neighbor are computed at the limits of numerical precision for this image during resampling. arm64 and x86_64 compute input continuous index coordinates as 105.39999999999999 vs 105.4 which requires a slight tolerance acceptance in the comparisons

Add --compareRadiusTolerance 1 to test validation.

image

https://open.cdash.org/tests/1506666894

PR Checklist

dzenanz commented 2 months ago

@hjmjohnson did you accidentally deleted this branch? And possibly also #4571?

hjmjohnson commented 2 months ago

@hjmjohnson did you accidentally deleted this branch? And possibly also #4571?

Yes! Thank you for alerting me.