[opengtl-commits] [451] make the "reference" version of ctlcbenchmark do the same as the ctl based one

[ Thread Index | Date Index | More lists.tuxfamily.org/opengtl-commits Archives ]


Revision: 451
Author:   cyrille
Date:     2008-10-13 22:28:41 +0200 (Mon, 13 Oct 2008)

Log Message:
-----------
make the "reference" version of ctlcbenchmark do the same as the ctl based one

Modified Paths:
--------------
    trunk/OpenGTL/OpenCTL/tools/benchmark/CtlBenchmark.cpp


Modified: trunk/OpenGTL/OpenCTL/tools/benchmark/CtlBenchmark.cpp
===================================================================
--- trunk/OpenGTL/OpenCTL/tools/benchmark/CtlBenchmark.cpp	2008-10-12 20:10:46 UTC (rev 450)
+++ trunk/OpenGTL/OpenCTL/tools/benchmark/CtlBenchmark.cpp	2008-10-13 20:28:41 UTC (rev 451)
@@ -178,9 +178,9 @@
   float* arr = m_array->data<float>();
   for( int i = 0; i < m_array->size(); i += pd.bitsSize())
   {
-    arr[0] = interpolateCubic1D( points, arr[0] );
-    arr[1] = interpolateCubic1D( points, arr[1] );
-    arr[2] = interpolateCubic1D( points, arr[2] );
+    arr[0] = interpolateCubic1D( points, interpolateCubic1D( points, arr[0] ) );
+    arr[1] = interpolateCubic1D( points, interpolateCubic1D( points, arr[1] ) );
+    arr[2] = interpolateCubic1D( points, interpolateCubic1D( points, arr[2] ) );
     arr[3] = arr[3];
   }
 }


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/