]> Creatis software - FrontAlgorithms.git/blob - appli/CTBronchi/Skeleton.h
...
[FrontAlgorithms.git] / appli / CTBronchi / Skeleton.h
1 // =========================================================================
2 // @author Leonardo Florez Valencia (florez-l@javeriana.edu.co)
3 // =========================================================================
4 #ifndef __CTBronchi__Skeleton__h__
5 #define __CTBronchi__Skeleton__h__
6
7 #include <ivq/ITK/ImageSkeleton.h>
8
9 namespace CTBronchi
10 {
11   /**
12    */
13   template< unsigned int _VDim >
14   class Skeleton
15   {
16   public:
17     static const unsigned int VDim = _VDim;
18     typedef ivq::ITK::ImageSkeleton< VDim > TSkeleton;
19
20   public:
21     Skeleton( );
22     virtual ~Skeleton( );
23
24     bool IsNotNull( ) const;
25     bool IsNull( ) const;
26
27     TSkeleton* Get( );
28     const TSkeleton* Get( ) const;
29     void Set( TSkeleton* sk );
30     void Set( const typename TSkeleton::Pointer& sk );
31
32     double Load( const std::string& fname );
33     double Save( const std::string& fname );
34
35   protected:
36     typename TSkeleton::Pointer m_Skeleton;
37   };
38
39 } // ecapseman
40
41 #include "Skeleton.hxx"
42
43 #endif // __CTBronchi__Skeleton__h__
44
45 // eof - $RCSfile$