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

#include <viva.h>

Public Member Functions

 Processor (int argc, const char *argv[])
 
void setInputBufferSize (size_t size)
 
void setOutputBufferSize (size_t size)
 
void showInput (bool show=true)
 
void showTimeInfo (bool show=true)
 
void showOutput (bool show=true)
 
void setInputWindowName (const string &name)
 
void setOutputWindowName (const string &name)
 
void setInput (Ptr< Input > &input)
 
void setOutput (Ptr< Output > &output)
 
void listenToMouseEvents ()
 
void listenToKeyboardEvents ()
 
void setProcess (Ptr< ProcessFrame > &process)
 
void startPaused ()
 
void setProcess (function< void(const size_t frameN, const Mat &frame, Mat &output)> functor)
 
void run ()
 

Detailed Description

Processor class. Entry point of a vivalib program We need to define an Input , ProcessFrame and Output(optional) before starting to run a processor

Member Function Documentation

void Processor::run ( )

Method to execute after defining the Processor's Input, ProcessFrame, and Output(optional) The input, process and output will run in three different threads and will comunicate using BuffedChannels between them. To exit you should press the ESC key. The SPACE key will allow to pause and/or continue the video sequence

void viva::Processor::setProcess ( function< void(const size_t frameN, const Mat &frame, Mat &output)>  functor)
inline

Set a process

void viva::Processor::startPaused ( )
inline

Makes to pause the sequence at the fist frame. Waiting for the user to hit the SPACE key in the keyboard to continue the execution of the sequence. It's usefull when manual user selection is needed before running the algorithm


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