- cpPlugins::Interface::Image* out =
- this->GetOutput< cpPlugins::Interface::Image >( 0 );
- if( out != NULL )
- {
- out->SetITK< _O >( filter->GetOutput( ) );
- return( "" );
- }
- else
- return( "RGBImageToOtherChannelsFilter: output not correctly created." );
-
+ auto out = this->GetOutputData< cpPlugins::Interface::Image >( "Output" );
+ out->SetITK( filter->GetOutput( ) );