Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkVideoInputSource.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 #ifndef _mitk_VideoInput_Source_h_
17 #define _mitk_VideoInput_Source_h_
18 
19 #include "mitkConfig.h"
20 #include "mitkOpenCVVideoSource.h"
22 #include <MitkOpenCVVideoSupportExports.h>
23 
24 #include "cv.h" // open CV
25 
26 class videoInput;
27 
28 namespace mitk
29 {
30  class MITKOPENCVVIDEOSUPPORT_EXPORT VideoInputSource : public OpenCVVideoSource
31  {
32  public:
34  itkFactorylessNewMacro(Self)
35  itkCloneMacro(Self)
36 
37 
38  //void GetCurrentFrameAsOpenCVImage(IplImage * image);
40 
41  void FetchFrame();
44  //unsigned char * GetVideoTexture();
45 
46  void StartCapturing();
47 
48  void StopCapturing();
49 
50  void SetVideoCameraInput(int cameraindex, bool useCVCAMLib);
51  void SetVideoFileInput(const char * filename, bool repeatVideo, bool useCVCAMLib);
52 
53  itkGetConstMacro(ShowSettingsWindow, bool);
54  itkSetMacro(ShowSettingsWindow, bool);
55 
56  itkGetMacro(VideoInput, bool);
57 
58  protected:
60  virtual ~VideoInputSource();
61 
62  videoInput* m_VideoInput;
65 
66  // current Video image
67  unsigned char* m_CurrentVideoTexture;
68 
73 
74  };
75 }
76 #endif // Header
77 
78 
DataCollection - Class to facilitate loading/accessing structured data.
unsigned char * m_CurrentVideoTexture
static const std::string filename
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44