#ifndef __fpa__Image__Dijkstra__hxx__
#define __fpa__Image__Dijkstra__hxx__
-#include <fpa/Image/Functors/SimpleDijkstraCost.h>
+#include <fpa/Image/Functors/VertexCost.h>
// -------------------------------------------------------------------------
template< class _TInputImage, class _TOutputImage >
Dijkstra( )
: Superclass( )
{
- typedef
- fpa::Image::Functors::SimpleDijkstraCost< _TInputImage, TOutput >
- _TCost;
-
+ typedef fpa::Image::Functors::VertexCost< _TInputImage, TOutput > _TCost;
typename _TCost::Pointer cost = _TCost::New( );
- this->SetCostFunction( cost );
+ this->SetVertexFunction( cost );
}
// -------------------------------------------------------------------------
{
}
-// -------------------------------------------------------------------------
-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$