#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 ); } // ------------------------------------------------------------------------- template< class _TInputImage, class _TOutputImage > fpa::Image::Dijkstra< _TInputImage, _TOutputImage >:: ~Dijkstra( ) { } // ------------------------------------------------------------------------- template< class _TInputImage, class _TOutputImage > void fpa::Image::Dijkstra< _TInputImage, _TOutputImage >:: _BeforeGenerateData( ) { this->Superclass::_BeforeGenerateData( ); TCostFunction* cost = dynamic_cast< TCostFunction* >( this->GetCostFunction( ) ); if( cost == NULL ) itkExceptionMacro( << "CostFunction not well defined." ); cost->SetImage( this->GetInput( ) ); } #endif // __fpa__Image__Dijkstra__hxx__ // eof - $RCSfile$