Project

General

Profile

BitmapToolkit Scol plugin
CameraInputOpenCV Class Reference

Concrete implementation of ICameraInput using OpenCV utility. More...

#include <CameraInputOpenCV.h>

Inheritance diagram for CameraInputOpenCV:
ICameraInput

Public Member Functions

 CameraInputOpenCV (int index)
 
 ~CameraInputOpenCV ()
 
virtual bool Initialize ()
 
virtual void Close ()
 
virtual bool IsOpened ()
 
virtual cv::Mat UpdateImage ()
 
virtual int GetWidth ()
 
virtual int GetHeight ()
 
virtual void SetSize (int width, int height)
 
virtual bool TakeSnapshot (std::string path)
 
void UpdateThread ()
 
- Public Member Functions inherited from ICameraInput
 ICameraInput (int index)
 
virtual ~ICameraInput ()
 
virtual void RenderToScreen ()
 
virtual bool SetFocusPoint (int x, int y)
 
virtual void SetTorchState (bool state)
 
bool GetMirrorMode ()
 
void SetMirrorMode (bool mode)
 

Additional Inherited Members

- Static Public Member Functions inherited from ICameraInput
static std::vector< std::string > GetDevicesList ()
 
static void SetCameraInputsState (bool state)
 
- Protected Attributes inherited from ICameraInput
int mIndex
 
bool mMirrorMode
 
cv::Size mBufferSize
 
- Static Protected Attributes inherited from ICameraInput
static std::list< ICameraInput * > cameraInputsList
 

Detailed Description

Concrete implementation of ICameraInput using OpenCV utility.

Definition at line 17 of file CameraInputOpenCV.h.

Constructor & Destructor Documentation

◆ CameraInputOpenCV()

CameraInputOpenCV::CameraInputOpenCV ( int  index)

Definition at line 75 of file CameraInputOpenCV.cpp.

◆ ~CameraInputOpenCV()

CameraInputOpenCV::~CameraInputOpenCV ( )

Definition at line 133 of file CameraInputOpenCV.cpp.

Member Function Documentation

◆ Close()

void CameraInputOpenCV::Close ( )
virtual

Implements ICameraInput.

Definition at line 120 of file CameraInputOpenCV.cpp.

◆ GetHeight()

int CameraInputOpenCV::GetHeight ( )
virtual

Implements ICameraInput.

Definition at line 288 of file CameraInputOpenCV.cpp.

◆ GetWidth()

int CameraInputOpenCV::GetWidth ( )
virtual

Implements ICameraInput.

Definition at line 270 of file CameraInputOpenCV.cpp.

◆ Initialize()

bool CameraInputOpenCV::Initialize ( )
virtual

Implements ICameraInput.

Definition at line 96 of file CameraInputOpenCV.cpp.

◆ IsOpened()

bool CameraInputOpenCV::IsOpened ( )
virtual

Implements ICameraInput.

Definition at line 143 of file CameraInputOpenCV.cpp.

◆ SetSize()

void CameraInputOpenCV::SetSize ( int  width,
int  height 
)
virtual

Implements ICameraInput.

Definition at line 306 of file CameraInputOpenCV.cpp.

◆ TakeSnapshot()

bool CameraInputOpenCV::TakeSnapshot ( std::string  path)
virtual

Reimplemented from ICameraInput.

Definition at line 403 of file CameraInputOpenCV.cpp.

◆ UpdateImage()

cv::Mat CameraInputOpenCV::UpdateImage ( )
virtual

Implements ICameraInput.

Definition at line 234 of file CameraInputOpenCV.cpp.

◆ UpdateThread()

void CameraInputOpenCV::UpdateThread ( )

Definition at line 152 of file CameraInputOpenCV.cpp.


The documentation for this class was generated from the following files: