ViSP
2.8.0
|
#include <vpFrameGrabber.h>
Public Member Functions | |
unsigned int | getHeight () const |
unsigned int | getWidth () const |
virtual | ~vpFrameGrabber () |
virtual void | open (vpImage< unsigned char > &I)=0 |
virtual void | open (vpImage< vpRGBa > &I)=0 |
virtual void | acquire (vpImage< unsigned char > &I)=0 |
virtual void | acquire (vpImage< vpRGBa > &I)=0 |
virtual void | close ()=0 |
Public Attributes | |
bool | init |
Protected Attributes | |
unsigned int | height |
unsigned int | width |
Base class for all video devices. It is designed to provide a front end to video sources.
This class should provide a virtual function that allows the acquisition of an image.
The example below shows how to use this class.
Definition at line 108 of file vpFrameGrabber.h.
|
inlinevirtual |
Definition at line 124 of file vpFrameGrabber.h.
|
pure virtual |
Implemented in vp1394TwoGrabber, vpV4l2Grabber, vpVideoReader, vp1394Grabber, vp1394CMUGrabber, vpDiskGrabber, vpOpenCVGrabber, and vpDirectShowGrabber.
Implemented in vp1394TwoGrabber, vpV4l2Grabber, vpVideoReader, vp1394Grabber, vp1394CMUGrabber, vpDiskGrabber, vpOpenCVGrabber, and vpDirectShowGrabber.
|
pure virtual |
This virtual function is used to de-allocate the memory used by a specific frame grabber
Implemented in vp1394TwoGrabber, vpV4l2Grabber, vpVideoReader, vp1394CMUGrabber, vp1394Grabber, vpDiskGrabber, vpOpenCVGrabber, and vpDirectShowGrabber.
|
inline |
Return the number of rows in the image.
Definition at line 119 of file vpFrameGrabber.h.
Referenced by vp1394Grabber::acquire(), and vp1394Grabber::open().
|
inline |
Return the number of columns in the image.
Definition at line 121 of file vpFrameGrabber.h.
Referenced by vp1394Grabber::acquire(), and vp1394Grabber::open().
|
pure virtual |
Implemented in vp1394TwoGrabber, vp1394CMUGrabber, vpVideoReader, vpV4l2Grabber, vp1394Grabber, vpDiskGrabber, vpOpenCVGrabber, and vpDirectShowGrabber.
Implemented in vp1394TwoGrabber, vp1394CMUGrabber, vpVideoReader, vpV4l2Grabber, vp1394Grabber, vpDiskGrabber, vpOpenCVGrabber, and vpDirectShowGrabber.
|
protected |
Number of rows in the image.
Definition at line 113 of file vpFrameGrabber.h.
Referenced by vpDiskGrabber::acquire(), vpV4l2Grabber::acquire(), vp1394TwoGrabber::acquire(), vp1394TwoGrabber::dequeue(), vp1394Grabber::getHeight(), vp1394TwoGrabber::getHeight(), vpDiskGrabber::open(), vpV4l2Grabber::open(), vpVideoReader::open(), vp1394CMUGrabber::open(), vpOpenCVGrabber::setHeight(), vpV4l2Grabber::setHeight(), vp1394CMUGrabber::setVideoMode(), vp1394TwoGrabber::setVideoMode(), vp1394CMUGrabber::vp1394CMUGrabber(), vp1394TwoGrabber::vp1394TwoGrabber(), vpOpenCVGrabber::vpOpenCVGrabber(), and vpV4l2Grabber::vpV4l2Grabber().
bool vpFrameGrabber::init |
Set to true if the frame grabber has been initialized.
Definition at line 111 of file vpFrameGrabber.h.
Referenced by vpOpenCVGrabber::acquire(), vp1394Grabber::acquire(), vpV4l2Grabber::acquire(), vpOpenCVGrabber::close(), vp1394CMUGrabber::close(), vp1394TwoGrabber::close(), vpOpenCVGrabber::open(), vpDiskGrabber::open(), vp1394Grabber::open(), vpV4l2Grabber::open(), vp1394TwoGrabber::resetBus(), vp1394CMUGrabber::vp1394CMUGrabber(), vp1394Grabber::vp1394Grabber(), vp1394TwoGrabber::vp1394TwoGrabber(), vpDiskGrabber::vpDiskGrabber(), vpOpenCVGrabber::vpOpenCVGrabber(), and vpV4l2Grabber::vpV4l2Grabber().
|
protected |
Number of columns in the image.
Definition at line 114 of file vpFrameGrabber.h.
Referenced by vpDiskGrabber::acquire(), vpV4l2Grabber::acquire(), vp1394TwoGrabber::acquire(), vp1394TwoGrabber::dequeue(), vp1394Grabber::getWidth(), vp1394TwoGrabber::getWidth(), vpDiskGrabber::open(), vpV4l2Grabber::open(), vpVideoReader::open(), vp1394CMUGrabber::open(), vp1394CMUGrabber::setVideoMode(), vp1394TwoGrabber::setVideoMode(), vpOpenCVGrabber::setWidth(), vpV4l2Grabber::setWidth(), vp1394CMUGrabber::vp1394CMUGrabber(), vp1394TwoGrabber::vp1394TwoGrabber(), vpOpenCVGrabber::vpOpenCVGrabber(), and vpV4l2Grabber::vpV4l2Grabber().