filter->SetOutsideValue( _TPixel( 0 ) );
filter->Update( );
- // Get output names
- auto pos_name = this->GetOutputData< _TObj >( "PositiveOutput" )->GetName( );
- auto neg_name = this->GetOutputData< _TObj >( "NegativeOutput" )->GetName( );
-
// Connect outputs (and correct their types and names)
_TImage* pos_out = this->GetOutputData< _TImage >( "PositiveOutput" );
if( pos_out == NULL )
{
this->_AddOutput< _TImage >( "PositiveOutput" );
pos_out = this->GetOutputData< _TImage >( "PositiveOutput" );
- pos_out->SetName( pos_name );
} // fi
_TImage* neg_out = this->GetOutputData< _TImage >( "NegativeOutput" );
{
this->_AddOutput< _TImage >( "NegativeOutput" );
neg_out = this->GetOutputData< _TImage >( "NegativeOutput" );
- neg_out->SetName( neg_name );
} // fi
// Assign outputs
- pos_out->SetITK< I >( filter->GetPositiveOutput( ) );
- neg_out->SetITK< I >( filter->GetNegativeOutput( ) );
+ pos_out->SetITK( filter->GetPositiveOutput( ) );
+ neg_out->SetITK( filter->GetNegativeOutput( ) );
return( "" );
}