#include <input.h>
|
Size | _size |
|
bool | _convert |
|
int | _conversionFlag |
|
Size | _orgSize |
|
Abstract Input Class defining the interface for a video sequence input type.
viva::Input::Input |
( |
const Size & |
size = Size(-1, -1) , |
|
|
int |
conversionFlag = -1 |
|
) |
| |
|
inline |
Input class constructor
- Parameters
-
size | force the input class to an specific size resolution. Default value of (-1,-1) will use the original medium resolution. |
conversionFlag | OpenCV conversion flag e.g., CV_RGB2GRAY. Default value of -1 will do not convert the original feed. |
virtual viva::Input::~Input |
( |
| ) |
|
|
inlinevirtual |
virtual bool viva::Input::getFrame |
( |
Mat & |
image | ) |
|
|
pure virtual |
Obtain an image frame from the input
- Parameters
-
image | output 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: