#include <Camera.h>
Public Types | |
enum | Source { kVideoFile, kUsbDevice } |
Public Member Functions | |
CameraVideo (int usbDevice=0, float imageRate=0, unsigned int imageWidth=0, unsigned int imageHeight=0) | |
CameraVideo (const std::string &filePath, float imageRate=0, unsigned int imageWidth=0, unsigned int imageHeight=0) | |
const std::string & | getFilePath () const |
int | getUsbDevice () const |
virtual bool | init () |
virtual | ~CameraVideo () |
Protected Member Functions | |
virtual cv::Mat | captureImage () |
Private Attributes | |
cv::VideoCapture | _capture |
std::string | _filePath |
Source | _src |
int | _usbDevice |
rtabmap::CameraVideo::CameraVideo | ( | int | usbDevice = 0 , |
float | imageRate = 0 , |
||
unsigned int | imageWidth = 0 , |
||
unsigned int | imageHeight = 0 |
||
) |
Definition at line 338 of file Camera.cpp.
rtabmap::CameraVideo::CameraVideo | ( | const std::string & | filePath, |
float | imageRate = 0 , |
||
unsigned int | imageWidth = 0 , |
||
unsigned int | imageHeight = 0 |
||
) |
Definition at line 349 of file Camera.cpp.
rtabmap::CameraVideo::~CameraVideo | ( | ) | [virtual] |
Definition at line 360 of file Camera.cpp.
cv::Mat rtabmap::CameraVideo::captureImage | ( | ) | [protected, virtual] |
Implements rtabmap::Camera.
Definition at line 405 of file Camera.cpp.
const std::string& rtabmap::CameraVideo::getFilePath | ( | ) | const [inline] |
int rtabmap::CameraVideo::getUsbDevice | ( | ) | const [inline] |
bool rtabmap::CameraVideo::init | ( | ) | [virtual] |
Implements rtabmap::Camera.
Definition at line 365 of file Camera.cpp.
cv::VideoCapture rtabmap::CameraVideo::_capture [private] |
std::string rtabmap::CameraVideo::_filePath [private] |
Source rtabmap::CameraVideo::_src [private] |
int rtabmap::CameraVideo::_usbDevice [private] |