Medical Imaging Interaction Toolkit  2021.02.99-e55a5d2f
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 (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 #ifndef _mitk_VideoInput_Source_h_
13 #define _mitk_VideoInput_Source_h_
14 
15 #include "mitkConfig.h"
16 #include "mitkOpenCVVideoSource.h"
19 
20 
21 class videoInput;
22 
23 namespace mitk
24 {
26  {
27  public:
29  itkFactorylessNewMacro(Self);
30  itkCloneMacro(Self);
31 
34  //void GetCurrentFrameAsOpenCVImage(IplImage * image);
35 
36  void FetchFrame();
39  //unsigned char * GetVideoTexture();
40 
41  void StartCapturing();
42 
43  void StopCapturing();
44 
45  void SetVideoCameraInput(int cameraindex, bool useCVCAMLib);
46  void SetVideoFileInput(const char * filename, bool repeatVideo, bool useCVCAMLib);
47 
48  itkGetConstMacro(ShowSettingsWindow, bool);
49  itkSetMacro(ShowSettingsWindow, bool);
50 
51  itkGetMacro(VideoInput, bool);
52 
53  protected:
55  virtual ~VideoInputSource();
56 
57  videoInput* m_VideoInput;
60 
61  // current Video image
62  unsigned char* m_CurrentVideoTexture;
63 
68 
69  };
70 }
71 #endif // Header
72 
73 
DataCollection - Class to facilitate loading/accessing structured data.
unsigned char * m_CurrentVideoTexture
#define MITKOPENCVVIDEOSUPPORT_EXPORT
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36