libeblearntools
ebl::camera_video< Tdata > Class Template Reference

#include <camera_video.h>

Inheritance diagram for ebl::camera_video< Tdata >:
ebl::camera_directory< Tdata > ebl::camera< Tdata >

List of all members.

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

Detailed Description

template<typename Tdata>
class ebl::camera_video< Tdata >

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.


Constructor & Destructor Documentation

template<typename Tdata >
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.

Parameters:
videoThe video (full) filename.
heightResize input frame to this height if different than -1.
widthResize input frame to this width if different than -1.
sstepSteps in seconds to skip when reading video.
endposMaximum duration in second of read input.

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