UWARG Computer Vision
Public Member Functions | List of all members
Importer Class Reference

Class for reading image files from a directory. More...

#include <importer.h>

Collaboration diagram for Importer:
Collaboration graph

Public Member Functions

 Importer ()
 Creates an Importer object.
 
void add_source (ImageImport *importer, long msdelay)
 adds an image source More...
 
Framenext_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.
 

Detailed Description

Class for reading image files from a directory.

Member Function Documentation

void Importer::add_source ( ImageImport importer,
long  msdelay 
)

adds an image source

Parameters
importerThe image source
msdelay
int Importer::get_buffer_size ( )

current buffer size

Returns
current buffer size
Frame * Importer::next_frame ( )

Retrieves the next frame to be analyzed.

Returns
Frame to be analyzed
void Importer::remove_source ( int  index)

Removes source

Parameters
indexIndex 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

Parameters
bufferSizeThe size of the new buffer
void Importer::update_delay ( int  index,
long  msdelay 
)

Updates delay for the source

Parameters
indexIndex of the source to update
delaymsnew delay in milliseconds

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