// (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() );
}