From ee18066e5a762fb5c16538d69e46255ad5ced511 Mon Sep 17 00:00:00 2001
From: Manuel Grizonnet <manuel.grizonnet@gmail.com>
Date: Fri, 18 Jun 2010 16:33:55 +0200
Subject: [PATCH] ENH:replace vcl_pow(ceil,2)  by ceil*ceil

---
 Code/FeatureExtraction/otbContrastTextureFunctor.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Code/FeatureExtraction/otbContrastTextureFunctor.h b/Code/FeatureExtraction/otbContrastTextureFunctor.h
index 97aed313d9..e80712ae1b 100644
--- a/Code/FeatureExtraction/otbContrastTextureFunctor.h
+++ b/Code/FeatureExtraction/otbContrastTextureFunctor.h
@@ -66,7 +66,7 @@ public:
     for (unsigned sB = 0; sB < this->GetHisto()[0].size(); sB++)
       {
       double nCeil = (static_cast<double>(sB) + 0.5) * this->GetNeighBinLength();
-      double nCeilSquare = vcl_pow(nCeil, 2);
+      double nCeilSquare = nCeil*nCeil;
       for (unsigned r = 0; r < this->GetHisto().size(); ++r)
         {
         double rVal = (static_cast<double>(r) + 0.5) * this->GetOffsetBinLength();
-- 
GitLab