Medical Imaging Interaction Toolkit  2023.04.00
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 mitkVideoInputSource_h
13 #define mitkVideoInputSource_h
14 
15 #include "mitkConfig.h"
16 #include "mitkOpenCVVideoSource.h"
18 #include <MitkOpenCVVideoSupportExports.h>
19 
20 
21 class videoInput;
22 
23 namespace mitk
24 {
25  class MITKOPENCVVIDEOSUPPORT_EXPORT VideoInputSource : public OpenCVVideoSource
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
mitk::VideoInputSource::m_DeviceNumber
int m_DeviceNumber
Definition: mitkVideoInputSource.h:58
mitk::VideoInputSource::m_ShowSettingsWindow
bool m_ShowSettingsWindow
Definition: mitkVideoInputSource.h:67
mitk
DataCollection - Class to facilitate loading/accessing structured data.
Definition: RenderingTests.dox:1
mitk::VideoInputSource::m_CurrentVideoTexture
unsigned char * m_CurrentVideoTexture
Definition: mitkVideoInputSource.h:62
mitk::VideoInputSource
Definition: mitkVideoInputSource.h:25
mitk::OpenCVVideoSource
Definition: mitkOpenCVVideoSource.h:39
mitkConfig.h
mitkOpenCVVideoSource.h
mitk::VideoInputSource::m_CaptureSize
int m_CaptureSize
Definition: mitkVideoInputSource.h:59
mitkUndistortCameraImage.h
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitk::VideoInputSource::m_VideoInput
videoInput * m_VideoInput
Definition: mitkVideoInputSource.h:57