CVD 0.8
|
Play a series of image files as a video stream and use a list of provided timestamps. More...
#include <timeddiskbuffer.h>
Public Member Functions | |
TimedDiskBuffer (const std::vector< std::string > &names, const std::vector< double > ×, CVD::VideoBufferFlags::OnEndOfBuffer eob=CVD::VideoBufferFlags::RepeatLastFrame) | |
virtual CVD::DiskBuffer2Frame < T > * | get_frame () |
Protected Attributes | |
std::vector< double > | file_times |
Play a series of image files as a video stream and use a list of provided timestamps.
Provides frames of type CVD::DiskBuffer2Frame and throws exceptions of type CVD::Exceptions::DiskBuffer2 and CVD::Exceptions::TimedDiskBuffer
T | The pixel type of the frames to provide (usually CVD::Rgb<CVD::byte> or CVD::byte . If the image files are of a different type, they will be automatically converted (see Image loading and saving, and format conversion). |
Definition at line 51 of file timeddiskbuffer.h.
CVD::TimedDiskBuffer< T >::TimedDiskBuffer | ( | const std::vector< std::string > & | names, |
const std::vector< double > & | times, | ||
CVD::VideoBufferFlags::OnEndOfBuffer | eob = CVD::VideoBufferFlags::RepeatLastFrame |
||
) | [inline] |
Construct a TimedDiskBuffer2 from a vector of filenames and timestamps.
see Diskbuffer2 for details on how to use it.
names | The filenames to use (played in the order that they are in the vector) |
times | The frame time stamps |
eob | What should the buffer do when it reaches the end of the list of files? |
Definition at line 67 of file timeddiskbuffer.h.