X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=inline;f=appli%2Fexamples%2Fexample_RGBImageToHSVChannels.cxx;h=57d0581ad4ad3a4b165a197c5557079de3c12368;hb=4f9005fe71854d7cff6ab68e48627989a6d1fbc8;hp=03d0eea05ff47583f445fa521681b523f9de02ac;hpb=54e12e973942f6ddfe6c606acf2fd93480ca6165;p=cpPlugins.git diff --git a/appli/examples/example_RGBImageToHSVChannels.cxx b/appli/examples/example_RGBImageToHSVChannels.cxx index 03d0eea..57d0581 100644 --- a/appli/examples/example_RGBImageToHSVChannels.cxx +++ b/appli/examples/example_RGBImageToHSVChannels.cxx @@ -30,6 +30,7 @@ int main( int argc, char* argv[] ) // Create objects typedef cpPlugins::Interface::ProcessObject TProcessObject; + typedef cpPlugins::Interface::DataObject TDataObject; typedef cpPlugins::Interface::Parameters TParameters; cpPlugins::Interface::ProcessObject::Pointer reader, writer, filter; reader = plugins.CreateProcessObject( "cpPlugins::ImageReader" ); @@ -59,8 +60,8 @@ int main( int argc, char* argv[] ) writer->SetParameters( writer_params ); // Connect pipeline - filter->SetInput( 0, reader->GetOutput( 0 ) ); - writer->SetInput( 0, filter->GetOutput( 0 ) ); + filter->SetInput( 0, reader->GetOutput< TDataObject >( 0 ) ); + writer->SetInput( 0, filter->GetOutput< TDataObject >( 0 ) ); // Execute pipeline std::string err = writer->Update( );