NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
ImageConversion.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 ImageConversion_h
16 #define ImageConversion_h
17 
18 #include "niftkOpenCVExports.h"
19 #include <mitkITKImageImport.txx>
20 #include <opencv2/core/types_c.h>
21 #include <cv.h>
22 
23 
24 namespace niftk
25 {
26 
27 
32 mitk::Image::Pointer NIFTKOPENCV_EXPORT CreateMitkImage(const IplImage* image);
33 
37 mitk::Image::Pointer NIFTKOPENCV_EXPORT CreateMitkImage(const cv::Mat* image);
38 
42 cv::Mat NIFTKOPENCV_EXPORT MitkImageToOpenCVMat ( const mitk::Image::Pointer );
43 
44 
45 } // namespace
46 
47 
48 #endif // niftkImageConversion_h
GLenum GLsizei GLenum GLenum const GLvoid * image
Definition: glew.h:4052
#define NIFTKOPENCV_EXPORT
Definition: niftkSequentialCpuQds.h:27
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