From: Leonardo Flórez-Valencia Date: Mon, 24 Jul 2017 23:22:59 +0000 (-0500) Subject: ... X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=5bf766068f54d061d3816f4950a076c3cf3a4d8b;p=FrontAlgorithms.git ... --- diff --git a/lib/fpa/Image/ExtractAxisFilter.hxx b/lib/fpa/Image/ExtractAxisFilter.hxx index 5c3c4e6..9d14fe4 100644 --- a/lib/fpa/Image/ExtractAxisFilter.hxx +++ b/lib/fpa/Image/ExtractAxisFilter.hxx @@ -104,17 +104,18 @@ ExtractAxisFilter( ) 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( );