]> Creatis software - FrontAlgorithms.git/commitdiff
...
authorLeonardo Flórez-Valencia <florez-l@javeriana.edu.co>
Mon, 24 Jul 2017 23:22:59 +0000 (18:22 -0500)
committerLeonardo Flórez-Valencia <florez-l@javeriana.edu.co>
Mon, 24 Jul 2017 23:22:59 +0000 (18:22 -0500)
lib/fpa/Image/ExtractAxisFilter.hxx

index 5c3c4e6f0257bb42ed998e69effe9101315c160a..9d14fe4ef18ca53e15bb029c38266a0e5980c4eb 100644 (file)
@@ -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( );