From c06ec8031c5a00490e0ae217ca1b04993fb63591 Mon Sep 17 00:00:00 2001 From: srit Date: Wed, 30 Mar 2011 10:10:05 +0000 Subject: [PATCH] Windows compiling errors (ambiguous call to pow and variable in switch) --- tools/clitkImageArithmGenericFilter.txx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/clitkImageArithmGenericFilter.txx b/tools/clitkImageArithmGenericFilter.txx index 1dd236f..c2f08f8 100755 --- a/tools/clitkImageArithmGenericFilter.txx +++ b/tools/clitkImageArithmGenericFilter.txx @@ -364,9 +364,8 @@ void clitk::ImageArithmGenericFilter::ComputeImage(Iter1 it, Ite } break; case 10: // exp - static const double c = std::pow(2,16); while (!it.IsAtEnd()) { - ito.Set(PixelTypeDownCast((c - (double)it.Get())/mScalar)); + ito.Set(PixelTypeDownCast((0x10000 - (double)it.Get())/mScalar)); ++it; ++ito; } -- 2.47.1