_RealGD( const TStringList& names )
{
auto out = this->GetOutputData< cpPlugins::Interface::Image >( "Output" );
- if( out == NULL )
- return( "ImageReader: No output object properly created." );
-
std::string r = "";
if( names.size( ) == 1 )
{
try
{
reader->Update( );
- out->SetITK< I >( reader->GetOutput( ) );
+ out->SetITK( reader->GetOutput( ) );
}
catch( itk::ExceptionObject& err )
{
r = "ImageReader: " + std::string( err.GetDescription( ) );
- out->SetITK< I >( NULL );
+ out->SetITK( NULL );
} // yrt
}
try
{
reader->Update( );
- out->SetITK< I >( reader->GetOutput( ) );
+ out->SetITK( reader->GetOutput( ) );
}
catch( itk::ExceptionObject& err )
{
r = "ImageReader: " + std::string( err.GetDescription( ) );
- out->SetITK< I >( NULL );
+ out->SetITK( NULL );
} // yrt
}