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

#include <viva.h>

Public Member Functions

 BatchProcessor (size_t batchSize=10)
 
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 setBatchProcess (Ptr< BatchProcessFrame > &process)
 
void setBatchProcess (function< void(const size_t frameN, const vector< Mat > &frames, Mat &output)> functor)
 
void run ()
 

Detailed Description

Similar to Processor but instead of processing one image a the time. it waits to have a buffer of images to precess them at once.

Member Function Documentation

void viva::BatchProcessor::listenToKeyboardEvents ( )
inline

Make the processor to listen to keyboard events

void viva::BatchProcessor::listenToMouseEvents ( )
inline

Make the processor to listen mouse events

void BatchProcessor::run ( )

Method to run once the input , processframe, and output (optional) are set

void viva::BatchProcessor::setBatchProcess ( Ptr< BatchProcessFrame > &  process)
inline

Set a batch process

void viva::BatchProcessor::setBatchProcess ( function< void(const size_t frameN, const vector< Mat > &frames, Mat &output)>  functor)
inline

Set a batch process

void viva::BatchProcessor::setInput ( Ptr< Input > &  input)
inline

Set an input

void viva::BatchProcessor::setOutput ( Ptr< Output > &  output)
inline

Set an output


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