]> Creatis software - FrontAlgorithms.git/blob - lib/fpa/Image/Dijkstra.hxx
2831159ca2fc09943f17fc3f2747aa81b064a2e0
[FrontAlgorithms.git] / lib / fpa / Image / Dijkstra.hxx
1 #ifndef __fpa__Image__Dijkstra__hxx__
2 #define __fpa__Image__Dijkstra__hxx__
3
4 // -------------------------------------------------------------------------
5 template< class _TInputImage, class _TOutputImage >
6 fpa::Image::Dijkstra< _TInputImage, _TOutputImage >::
7 Dijkstra( )
8   : Superclass( )
9 {
10 }
11
12 // -------------------------------------------------------------------------
13 template< class _TInputImage, class _TOutputImage >
14 fpa::Image::Dijkstra< _TInputImage, _TOutputImage >::
15 ~Dijkstra( )
16 {
17 }
18
19 // -------------------------------------------------------------------------
20 template< class _TInputImage, class _TOutputImage >
21 void fpa::Image::Dijkstra< _TInputImage, _TOutputImage >::
22 _BeforeGenerateData( )
23 {
24   this->Superclass::_BeforeGenerateData( );
25
26   TCostFunction* cost =
27     dynamic_cast< TCostFunction* >( this->GetCostFunction( ) );
28   if( cost == NULL )
29     itkExceptionMacro( << "CostFunction not well defined." );
30   cost->SetImage( this->GetInput( ) );
31 }
32
33 #endif // __fpa__Image__Dijkstra__hxx__
34
35 // eof - $RCSfile$