]> Creatis software - clitk.git/commitdiff
Windows compiling errors (ambiguous call to pow and variable in switch)
authorsrit <srit>
Wed, 30 Mar 2011 10:10:05 +0000 (10:10 +0000)
committersrit <srit>
Wed, 30 Mar 2011 10:10:05 +0000 (10:10 +0000)
tools/clitkImageArithmGenericFilter.txx

index 1dd236f1f9e24fb44abd2f83bee7251e0dfc1f13..c2f08f838f0ac1f70cb9be719b08e299ca8c809c 100755 (executable)
@@ -364,9 +364,8 @@ void clitk::ImageArithmGenericFilter<args_info_type>::ComputeImage(Iter1 it, Ite
     }
     break;
   case 10: // exp
-    static const double c = std::pow(2,16);
     while (!it.IsAtEnd()) {
-      ito.Set(PixelTypeDownCast<double, PixelType>((c - (double)it.Get())/mScalar));
+      ito.Set(PixelTypeDownCast<double, PixelType>((0x10000 - (double)it.Get())/mScalar));
       ++it;
       ++ito;
     }