]> Creatis software - FrontAlgorithms.git/blobdiff - lib/fpa/Image/MinimumSpanningTree.h
...
[FrontAlgorithms.git] / lib / fpa / Image / MinimumSpanningTree.h
index a93157cac6acb00c3b4d524f66d12e66981af8db..46d2231fc5dab68cf84246bce0f65582a4800395 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <fpa/Base/MinimumSpanningTree.h>
 #include <itkImage.h>
+#include <fpa/Image/PolyLineParametricPath.h>
 
 namespace fpa
 {
@@ -33,6 +34,8 @@ namespace fpa
       typedef typename Superclass::TCollisions    TCollisions;
       typedef typename Superclass::TVertices      TVertices;
 
+      typedef fpa::Image::PolyLineParametricPath< _VDim > TPolyLineParametricPath;
+
     public:
       itkNewMacro( Self );
       itkTypeMacro(
@@ -50,6 +53,15 @@ namespace fpa
           this->SetPixel( v, p - v );
         }
 
+      void GetPath(
+        typename TPolyLineParametricPath::Pointer& path,
+        const TVertex& a
+        ) const;
+      void GetPath(
+        typename TPolyLineParametricPath::Pointer& path,
+        const TVertex& a, const TVertex& b
+        ) const;
+
     protected:
       MinimumSpanningTree( )
         : Superclass( )
@@ -66,6 +78,10 @@ namespace fpa
 
 } // ecapseman
 
+#ifndef ITK_MANUAL_INSTANTIATION
+#  include <fpa/Image/MinimumSpanningTree.hxx>
+#endif // ITK_MANUAL_INSTANTIATION
+
 #endif // __fpa__Image__MinimumSpanningTree__h__
 
 // eof - $RCSfile$