CPRFilter( )
: Superclass( )
{
- this->_AddInput( "InputImage", true );
- this->_AddInput( "InputAxis", true );
+ this->_AddInput( "InputImage" );
+ this->_AddInput( "InputAxis" );
this->_AddInput( "Interpolator", false );
this->_AddOutput< cpPlugins::Interface::Image >( "Output" );
{
auto image =
this->GetInputData< cpPlugins::Interface::Image >( "InputImage" );
- if( image == NULL )
- return( "CPRFilter: No input image." );
-
itk::DataObject* itk_image = NULL;
std::string r = "";
cpPlugins_Image_Demangle_AllScalarTypes( 3, image, itk_image, r, _GD0 );
this->GetInputData< cpPlugins::Interface::PolyLineParametricPath >(
"InputAxis"
)->GetITK< _Path >( );
+ if( axis == NULL )
+ return( "CPRFilter: Invalid input axis." );
auto w_int =
this->GetInputData< cpPlugins::Interface::DataObject >( "Interpolator" );
_Interpolator* interpolator = NULL;
// Assign output
auto out =
this->GetOutputData< cpPlugins::Interface::Image >( "Output" );
- out->SetITK< I >( filter->GetOutput( ) );
+ out->SetITK( filter->GetOutput( ) );
return( "" );
}