[opengtl-commits] [332] even more condensed version of blur.shiva

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


Revision: 332
Author:   cyrille
Date:     2008-08-31 11:19:41 +0200 (Sun, 31 Aug 2008)

Log Message:
-----------
even more condensed version of blur.shiva

Modified Paths:
--------------
    trunk/OpenGTL/OpenShiva/tests/convolution/blur.shiva


Modified: trunk/OpenGTL/OpenShiva/tests/convolution/blur.shiva
===================================================================
--- trunk/OpenGTL/OpenShiva/tests/convolution/blur.shiva	2008-08-31 09:18:10 UTC (rev 331)
+++ trunk/OpenGTL/OpenShiva/tests/convolution/blur.shiva	2008-08-31 09:19:41 UTC (rev 332)
@@ -5,12 +5,6 @@
     float2 point1;
     point1[0] = result.x;
     point1[1] = result.y;
-    float2 point2;
-    point2[0] = result.x - 1;
-    point2[1] = result.y - 1;
-    float2 point3;
-    point3[0] = result.x + 1;
-    point3[1] = result.y + 1;
-    result = ( img.sampleNearest( point1 ) + img.sampleNearest( point2 ) + img.sampleNearest( point3 ) ) / 3.0;
+    result = ( img.sampleNearest( point1 ) + img.sampleNearest( point1 - 1.0 ) + img.sampleNearest( point1 + 1.0 ) ) / 3.0;
   }
 }


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