xvWidgets
Public Member Functions | Friends | List of all members
xv::VideoCapture Class Reference

GUI component to capture video from files and devices. More...

#include <VideoCapture.hpp>

Inheritance diagram for xv::VideoCapture:

Public Member Functions

 VideoCapture ()
 Default constructor.
 
 VideoCapture (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name=wxPanelNameStr)
 Constructor inherited from wxPanel.
 
 VideoCapture (const std::string &filename)
 Constructor inherited from cv::VideoCapture.
 
 VideoCapture (int device)
 Constructor inherited from cv::VideoCapture.
 
bool open (const std::string &filename)
 Open video file or a capturing device for video capturing.
 
bool isOpened ()
 Returns true if video capturing has been initialized already.
 
void release ()
 Closes video file or capturing device.
 
bool grab ()
 Grabs the next frame from video file or capturing device.
 
bool retrieve (cv::Mat &image, int channel=0)
 Decodes and returns the grabbed video frame.
 
bool read (cv::Mat &image)
 Grabs, decodes and returns the next video frame.
 
double get (int propId)
 Returns the specified VideoCapture property.
 
bool set (int propId, double value)
 Sets a property in the VideoCapture.
 
void VideoCapture::operator>> (cv::Mat &mat)
 Retrieves a image frame from the opened media into a cv::Mat.
 

Friends

void operator>> (VideoCapture &, ImagePanel &)
 Retrieves a image frame from the opened media into an xv::Image.
 

Detailed Description

GUI component to capture video from files and devices.


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