BitmapToolkit Scol plugin
include
CameraInputWindows.h
Go to the documentation of this file.
1
#ifndef __BTK_CAMERAINPUT_WINDOWS_H__
2
#define __BTK_CAMERAINPUT_WINDOWS_H__
3
4
#include "
ICameraInput.h
"
5
#include <opencv2/opencv.hpp>
6
#include <videoInput.h>
7
#include <vector>
8
12
class
CameraInputWindows
:
public
ICameraInput
13
{
14
private
:
15
videoInput* mVI;
16
std::vector<unsigned char> mBuffer;
17
18
public
:
19
CameraInputWindows
(
int
index);
20
~CameraInputWindows
();
21
22
bool
Initialize
();
23
void
Close
();
24
bool
IsOpened
();
25
cv::Mat
UpdateImage
();
26
27
int
GetWidth
();
28
int
GetHeight
();
29
void
SetSize
(
int
width,
int
height);
30
31
bool
TakeSnapshot
(std::string path);
32
};
33
34
#endif
ICameraInput.h
CameraInputWindows
Concrete implementation of ICameraInput using Windows API.
Definition
CameraInputWindows.h:13
CameraInputWindows::TakeSnapshot
bool TakeSnapshot(std::string path)
Definition
CameraInputWindows.cpp:114
CameraInputWindows::IsOpened
bool IsOpened()
Definition
CameraInputWindows.cpp:60
CameraInputWindows::UpdateImage
cv::Mat UpdateImage()
Definition
CameraInputWindows.cpp:65
CameraInputWindows::GetWidth
int GetWidth()
Definition
CameraInputWindows.cpp:83
CameraInputWindows::Close
void Close()
Definition
CameraInputWindows.cpp:49
CameraInputWindows::Initialize
bool Initialize()
Definition
CameraInputWindows.cpp:35
CameraInputWindows::GetHeight
int GetHeight()
Definition
CameraInputWindows.cpp:91
CameraInputWindows::SetSize
void SetSize(int width, int height)
Definition
CameraInputWindows.cpp:99
CameraInputWindows::~CameraInputWindows
~CameraInputWindows()
Definition
CameraInputWindows.cpp:54
ICameraInput
Interface for camera management. Concrete classes are written for Windows, Android and OpenCV native ...
Definition
ICameraInput.h:39
Generated by
1.9.8