NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkImageConversion.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 niftkImageConversion_h
16 #define niftkImageConversion_h
17 
18 #include "niftkOpenCVImageConversionExports.h"
19 #include <mitkITKImageImport.txx>
20 #include <opencv2/core/types_c.h>
21 #include <cv.h>
22 
23 namespace niftk
24 {
25 
30 mitk::Image::Pointer NIFTKOPENCVIMAGECONVERSION_EXPORT CreateMitkImage(const IplImage* image);
31 
35 mitk::Image::Pointer NIFTKOPENCVIMAGECONVERSION_EXPORT CreateMitkImage(const cv::Mat* image);
36 
40 cv::Mat NIFTKOPENCVIMAGECONVERSION_EXPORT MitkImageToOpenCVMat ( const mitk::Image::Pointer );
41 
42 } // namespace
43 
44 #endif // niftkImageConversion_h
GLenum GLsizei GLenum GLenum const GLvoid * image
Definition: glew.h:4052
mitk::Image::Pointer CreateMitkImage(const IplImage *image)
Definition: ImageConversion.cxx:123
cv::Mat MitkImageToOpenCVMat(const mitk::Image::Pointer image)
Definition: ImageConversion.cxx:147
Definition: niftkExceptionObject.h:21