[opengtl-commits] [608] fix type of kernel |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/opengtl-commits Archives
]
Revision: 608
Author: cyrille
Date: 2009-03-13 19:35:56 +0100 (Fri, 13 Mar 2009)
Log Message:
-----------
fix type of kernel
Modified Paths:
--------------
trunk/OpenGTL/OpenShiva/OpenShiva/Source.cpp
Modified: trunk/OpenGTL/OpenShiva/OpenShiva/Source.cpp
===================================================================
--- trunk/OpenGTL/OpenShiva/OpenShiva/Source.cpp 2009-03-13 18:26:33 UTC (rev 607)
+++ trunk/OpenGTL/OpenShiva/OpenShiva/Source.cpp 2009-03-13 18:35:56 UTC (rev 608)
@@ -82,6 +82,21 @@
type = parser.sourceType();
outputImageType = parser.outputImageType();
inputImageTypes = parser.inputImageTypes();
+ if( type != Library)
+ {
+ switch( inputImageTypes.size() )
+ {
+ case 0:
+ type = GeneratorKernel;
+ break;
+ case 1:
+ type = FilterKernel;
+ break;
+ default:
+ type = CompositionKernel;
+ break;
+ }
+ }
uptodate = true;
}