#include <itkImageRegionIteratorWithIndex.h>
#include <itkMinimumMaximumImageCalculator.h>
+#include <fpa/Image/Functors/VertexIdentity.h>
+#include <fpa/Base/Functors/InvertValue.h>
+
// -------------------------------------------------------------------------
template< class _TImage, class _TScalar >
void fpa::Image::SkeletonFilter< _TImage, _TScalar >::
: Superclass( ),
m_SeedFromMaximumDistance( false )
{
+ typedef fpa::Image::Functors::VertexIdentity< TScalarImage, _TScalar > _TVertexFunc;
+ typedef fpa::Base::Functors::InvertValue< _TScalar, _TScalar > _TValueFunc;
+
+ typename _TVertexFunc::Pointer vertex_func = _TVertexFunc::New( );
+ typename _TValueFunc::Pointer value_func = _TValueFunc::New( );
+ value_func->SetAlpha( 1 );
+ value_func->SetBeta( 1 );
+
+ this->SetFunctor( vertex_func );
+ this->SetFunctor( value_func );
+
this->m_DistanceMap = TDistanceMap::New( );
this->m_DistanceMap->InsideIsPositiveOn( );
this->m_DistanceMap->SquaredDistanceOff( );