]> Creatis software - FrontAlgorithms.git/blobdiff - lib/fpa/Image/Dijkstra.hxx
...
[FrontAlgorithms.git] / lib / fpa / Image / Dijkstra.hxx
index 2831159ca2fc09943f17fc3f2747aa81b064a2e0..bf6b5f09d67f99382f012d75b129d0921adf12bc 100644 (file)
@@ -1,12 +1,20 @@
 #ifndef __fpa__Image__Dijkstra__hxx__
 #define __fpa__Image__Dijkstra__hxx__
 
+#include <fpa/Image/Functors/SimpleDijkstraCost.h>
+
 // -------------------------------------------------------------------------
 template< class _TInputImage, class _TOutputImage >
 fpa::Image::Dijkstra< _TInputImage, _TOutputImage >::
 Dijkstra( )
   : Superclass( )
 {
+  typedef
+    fpa::Image::Functors::SimpleDijkstraCost< _TInputImage, TOutput >
+    _TCost;
+
+  typename _TCost::Pointer cost = _TCost::New( );
+  this->SetCostFunction( cost );
 }
 
 // -------------------------------------------------------------------------