NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
mitkImageToNifti.h
Go to the documentation of this file.
1 /*=============================================================================
2 
3  NifTK: A software platform for medical image computing.
4 
5  Copyright (c) University College London (UCL). All rights reserved.
6 
7  This software is distributed WITHOUT ANY WARRANTY; without even
8  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9  PURPOSE.
10 
11  See LICENSE.txt in the top level directory for details.
12 
13 =============================================================================*/
14 
15 #ifndef mitkImageToNifti_h
16 #define mitkImageToNifti_h
17 
18 #include <mitkImage.h>
19 #include <mitkImageDataItem.h>
20 
21 #include <nifti1_io.h>
22 
23 
25 template<typename NIFTI_PRECISION_TYPE>
26 nifti_image *ConvertMitkImageToNifti( mitk::Image::Pointer mitkImage );
27 
28 #ifndef ITK_MANUAL_INSTANTIATION
29 #include "mitkImageToNifti.txx"
30 #endif
31 
32 
33 #endif // MITKIMAGETONIFTI_HEADER_INCLUDED
34 
nifti_image * ConvertMitkImageToNifti(mitk::Image::Pointer mitkImage)
Create a Nifti image from an mitk::Image.