#include <Camera.h>
Public Member Functions | |
float | getImageRate () const |
void | getImageSize (unsigned int &width, unsigned int &height) |
virtual bool | init ()=0 |
bool | isMirroringEnabled () const |
void | resetCalibration () |
void | setCalibration (const std::string &fileName) |
void | setCalibration (const cv::Mat &cameraMatrix, const cv::Mat &distorsionCoefficients) |
void | setImageRate (float imageRate) |
void | setImageSize (unsigned int width, unsigned int height) |
void | setMirroringEnabled (bool enabled) |
cv::Mat | takeImage () |
virtual | ~Camera () |
Protected Member Functions | |
Camera (float imageRate=0, unsigned int imageWidth=0, unsigned int imageHeight=0) | |
virtual cv::Mat | captureImage ()=0 |
Private Attributes | |
cv::Mat | _d |
UTimer * | _frameRateTimer |
unsigned int | _imageHeight |
float | _imageRate |
unsigned int | _imageWidth |
cv::Mat | _k |
bool | _mirroring |
rtabmap::Camera::~Camera | ( | ) | [virtual] |
Definition at line 58 of file Camera.cpp.
rtabmap::Camera::Camera | ( | float | imageRate = 0 , |
unsigned int | imageWidth = 0 , |
||
unsigned int | imageHeight = 0 |
||
) | [protected] |
Constructor
imageRate | : image/second , 0 for fast as the camera can |
Definition at line 47 of file Camera.cpp.
virtual cv::Mat rtabmap::Camera::captureImage | ( | ) | [protected, pure virtual] |
Implemented in rtabmap::CameraVideo, and rtabmap::CameraImages.
float rtabmap::Camera::getImageRate | ( | ) | const [inline] |
void rtabmap::Camera::getImageSize | ( | unsigned int & | width, |
unsigned int & | height | ||
) |
Definition at line 72 of file Camera.cpp.
virtual bool rtabmap::Camera::init | ( | ) | [pure virtual] |
Implemented in rtabmap::CameraVideo, and rtabmap::CameraImages.
bool rtabmap::Camera::isMirroringEnabled | ( | ) | const [inline] |
void rtabmap::Camera::resetCalibration | ( | ) |
Definition at line 145 of file Camera.cpp.
void rtabmap::Camera::setCalibration | ( | const std::string & | fileName | ) |
Definition at line 78 of file Camera.cpp.
void rtabmap::Camera::setCalibration | ( | const cv::Mat & | cameraMatrix, |
const cv::Mat & | distorsionCoefficients | ||
) |
Definition at line 132 of file Camera.cpp.
void rtabmap::Camera::setImageRate | ( | float | imageRate | ) | [inline] |
void rtabmap::Camera::setImageSize | ( | unsigned int | width, |
unsigned int | height | ||
) |
Definition at line 66 of file Camera.cpp.
void rtabmap::Camera::setMirroringEnabled | ( | bool | enabled | ) | [inline] |
cv::Mat rtabmap::Camera::takeImage | ( | ) |
Definition at line 151 of file Camera.cpp.
cv::Mat rtabmap::Camera::_d [private] |
UTimer* rtabmap::Camera::_frameRateTimer [private] |
unsigned int rtabmap::Camera::_imageHeight [private] |
float rtabmap::Camera::_imageRate [private] |
unsigned int rtabmap::Camera::_imageWidth [private] |
cv::Mat rtabmap::Camera::_k [private] |
bool rtabmap::Camera::_mirroring [private] |