libeblearntools
|
#include <camera_video.h>
Public Member Functions | |
camera_video (const char *video_file, int height_=-1, int width_=-1, uint sstep=0, uint endpos=0) | |
virtual | ~camera_video () |
Destructor. | |
virtual float | fps () |
Return the number of frames per second of the original video. | |
Protected Attributes | |
float | fps_video |
frames per second of video |
The camera_video class interfaces with images extracted from a video file, grabbing all images into idx format, and also allowing to save gui outputs into video files.
ebl::camera_video< Tdata >::camera_video | ( | const char * | video_file, |
int | height_ = -1 , |
||
int | width_ = -1 , |
||
uint | sstep = 0 , |
||
uint | endpos = 0 |
||
) |
Initialize a video camera from a video file. height and width are optional parameters that resize the input image to those dimensions if given (different than -1). One may want to decrease the input resolution first to speed up operations, for example when computing multiple resolutions.
video | The video (full) filename. |
height | Resize input frame to this height if different than -1. |
width | Resize input frame to this width if different than -1. |
sstep | Steps in seconds to skip when reading video. |
endpos | Maximum duration in second of read input. |