Skip to content

Commit 34e25ce

Browse files
committed
COMP: Use itk::Math::Absolute in transform inverse test
itk::Math::abs is a legacy alias for Absolute, compiled out under ITK_FUTURE_LEGACY_REMOVE (itkMath.h). The new round-trip check broke the future-legacy-remove nightly; use the non-deprecated itk::Math::Absolute so the test builds in every configuration.
1 parent 3bb3271 commit 34e25ce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/Core/Transform/test/itkTestTransformGetInverse.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ InverseRoundTripTest(const TTransform * forward)
154154
const auto roundTrip = inverse->TransformPoint(forward->TransformPoint(p));
155155
for (unsigned int d = 0; d < 3; ++d)
156156
{
157-
if (itk::Math::abs(roundTrip[d] - p[d]) > 1e-6)
157+
if (itk::Math::Absolute(roundTrip[d] - p[d]) > 1e-6)
158158
{
159159
std::cerr << "ERROR: " << name << " inverse round-trip failed: got " << roundTrip << " expected " << p
160160
<< std::endl;

0 commit comments

Comments
 (0)