1 #ifndef __fpa__Image__MinimumSpanningTree__hxx__
2 #define __fpa__Image__MinimumSpanningTree__hxx__
4 // -------------------------------------------------------------------------
5 template< unsigned int _VDim >
6 typename fpa::Image::MinimumSpanningTree< _VDim >::
7 TVertex fpa::Image::MinimumSpanningTree< _VDim >::
8 GetParent( const TVertex& v ) const
10 TVertex p = v + this->GetPixel( v );
14 // -------------------------------------------------------------------------
15 template< unsigned int _VDim >
16 void fpa::Image::MinimumSpanningTree< _VDim >::
17 SetParent( const TVertex& v, const TVertex& p )
19 this->SetPixel( v, p - v );
22 // -------------------------------------------------------------------------
23 template< unsigned int _VDim >
24 void fpa::Image::MinimumSpanningTree< _VDim >::
25 GetPath( typename TPath::Pointer& path, const TVertex& a ) const
27 if( path.GetPointer( ) == NULL )
29 path->SetReferenceImage( this );
30 this->Superclass::GetPath( path, a );
33 // -------------------------------------------------------------------------
34 template< unsigned int _VDim >
35 void fpa::Image::MinimumSpanningTree< _VDim >::
37 typename TPath::Pointer& path, const TVertex& a, const TVertex& b
40 if( path.GetPointer( ) == NULL )
42 path->SetReferenceImage( this );
43 this->Superclass::GetPath( path, a, b );
46 // -------------------------------------------------------------------------
47 template< unsigned int _VDim >
48 fpa::Image::MinimumSpanningTree< _VDim >::
49 MinimumSpanningTree( )
54 // -------------------------------------------------------------------------
55 template< unsigned int _VDim >
56 fpa::Image::MinimumSpanningTree< _VDim >::
57 ~MinimumSpanningTree( )
61 #endif // __fpa__Image__MinimumSpanningTree__hxx__