Go to the documentation of this file.
9 #ifndef CImageGrabber_OpenCV_H
10 #define CImageGrabber_OpenCV_H
12 #include <mrpt/config.h>
#define MRPT_ENUM_TYPE_END()
bool m_bInitialized
Set to false if we could not initialize the camera.
Contains classes for various device interfaces.
TCameraType
These capture types are like their OpenCV equivalents.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
MRPT_FILL_ENUM_MEMBER(mrpt::hwdrivers, CAMERA_CV_AUTODETECT)
#define MRPT_ENUM_TYPE_BEGIN(_ENUM_TYPE_WITH_NS)
CImageGrabber_OpenCV(int cameraIndex=-1, TCameraType cameraType=CAMERA_CV_AUTODETECT, const TCaptureCVOptions &options=TCaptureCVOptions())
Constructor for cameras:
double ieee1394_fps
(IEEE1394 cameras) Frame rate for the capture (0: Leave the default).
@ CAMERA_CV_DSHOW
Valid only with OpenCV >= 1.1.0.
double gain
(All cameras) Camera gain (0: Leave the default)
bool ieee1394_grayscale
(IEEE1394 cameras) Whether to grab grayscale images (Default=false).
A class for grabing images from a "OpenCV"-compatible camera, or from an AVI video file.
virtual ~CImageGrabber_OpenCV()
Destructor.
bool isOpen() const
Check whether the camera has been open successfully.
Options used when creating an OpenCV capture object Some options apply to IEEE1394 cameras only.
int frame_width
(All cameras) Capture resolution (0: Leave the default)
GLsizei const GLchar ** string
mrpt::void_ptr_noncopy m_capture
Internal use:
Declares a class derived from "CObservation" that encapsules an image from a camera,...
bool getObservation(mrpt::obs::CObservationImage &out_observation)
Grab an image from the opened camera.
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |