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

#include <input.h>

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

Public Member Functions

 ImageListInput (const string directory, const Size &size=Size(-1,-1), int colorFlag=-1, int loops=1)
 
 ImageListInput (const vector< string > &files, const Size &size=Size(-1,-1), int colorFlag=-1, int loops=1)
 
bool getFrame (Mat &frame)
 
- Public Member Functions inherited from viva::Input
 Input (const Size &size=Size(-1,-1), int conversionFlag=-1)
 
virtual ~Input ()
 
void setConversionType (int flag)
 
size_t getWidth ()
 
size_t getHeight ()
 
Size getOrgSize ()
 

Additional Inherited Members

- Protected Attributes inherited from viva::Input
Size _size
 
bool _convert
 
int _conversionFlag
 
Size _orgSize
 

Detailed Description

ImageListInput to process folder containing images of supported OpenCV formats.

Constructor & Destructor Documentation

ImageListInput::ImageListInput ( const string  directory,
const Size &  size = Size(-1,-1),
int  colorFlag = -1,
int  loops = 1 
)

ImageListInput constructor using a directory path

ImageListInput::ImageListInput ( const vector< string > &  files,
const Size &  size = Size(-1,-1),
int  colorFlag = -1,
int  loops = 1 
)

ImageListInput constructor using a vector of filenames containing the images of the sequence in order.

Member Function Documentation

bool ImageListInput::getFrame ( Mat &  frame)
virtual

Overrided from Input Base Class. Used to extract a frame from the input sequence. Returns whether or not a frame was sucessfuly returned.

Parameters
frameoutput image frame from the sequence

Implements viva::Input.


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