vivalib library
Concurrent C++11 OpenCV library for Computer Vision applications
Public Member Functions | Protected Attributes | List of all members
viva::BatchProcessFrame Class Reference

#include <viva.h>

Inheritance diagram for viva::BatchProcessFrame:
Inheritance graph
[legend]
Collaboration diagram for viva::BatchProcessFrame:
Collaboration graph
[legend]

Public Member Functions

 BatchProcessFrame (const size_t count=10)
 
virtual size_t batchProcessSize ()
 
virtual void operator() (size_t frameN, const vector< Mat > &frames, Mat &output)
 
virtual void mouseInput (int event, int x, int y, int flags)
 
virtual void leftButtonDown (int x, int y, int flags)
 
virtual void rightButtonDown (int x, int y, int flags)
 
virtual void middleButtonDown (int x, int y, int flags)
 
virtual void mouseMove (int x, int y, int flags)
 
virtual void keyboardInput (int key)
 

Protected Attributes

size_t _count
 

Detailed Description

Batch Process Frame. Process batchs of specific size from the input at once.

Member Function Documentation

virtual void viva::BatchProcessFrame::keyboardInput ( int  key)
inlinevirtual

It will be called only when the user stroke a keyboard key

Parameters
keythe value of the pressed key

Reimplemented from viva::KeyboardListener.

virtual void viva::BatchProcessFrame::leftButtonDown ( int  x,
int  y,
int  flags 
)
inlinevirtual

It will be called only when a mouse left click is triggered

Reimplemented from viva::MouseListener.

virtual void viva::BatchProcessFrame::middleButtonDown ( int  x,
int  y,
int  flags 
)
inlinevirtual

It will be called only when a mouse middle click is triggered

Reimplemented from viva::MouseListener.

virtual void viva::BatchProcessFrame::mouseInput ( int  event,
int  x,
int  y,
int  flags 
)
inlinevirtual

Will be triggered at any mouse event, the type of the event is especified in the first integer

Parameters
event.event could be one of the following OpenCV values EVENT_LBUTTONDOWN, EVENT_RBUTTONDOWN, EVENT_MBUTTONDOWN, EVENT_MOUSEMOVE.
xthe x coordinates of the mouse cursor
ythe y coordinates of the mouse cursor
flgasthe flags passed from OpenCV

Reimplemented from viva::MouseListener.

virtual void viva::BatchProcessFrame::mouseMove ( int  x,
int  y,
int  flags 
)
inlinevirtual

It will be called only when a mouse move is triggered.

Reimplemented from viva::MouseListener.

virtual void viva::BatchProcessFrame::rightButtonDown ( int  x,
int  y,
int  flags 
)
inlinevirtual

It will be called only when a right left click is triggered

Reimplemented from viva::MouseListener.


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