#include <mrpt/vision/CImageGrabber_OpenCV.h>
Public Member Functions | |
| CImageGrabber_OpenCV (int cameraIndex=-1, TCameraType cameraType=CAMERA_CV_AUTODETECT, const TCaptureCVOptions &options=TCaptureCVOptions()) | |
| Constructor for cameras:. | |
| CImageGrabber_OpenCV (const std::string &AVI_fileName) | |
| Constructor for AVI files:. | |
| virtual | ~CImageGrabber_OpenCV () |
| Destructor. | |
| bool | isOpen () const |
| Check whether the camera has been open succesfully. | |
| bool | getObservation (mrpt::slam::CObservationImage &out_observation) |
| Grab an image from the opened camera. | |
Protected Attributes | |
| bool | m_bInitialized |
| Set to false if we could not initialize the camera. | |
| void * | m_capture |
| Internal use:. | |
See the constructor for the options when opening the camera.
Unless input from AVI files is required, it is recommended to use the more generic class mrpt::hwdrivers::CCameraSensor.
Some code is based on the class CaptureCamera from the Orocos project.
Definition at line 77 of file CImageGrabber_OpenCV.h.
| mrpt::vision::CImageGrabber_OpenCV::CImageGrabber_OpenCV | ( | int | cameraIndex = -1, |
|
| TCameraType | cameraType = CAMERA_CV_AUTODETECT, |
|||
| const TCaptureCVOptions & | options = TCaptureCVOptions() | |||
| ) |
Constructor for cameras:.
| cameraIndex | Set the camera index, or -1 if it does not matter and you select AUTODETECT as cameraType. | |
| cameraType | Can be any value of TCameraType, or CAMERA_CV_AUTODETECT if there is only one camera. | |
| options | Capture options, defined in mrpt::vision::TCaptureCVOptions. If not provided, all the default options will be used. |
| mrpt::vision::CImageGrabber_OpenCV::CImageGrabber_OpenCV | ( | const std::string & | AVI_fileName | ) |
Constructor for AVI files:.
| virtual mrpt::vision::CImageGrabber_OpenCV::~CImageGrabber_OpenCV | ( | ) | [virtual] |
Destructor.
| bool mrpt::vision::CImageGrabber_OpenCV::getObservation | ( | mrpt::slam::CObservationImage & | out_observation | ) |
Grab an image from the opened camera.
| out_observation | The object to be filled with sensed data. |
| bool mrpt::vision::CImageGrabber_OpenCV::isOpen | ( | ) | const [inline] |
Check whether the camera has been open succesfully.
Definition at line 109 of file CImageGrabber_OpenCV.h.
bool mrpt::vision::CImageGrabber_OpenCV::m_bInitialized [protected] |
Set to false if we could not initialize the camera.
Definition at line 82 of file CImageGrabber_OpenCV.h.
void* mrpt::vision::CImageGrabber_OpenCV::m_capture [protected] |
| Page generated by Doxygen 1.5.8 for MRPT 0.6.5 SVN: at Thu Feb 26 02:07:47 EST 2009 |