X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2Ffpa%2FBase%2FExtractEndPointsAndBifurcationsFromMinimumSpanningTree.h;h=9a129042e48411d1f30c9d29e2499212696b0b01;hb=e832f438861464a8d521464b61be7e31c896adb8;hp=4fc346070766ae6cd0330ff86b658defdfc46930;hpb=57a315ceb876d4a26e8a88046f5c6ef87989780a;p=FrontAlgorithms.git diff --git a/lib/fpa/Base/ExtractEndPointsAndBifurcationsFromMinimumSpanningTree.h b/lib/fpa/Base/ExtractEndPointsAndBifurcationsFromMinimumSpanningTree.h index 4fc3460..9a12904 100644 --- a/lib/fpa/Base/ExtractEndPointsAndBifurcationsFromMinimumSpanningTree.h +++ b/lib/fpa/Base/ExtractEndPointsAndBifurcationsFromMinimumSpanningTree.h @@ -1,8 +1,10 @@ #ifndef __FPA__BASE__EXTRACTENDPOINTSANDBIFURCATIONSFROMMINIMUMSPANNINGTREE__H__ #define __FPA__BASE__EXTRACTENDPOINTSANDBIFURCATIONSFROMMINIMUMSPANNINGTREE__H__ +#include #include #include +#include #include namespace fpa @@ -22,7 +24,9 @@ namespace fpa typedef itk::SmartPointer< const Self > ConstPointer; typedef _TMST TMinimumSpanningTree; - typedef typename _TMST::TVertex TVertex; + typedef typename _TMST::TVertex TVertex; + typedef std::pair< TVertex, TVertex > TBranch; + typedef std::vector< TBranch > TBranches; typedef cpExtensions::DataStructures::ImageIndexesContainer< TVertex::Dimension > @@ -71,6 +75,9 @@ namespace fpa // Purposely not implemented ExtractEndPointsAndBifurcationsFromMinimumSpanningTree( const Self& other ); Self& operator=( const Self& other ); + + protected: + TBranches m_Branches; }; } // ecapseman