NifTK
16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
niftk-nightly
Libraries
ITK
Common
itkITKImageToNiftiImage.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 itkITKImageToNiftiImage_h
16
#define itkITKImageToNiftiImage_h
17
18
#include <itkImage.h>
19
#include <nifti1_io.h>
20
21
23
24
ITK_EXPORT
25
template
<
typename
NIFTI_PRECISION_TYPE,
typename
ITK_VOXEL_TYPE,
unsigned
int
VImageDimension>
26
nifti_image *
ConvertITKImageToNiftiImage
(
typename
itk::Image< ITK_VOXEL_TYPE, VImageDimension >::Pointer itkImage );
27
28
#ifndef ITK_MANUAL_INSTANTIATION
29
#include "itkITKImageToNiftiImage.txx"
30
#endif
31
32
33
#endif // itkITKImageToNiftiImage_h
34
ConvertITKImageToNiftiImage
ITK_EXPORT nifti_image * ConvertITKImageToNiftiImage(typename itk::Image< ITK_VOXEL_TYPE, VImageDimension >::Pointer itkImage)
Create a Nifti image from an itk::Image.
Generated on Thu Aug 4 2016 06:02:47 for NifTK by
1.8.8