]> Creatis software - cpPlugins.git/commitdiff
Examples updated
authorLeonardo Florez-Valencia <florez-l@javeriana.edu.co>
Mon, 2 Mar 2015 22:41:15 +0000 (17:41 -0500)
committerLeonardo Florez-Valencia <florez-l@javeriana.edu.co>
Mon, 2 Mar 2015 22:41:15 +0000 (17:41 -0500)
appli/examples/example_MPR.cxx
appli/examples/example_RGBImageToHSVChannels.cxx
appli/examples/example_ReadImageSeriesWriteImage.cxx
appli/examples/example_ReadWriteImage.cxx

index 6b37e2a181f5aceaed54bebe8a5730a2d16664ea..f3dbffb7599e0581c058cf7d152086cb08b58510 100644 (file)
@@ -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 );
index 84b9d3cd9a5243a56fb5e23d2a1a6cb354182080..565c44f3703612d2c59e2001819416d83e98cbda 100644 (file)
@@ -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 );
index 6825bd2b8c296f1b34ba195692ae590973061073..6446d78def2f8ebf63c45ec84703aff15e257d30 100644 (file)
@@ -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;
index 728f817f487124f0f68fa7cb22794881079ce5c1..fa644d055832eac3eadd42602d7d021b0049c396 100644 (file)
@@ -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 ) );