MacheteImageFilter()
: Superclass()
{
- this->_AddInput( "Input", true );
+ this->_AddInput( "Input" );
this->_AddOutput< cpPlugins::Interface::Image >("Output");
this->m_Parameters->ConfigureAsReal("Radius");
_GenerateData()
{
auto image = this->GetInputData< cpPlugins::Interface::Image >("Input");
- if (image == NULL)
- return("MacheteImageFilter: No input image.");
-
itk::DataObject* itk_image = NULL;
std::string r = "";
cpPlugins_Image_Demangle_AllScalarTypes(2, image, itk_image, r, _GD0);
{
return(
this->_RealGD< I, itk::Image< unsigned char, I::ImageDimension > >(
- image
- )
+ image
+ )
);
}
// Connect output
auto out = this->GetOutputData< cpPlugins::Interface::Image >("Output");
- if (out != NULL)
- {
- out->SetITK< O >( filter->GetOutput( ) );
- return("");
- }
- else
- return("MacheteImageFilter: output not correctly created.");
+ out->SetITK( filter->GetOutput( ) );
+ return("");
}
// eof - $RCSfile$