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