NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkOpenCVVideoDataType.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 niftkOpenCVVideoDataType_h
16 #define niftkOpenCVVideoDataType_h
17 
18 #include <niftkIGIDataType.h>
19 #include <cv.h>
20 
21 namespace niftk
22 {
23 
29 {
30 public:
31 
33  itkNewMacro(OpenCVVideoDataType)
34 
35 
38  void CloneImage(const IplImage *image);
39 
43  const IplImage* GetImage();
44 
45 protected:
46 
47  OpenCVVideoDataType(); // Purposefully hidden.
48  virtual ~OpenCVVideoDataType(); // Purposefully hidden.
49 
50  OpenCVVideoDataType(const OpenCVVideoDataType&); // Purposefully not implemented.
51  OpenCVVideoDataType& operator=(const OpenCVVideoDataType&); // Purposefully not implemented.
52 
53 private:
54 
55  IplImage *m_Image;
56 
57 };
58 
59 } // end namespace
60 
61 #endif
virtual ~OpenCVVideoDataType()
Definition: niftkOpenCVVideoDataType.cxx:28
GLenum GLsizei GLenum GLenum const GLvoid * image
Definition: glew.h:4052
Class to represent video frame data from OpenCV.
Definition: niftkOpenCVVideoDataType.h:28
const IplImage * GetImage()
Returns the internal image, so do not modify it.
Definition: niftkOpenCVVideoDataType.cxx:49
Abstract base class for IGI Data, such as objects containing tracking data, video frames or ultrasoun...
Definition: niftkIGIDataType.h:35
mitkClassMacro(OpenCVVideoDataType, IGIDataType) static Pointer New()
OpenCVVideoDataType & operator=(const OpenCVVideoDataType &)
OpenCVVideoDataType()
Definition: niftkOpenCVVideoDataType.cxx:21
void CloneImage(const IplImage *image)
Used for loading in an image.
Definition: niftkOpenCVVideoDataType.cxx:38
Definition: niftkExceptionObject.h:21