void fpaPlugins::ExtractEndPointsAndBifurcationsFromMinimumSpanningTree::
_GenerateData( )
{
- auto image = this->GetInputData( "CostsImage" )->GetITK< itk::DataObject >( );
+ auto image = this->GetInputData< itk::DataObject >( "CostsImage" );
cpPlugins_Image_Demangle_Pixel_AllFloats ( _GD0, image, 2 );
else cpPlugins_Image_Demangle_Pixel_AllFloats( _GD0, image, 3 );
else this->_Error( "Invalid input costs." );
typedef fpa::Image::ExtractEndPointsAndBifurcationsFromMinimumSpanningTree< _TImage, _TMST > _TFilter;
// Check input objects' integrity
- auto dmap = this->GetInputData( "DistanceMap" )->GetITK< _TImage >( );
+ auto dmap = this->GetInputData< _TImage >( "DistanceMap" );
if( dmap == NULL )
this->_Error( "Distance map does not have the same type as the costs image." );
- auto mst = this->GetInputData( "MST" )->GetITK< _TMST >( );
+ auto mst = this->GetInputData< _TMST >( "MST" );
if( mst == NULL )
this->_Error( "No valid input tree." );
);
filter->Update( );
- this->GetOutputData( "EndPoints" )->SetITK( filter->GetEndPoints( ) );
- this->GetOutputData( "Bifurcations" )->SetITK( filter->GetBifurcations( ) );
- this->GetOutputData( "Collisions" )->SetITK( filter->GetCollisions( ) );
- this->GetOutputData( "Skeleton" )->SetITK( filter->GetSkeleton( ) );
+ this->GetOutput( "EndPoints" )->SetITK( filter->GetEndPoints( ) );
+ this->GetOutput( "Bifurcations" )->SetITK( filter->GetBifurcations( ) );
+ this->GetOutput( "Collisions" )->SetITK( filter->GetCollisions( ) );
+ this->GetOutput( "Skeleton" )->SetITK( filter->GetSkeleton( ) );
}
// eof - $RCSfile$