|
libeblearntools
|
The camera_mcams class stitches several v4l2 cameras. More...
#include <camera_mcams.h>
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 |
The camera_mcams class stitches several v4l2 cameras.
| 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.
| mode_rgb | sets the mode to RGB, if false, it sets YUV |