libeblearntools
ebl::camera_mcams< Tdata > Class Template Reference

The camera_mcams class stitches several v4l2 cameras. More...

#include <camera_mcams.h>

Inheritance diagram for ebl::camera_mcams< Tdata >:
ebl::camera< Tdata >

List of all members.

Public Member Functions

 camera_mcams (configuration &conf, vector< string > &devices, int height=-1, int width=-1, bool grayscale=false, bool mode_rgb=true)
virtual ~camera_mcams ()
 Destructor.
virtual idx< Tdata > grab ()
 Return a new frame.

Protected Attributes

vector< camera< Tdata > * > cams
 < Output grayscale or not.
vector< idx< Tdata > > cam_frames
 frame buffer for all cams
bool started
int nbuffers

Detailed Description

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

The camera_mcams class stitches several v4l2 cameras.


Constructor & Destructor Documentation

template<typename Tdata >
ebl::camera_mcams< Tdata >::camera_mcams ( configuration conf,
vector< string > &  devices,
int  height = -1,
int  width = -1,
bool  grayscale = false,
bool  mode_rgb = true 
)

Initialize multiple cameras 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:
mode_rgbsets the mode to RGB, if false, it sets YUV

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