From 7bcf6cdd7f0962768ce55ae0ed62d4830d2a2c0b Mon Sep 17 00:00:00 2001 From: tbaudier Date: Fri, 15 Feb 2019 15:05:11 +0100 Subject: [PATCH] Change vnl_math_abs to std:: This changement is mandatory for ITKv5 All recent compiler are able to compile with std:: --- common/clitkMatrix.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/clitkMatrix.cxx b/common/clitkMatrix.cxx index 2c09f31..e4afa7b 100644 --- a/common/clitkMatrix.cxx +++ b/common/clitkMatrix.cxx @@ -35,7 +35,7 @@ Get4x4MatrixDoubleAsString(vtkMatrix4x4 *matrix, for (unsigned int j = 0; j < 4; j++){ double absmax = 0.; for (unsigned int i = 0; i < 4; i++) - absmax = std::max(absmax, vnl_math_abs(matrix->GetElement(i, j))); + absmax = std::max(absmax, std::abs(matrix->GetElement(i, j))); unsigned ndigits = (unsigned)std::max(0.,std::log10(absmax))+1; width[j] = precision+ndigits+3; } -- 2.45.0