]> Creatis software - FrontAlgorithms.git/commitdiff
...
authorLeonardo Flórez-Valencia <leonardo.florez@gmail.com>
Tue, 30 May 2017 01:22:03 +0000 (20:22 -0500)
committerLeonardo Flórez-Valencia <leonardo.florez@gmail.com>
Tue, 30 May 2017 01:22:03 +0000 (20:22 -0500)
lib/fpa/Image/Dijkstra.h

index 1df0836a985668ee3f0f526144b63d80f8e2d7f8..7992842295bb400e78461cb18f2e1255047d3d5f 100644 (file)
@@ -12,6 +12,7 @@
 #include <fpa/Image/Filter.h>
 #include <fpa/Image/MinimumSpanningTree.h>
 #include <fpa/Image/Functors/VertexParentBase.h>
+#include <fpa/Image/Functors/VertexIdentity.h>
 
 namespace fpa
 {
@@ -45,7 +46,15 @@ namespace fpa
       itkTypeMacro( fpa::Image::Dijkstra, fpa::Base::Dijkstra );
 
     protected:
-      Dijkstra( ) : Superclass( ) { }
+      Dijkstra( )
+        : Superclass( )
+        {
+          this->SetFunctor(
+            fpa::Image::Functors::
+            VertexIdentity< _TInputImage, typename TFilter::TOutputValue >::
+            New( )
+            );
+        }
       virtual ~Dijkstra( )        { }
 
       virtual void _ConfigureOutputs( const TOutputValue& init_value ) override