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