]> Creatis software - crea.git/blobdiff - appli/creaNewProject/NewProject/bbtk_mySamplePackage_PKG/src/bbmySamplePackagemySampleBoxWithVTK.cxx
change to CMakeLists.txt when configuring files
[crea.git] / appli / creaNewProject / NewProject / bbtk_mySamplePackage_PKG / src / bbmySamplePackagemySampleBoxWithVTK.cxx
index 55385341629379c45f46873602f5a5d904344e39..087608ea59434dc64e071d7add57c67799ceca0d 100644 (file)
@@ -21,8 +21,11 @@ void mySampleBoxWithVTK::Process()
 //      (the one provided in the attribute 'name' of the tag 'input')
 //    * TYPE is the C++ type of the input/output
 //      (the one provided in the attribute 'type' of the tag 'input')
-    bbSetOutputOut( bbGetInputIn() );
-    std::cout << "Output value = " <<bbGetOutputOut() << std::endl;
+
+    myVtkPipeline.SetImage( bbGetInputIn() );
+    myVtkPipeline.SetThresholdBetween(  bbGetInputLower(), bbGetInputUpper() );
+    myVtkPipeline.Execute();
+    bbSetOutputOut( myVtkPipeline.GetResult() );
   
 }