X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2Ffpa%2FImage%2FDijkstra.hxx;h=bf6b5f09d67f99382f012d75b129d0921adf12bc;hb=490e6f877a3537463de4281b0366337ab73ced99;hp=2831159ca2fc09943f17fc3f2747aa81b064a2e0;hpb=ea46079b5aef76c1782648ed23e70ea944649635;p=FrontAlgorithms.git diff --git a/lib/fpa/Image/Dijkstra.hxx b/lib/fpa/Image/Dijkstra.hxx index 2831159..bf6b5f0 100644 --- a/lib/fpa/Image/Dijkstra.hxx +++ b/lib/fpa/Image/Dijkstra.hxx @@ -1,12 +1,20 @@ #ifndef __fpa__Image__Dijkstra__hxx__ #define __fpa__Image__Dijkstra__hxx__ +#include + // ------------------------------------------------------------------------- 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 ); } // -------------------------------------------------------------------------