UWARG Computer Vision
|
Class for reading image files from a directory. More...
#include <importer.h>
Public Member Functions | |
Importer () | |
Creates an Importer object. | |
void | add_source (ImageImport *importer, long msdelay) |
adds an image source More... | |
Frame * | next_frame () |
Retrieves the next frame to be analyzed. More... | |
void | remove_source (int index) |
void | update_delay (int index, long msdelay) |
int | num_sources () |
returns the number of sources | |
void | set_buffer_size (int bufferSize) |
Sets the size of the importer's buffer. More... | |
int | get_buffer_size () |
current buffer size More... | |
std::string | source_descriptions () |
Returns string containing human readable descriptions of the current input sources. | |
Class for reading image files from a directory.
void Importer::add_source | ( | ImageImport * | importer, |
long | msdelay | ||
) |
adds an image source
importer | The image source |
msdelay |
int Importer::get_buffer_size | ( | ) |
current buffer size
Frame * Importer::next_frame | ( | ) |
Retrieves the next frame to be analyzed.
void Importer::remove_source | ( | int | index | ) |
Removes source
index | Index of the source to be removed |
void Importer::set_buffer_size | ( | int | bufferSize | ) |
Sets the size of the importer's buffer.
Must be called to start reading frames since default buffer size is zero If set to zero or less the importer will stop reading frames until set_buffer_size is called again with a bufferSize greater than zero
bufferSize | The size of the new buffer |
void Importer::update_delay | ( | int | index, |
long | msdelay | ||
) |
Updates delay for the source
index | Index of the source to update |
delayms | new delay in milliseconds |