X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2Ffpa%2FImage%2FMinimumSpanningTree.hxx;fp=lib%2Ffpa%2FImage%2FMinimumSpanningTree.hxx;h=0000000000000000000000000000000000000000;hb=3c639e5da479c7216a0a302ffa156ac6762caeed;hp=9bd70838ae2066f8a214fbb645eedaeb2edb4dfa;hpb=5bf766068f54d061d3816f4950a076c3cf3a4d8b;p=FrontAlgorithms.git diff --git a/lib/fpa/Image/MinimumSpanningTree.hxx b/lib/fpa/Image/MinimumSpanningTree.hxx deleted file mode 100644 index 9bd7083..0000000 --- a/lib/fpa/Image/MinimumSpanningTree.hxx +++ /dev/null @@ -1,77 +0,0 @@ -// ========================================================================= -// @author Leonardo Florez Valencia -// @email florez-l@javeriana.edu.co -// ========================================================================= - -#ifndef __fpa__Image__MinimumSpanningTree__hxx__ -#define __fpa__Image__MinimumSpanningTree__hxx__ - -// ------------------------------------------------------------------------- -template< unsigned int _VDim > -typename fpa::Image::MinimumSpanningTree< _VDim >:: -TVertex fpa::Image::MinimumSpanningTree< _VDim >:: -GetParent( const TVertex& v ) const -{ - return( v + this->GetPixel( v ) ); -} - -// ------------------------------------------------------------------------- -template< unsigned int _VDim > -void fpa::Image::MinimumSpanningTree< _VDim >:: -SetParent( const TVertex& v, const TVertex& p ) -{ - this->SetPixel( v, p - v ); -} - -// ------------------------------------------------------------------------- -template< unsigned int _VDim > -void fpa::Image::MinimumSpanningTree< _VDim >:: -GetPolyLineParametricPath( - typename TPolyLineParametricPath::Pointer& path, - const TVertex& a - ) const -{ - TVertices v = this->GetPath( a ); - if( path.IsNull( ) ) - path = TPolyLineParametricPath::New( ); - path->SetReferenceImage( this ); - typename TVertices::const_iterator vIt = v.begin( ); - for( ; vIt != v.end( ); ++vIt ) - path->AddVertex( *vIt ); -} - -// ------------------------------------------------------------------------- -template< unsigned int _VDim > -void fpa::Image::MinimumSpanningTree< _VDim >:: -GetPolyLineParametricPath( - typename TPolyLineParametricPath::Pointer& path, - const TVertex& a, const TVertex& b - ) const -{ - TVertices v = this->GetPath( a, b ); - if( path.IsNull( ) ) - path = TPolyLineParametricPath::New( ); - path->SetReferenceImage( this ); - typename TVertices::const_iterator vIt = v.begin( ); - for( ; vIt != v.end( ); ++vIt ) - path->AddVertex( *vIt ); -} - -// ------------------------------------------------------------------------- -template< unsigned int _VDim > -fpa::Image::MinimumSpanningTree< _VDim >:: -MinimumSpanningTree( ) - : Superclass( ) -{ -} - -// ------------------------------------------------------------------------- -template< unsigned int _VDim > -fpa::Image::MinimumSpanningTree< _VDim >:: -~MinimumSpanningTree( ) -{ -} - -#endif // __fpa__Image__MinimumSpanningTree__hxx__ - -// eof - $RCSfile$