libeblearntools
ebl::camera_opencv< Tdata > Class Template Reference

#include <camera_opencv.h>

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

List of all members.

Public Member Functions

 camera_opencv (int id, int height=-1, int width=-1)
virtual ~camera_opencv ()
 Destructor.
virtual idx< Tdata > grab ()
 Return a new frame.

Detailed Description

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

The camera_opencv class interfaces with the opencv camera and images. It allows to grab images from opencv in the idx format, and also to save gui outputs into video files.


Constructor & Destructor Documentation

template<typename Tdata >
ebl::camera_opencv< Tdata >::camera_opencv ( int  id,
int  height = -1,
int  width = -1 
)

Initialize opencv camera using id to choose which camera_opencv to use. 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:
idThe ID of the camera. -1 chooses the first available camera.
heightResize input frame to this height if different than -1.
widthResize input frame to this width if different than -1.

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