fw4spl
itk.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2016.
3  * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4  * published by the Free Software Foundation.
5  * ****** END LICENSE BLOCK ****** */
6 
7 #ifndef __FWITKIO_ITK_HPP__
8 #define __FWITKIO_ITK_HPP__
9 
10 
11 #include <fwData/Image.hpp>
12 
13 #include "fwItkIO/config.hpp"
14 
15 namespace fwItkIO
16 {
17 
26 template< class ITKIMAGE>
27 ::fwData::Image::sptr dataImageFactory( typename ITKIMAGE::Pointer itkImage, bool bufferManagerIsDataImage = true );
28 
37 template< class ITKIMAGE>
38 void dataImageFactory( typename ITKIMAGE::Pointer itkImage, ::fwData::Image::sptr _dataImage,
39  bool bufferManagerIsDataImage = true );
40 
52 template< class ITKIMAGE>
53 typename ITKIMAGE::Pointer itkImageFactory( ::fwData::Image::csptr imageData, bool bufferManagerIsDataImage = true );
54 
55 }
56 
57 #include "fwItkIO/itk.hxx"
58 
59 #endif // __FWITKIO_ITK_HPP__
The namespace fwItkIO contains reader, writer and helper for itk image.
ITKIMAGE::Pointer itkImageFactory(::fwData::Image::csptr imageData, bool bufferManagerIsDataImage=true)
Create an ITK image from an fwData::Image.
Definition: itk.hxx:149
::fwData::Image::sptr dataImageFactory(typename ITKIMAGE::Pointer itkImage, bool bufferManagerIsDataImage=true)
Allocate a new data Image from an itk one.
Definition: itk.hxx:73