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