[opengtl-commits] [349] add a RawToGray shiva program to test raw reading

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


Revision: 349
Author:   cyrille
Date:     2008-09-02 00:36:12 +0200 (Tue, 02 Sep 2008)

Log Message:
-----------
add a RawToGray shiva program to test raw reading

Added Paths:
-----------
    trunk/OpenGTL/OpenShiva/tests/data/dsc_0006-23-07-2008.nef
    trunk/OpenGTL/OpenShiva/tests/raw/
    trunk/OpenGTL/OpenShiva/tests/raw/CMakeLists.txt
    trunk/OpenGTL/OpenShiva/tests/raw/RawToGray.shiva


Added: trunk/OpenGTL/OpenShiva/tests/data/dsc_0006-23-07-2008.nef
===================================================================
(Binary files differ)


Property changes on: trunk/OpenGTL/OpenShiva/tests/data/dsc_0006-23-07-2008.nef
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/OpenGTL/OpenShiva/tests/raw/CMakeLists.txt
===================================================================

Added: trunk/OpenGTL/OpenShiva/tests/raw/RawToGray.shiva
===================================================================
--- trunk/OpenGTL/OpenShiva/tests/raw/RawToGray.shiva	                        (rev 0)
+++ trunk/OpenGTL/OpenShiva/tests/raw/RawToGray.shiva	2008-09-01 22:36:12 UTC (rev 349)
@@ -0,0 +1,9 @@
+kernel Copy
+{
+  void evaluatePixel(image1 img, out pixel4 result)
+  {
+    float v = img.sampleNearest( result.coord );
+    result.data = v;
+    result[3] = 1.0;
+  }
+}


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