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

#include <input.h>

Inheritance diagram for viva::Input:
Inheritance graph
[legend]

Public Member Functions

 Input (const Size &size=Size(-1,-1), int conversionFlag=-1)
 
virtual bool getFrame (Mat &image)=0
 
virtual ~Input ()
 
void setConversionType (int flag)
 
size_t getWidth ()
 
size_t getHeight ()
 
Size getOrgSize ()
 

Protected Attributes

Size _size
 
bool _convert
 
int _conversionFlag
 
Size _orgSize
 

Detailed Description

Abstract Input Class defining the interface for a video sequence input type.

Constructor & Destructor Documentation

viva::Input::Input ( const Size &  size = Size(-1, -1),
int  conversionFlag = -1 
)
inline

Input class constructor

Parameters
sizeforce the input class to an specific size resolution. Default value of (-1,-1) will use the original medium resolution.
conversionFlagOpenCV conversion flag e.g., CV_RGB2GRAY. Default value of -1 will do not convert the original feed.
virtual viva::Input::~Input ( )
inlinevirtual

Virtual desctructor

Member Function Documentation

virtual bool viva::Input::getFrame ( Mat &  image)
pure virtual

Obtain an image frame from the input

Parameters
imageoutput image from the input.
Returns
bool: whenever an image was retrieved or not from the input.

Implemented in viva::ImageListInput, and viva::VideoInput.

size_t viva::Input::getHeight ( )
inline

Returns the image's height of the input feed

Size viva::Input::getOrgSize ( )
inline

Returns the original input size. This will be the same to the current image's width and height if it's created with size(-1,-1).

size_t viva::Input::getWidth ( )
inline

Returns the image's width of the input feed.

void viva::Input::setConversionType ( int  flag)
inline

Set the OpenCV conversion flag value e.g., CV_BGR2GRAY. Any posterior call to processFrame will return an image using this conversion type flag.


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