From: Leonardo Florez-Valencia Date: Mon, 2 Mar 2015 22:41:15 +0000 (-0500) Subject: Examples updated X-Git-Tag: v0.1~412 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=dd3c26560f279be2902518eff109bdd887cd63d3;p=cpPlugins.git Examples updated --- diff --git a/appli/examples/example_MPR.cxx b/appli/examples/example_MPR.cxx index 6b37e2a..f3dbffb 100644 --- a/appli/examples/example_MPR.cxx +++ b/appli/examples/example_MPR.cxx @@ -53,7 +53,7 @@ int main( int argc, char* argv[] ) // Configure reader TParameters reader_params = reader->GetDefaultParameters( ); - reader_params.SetValueAsString( "FileName", input_image_file ); + reader_params.AddValueToStringList( "FileNames", input_image_file ); reader_params.SetValueAsString( "PixelType", pixel_type ); reader_params.SetValueAsUint( "ImageDimension", 3 ); reader_params.SetValueAsUint( "IsColorImage", 0 ); diff --git a/appli/examples/example_RGBImageToHSVChannels.cxx b/appli/examples/example_RGBImageToHSVChannels.cxx index 84b9d3c..565c44f 100644 --- a/appli/examples/example_RGBImageToHSVChannels.cxx +++ b/appli/examples/example_RGBImageToHSVChannels.cxx @@ -28,7 +28,7 @@ void SaveImage( } // fi // Configure reader TParameters writer_params = writer->GetDefaultParameters( ); - writer_params.SetValueAsString( "FileName", fname ); + writer_params.AddValueToStringList( "FileName", fname ); writer->SetParameters( writer_params ); writer->SetInput( 0, image ); diff --git a/appli/examples/example_ReadImageSeriesWriteImage.cxx b/appli/examples/example_ReadImageSeriesWriteImage.cxx index 6825bd2..6446d78 100644 --- a/appli/examples/example_ReadImageSeriesWriteImage.cxx +++ b/appli/examples/example_ReadImageSeriesWriteImage.cxx @@ -37,7 +37,7 @@ int main( int argc, char* argv[] ) cpPlugins::Interface::ProcessObject::Pointer writer; reader = - plugins.CreateProcessObject( "cpPlugins::Plugins::ImageSeriesReader" ); + plugins.CreateProcessObject( "cpPlugins::Plugins::ImageReader" ); if( reader.IsNull( ) ) { std::cerr << "No suitable reader found in plugins." << std::endl; diff --git a/appli/examples/example_ReadWriteImage.cxx b/appli/examples/example_ReadWriteImage.cxx index 728f817..fa644d0 100644 --- a/appli/examples/example_ReadWriteImage.cxx +++ b/appli/examples/example_ReadWriteImage.cxx @@ -54,7 +54,7 @@ int main( int argc, char* argv[] ) // Configure reader TParameters reader_params = reader->GetDefaultParameters( ); - reader_params.SetValueAsString( "FileName", input_image_file ); + reader_params.AddValueToStringList( "FileNames", input_image_file ); reader_params.SetValueAsString( "PixelType", pixel_type ); reader_params.SetValueAsUint( "ImageDimension", dimensions ); reader_params.SetValueAsUint( "IsColorImage", ( is_color? 1: 0 ) );