libeblearntools
ebl::camera_windows< Tdata > Class Template Reference

#include <camera_windows.h>

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

List of all members.

Public Member Functions

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

Protected Attributes

bool started
 < resize or not during postproc.
int nbuffers
void * buffers
int * sizes
int fd

Detailed Description

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

The camera_windows class interfaces with the camera and images under Microsoft Windows. It allows to grab images from a webcam in the idx format, and also to save gui outputs into video files.


Constructor & Destructor Documentation

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

Initialize a camera under Windows. 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:
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 file: