1 #ifndef __fpa__Image__Dijkstra__hxx__
2 #define __fpa__Image__Dijkstra__hxx__
4 #include <fpa/Image/Functors/SimpleDijkstraCost.h>
6 // -------------------------------------------------------------------------
7 template< class _TInputImage, class _TOutputImage >
8 fpa::Image::Dijkstra< _TInputImage, _TOutputImage >::
13 fpa::Image::Functors::SimpleDijkstraCost< _TInputImage, TOutput >
16 typename _TCost::Pointer cost = _TCost::New( );
17 this->SetCostFunction( cost );
20 // -------------------------------------------------------------------------
21 template< class _TInputImage, class _TOutputImage >
22 fpa::Image::Dijkstra< _TInputImage, _TOutputImage >::
27 // -------------------------------------------------------------------------
28 template< class _TInputImage, class _TOutputImage >
29 void fpa::Image::Dijkstra< _TInputImage, _TOutputImage >::
30 _BeforeGenerateData( )
32 this->Superclass::_BeforeGenerateData( );
35 dynamic_cast< TCostFunction* >( this->GetCostFunction( ) );
37 itkExceptionMacro( << "CostFunction not well defined." );
38 cost->SetImage( this->GetInput( ) );
41 #endif // __fpa__Image__Dijkstra__hxx__