X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=inline;f=appli%2Fexamples%2Fexample_OtsuFilter.cxx;h=21c7a7e2996a7ebbf6163e1865669a6cb18fbd3b;hb=b6c7e73ebcce23619daced67f85d9e1364b33f30;hp=9f91835cfbff2ad65712d494fa86fa0523e3490a;hpb=6df7b3a0946edcecfe55509d0b77d757d76a35ab;p=cpPlugins.git diff --git a/appli/examples/example_OtsuFilter.cxx b/appli/examples/example_OtsuFilter.cxx index 9f91835..21c7a7e 100644 --- a/appli/examples/example_OtsuFilter.cxx +++ b/appli/examples/example_OtsuFilter.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, otsu; reader = plugins.CreateProcessObject( "cpPlugins::ImageReader" ); @@ -61,8 +62,8 @@ int main( int argc, char* argv[] ) writer->SetParameters( writer_params ); // Connect pipeline - otsu->SetInput( 0, reader->GetOutput( 0 ) ); - writer->SetInput( 0, otsu->GetOutput( 0 ) ); + otsu->SetInput( 0, reader->GetOutput< TDataObject >( 0 ) ); + writer->SetInput( 0, otsu->GetOutput< TDataObject >( 0 ) ); // Execute pipeline std::string err = writer->Update( );