this->SetNthOutput( 0, TPath::New( ) );
// Prepare weight function
- typedef fpa::Image::Functors::Dijkstra::Invert< TOutputImage, TScalar > _TWeight;
+ typedef fpa::Image::Functors::Dijkstra::Invert< TScalarImage, TScalar > _TWeight;
typename _TWeight::Pointer weight = _TWeight::New( );
weight->SetAlpha( 1 );
weight->SetBeta( 1 );
// Filters
typedef itk::SignedMaurerDistanceMapImageFilter< TInputImage, TScalarImage > _TDefaultCenterness;
- this->m_Centerness = _TDefaultCenterness::New( );
- this->m_Centerness->InsideIsPositiveOn( );
- this->m_Centerness->SquaredDistanceOn( );
- this->m_Centerness->UseImageSpacingOn( );
+ typename _TDefaultCenterness::Pointer dc = _TDefaultCenterness::New( );
+ dc->InsideIsPositiveOn( );
+ dc->SquaredDistanceOn( );
+ dc->UseImageSpacingOn( );
+ this->m_Centerness = dc;
// Axis extractor
this->m_Dijkstra = TDijkstra::New( );