#include <CameraBridge.h>
Public Types | |
enum | ImageType { BW, RGB, BGR, BAYER_BG, BAYER_GB, BAYER_RG, BAYER_GR } |
Public Member Functions | |
CameraBridge () | |
CameraBridge (int w, int h, float cx, float cy, float fx, float fy) | |
CameraBridge (int w, int h, float cx, float cy, float fx, float fy, float k1, float k2, float p1, float p2) | |
CameraBridge (ImageType _imageType) | |
CameraBridge (ImageType _imageType, int w, int h, float cx, float cy, float fx, float fy) | |
CameraBridge (ImageType _imageType, int w, int h, float cx, float cy, float fx, float fy, float k1, float k2, float p1, float p2) | |
void | ConvertImage (cv::Mat &image) const |
void | DistortPoint (int &x, int &y) const |
void | DistortPoint (float x, float y, float &distx, float &disty) const |
const cv::Mat & | GetDistortionParameters () const |
const cv::Mat & | GetIntrinsicParameters () const |
void | SetParameters (int w, int h, float cx, float cy, float fx, float fy) |
void | SetParameters (int w, int h, float cx, float cy, float fx, float fy, float k1, float k2, float p1, float p2) |
void | SetParameters (ImageType _imageType, int w, int h, float cx, float cy, float fx, float fy) |
void | SetParameters (ImageType _imageType, int w, int h, float cx, float cy, float fx, float fy, float k1, float k2, float p1, float p2) |
bool | ThereIsCalibration () const |
bool | ThereIsDistortion () const |
bool | usesBayer () const |
Protected Member Functions | |
void | createMaps () |
Protected Attributes | |
cv::Mat | m_distortion |
int | m_image_height |
ImageType | m_image_type |
int | m_image_width |
cv::Mat | m_intrinsic_parameters |
cv::Mat | m_remap_1 |
cv::Mat | m_remap_2 |
bool | m_there_is_calibration |
bool | m_there_is_distortion |
Definition at line 39 of file CameraBridge.h.
Definition at line 42 of file CameraBridge.h.
Definition at line 41 of file CameraBridge.cpp.
CameraBridge::CameraBridge | ( | int | w, |
int | h, | ||
float | cx, | ||
float | cy, | ||
float | fx, | ||
float | fy | ||
) |
Definition at line 50 of file CameraBridge.cpp.
CameraBridge::CameraBridge | ( | int | w, |
int | h, | ||
float | cx, | ||
float | cy, | ||
float | fx, | ||
float | fy, | ||
float | k1, | ||
float | k2, | ||
float | p1, | ||
float | p2 | ||
) |
Definition at line 68 of file CameraBridge.cpp.
CameraBridge::CameraBridge | ( | ImageType | _imageType | ) |
Definition at line 89 of file CameraBridge.cpp.
CameraBridge::CameraBridge | ( | ImageType | _imageType, |
int | w, | ||
int | h, | ||
float | cx, | ||
float | cy, | ||
float | fx, | ||
float | fy | ||
) |
Definition at line 97 of file CameraBridge.cpp.
CameraBridge::CameraBridge | ( | ImageType | _imageType, |
int | w, | ||
int | h, | ||
float | cx, | ||
float | cy, | ||
float | fx, | ||
float | fy, | ||
float | k1, | ||
float | k2, | ||
float | p1, | ||
float | p2 | ||
) |
Definition at line 116 of file CameraBridge.cpp.
void CameraBridge::ConvertImage | ( | cv::Mat & | image | ) | const |
Definition at line 234 of file CameraBridge.cpp.
void CameraBridge::createMaps | ( | ) | [protected] |
Definition at line 224 of file CameraBridge.cpp.
void CameraBridge::DistortPoint | ( | int & | x, |
int & | y | ||
) | const |
Definition at line 290 of file CameraBridge.cpp.
void CameraBridge::DistortPoint | ( | float | x, |
float | y, | ||
float & | distx, | ||
float & | disty | ||
) | const |
Definition at line 304 of file CameraBridge.cpp.
const cv::Mat& CameraBridge::GetDistortionParameters | ( | ) | const [inline] |
Definition at line 121 of file CameraBridge.h.
const cv::Mat& CameraBridge::GetIntrinsicParameters | ( | ) | const [inline] |
Definition at line 115 of file CameraBridge.h.
void CameraBridge::SetParameters | ( | int | w, |
int | h, | ||
float | cx, | ||
float | cy, | ||
float | fx, | ||
float | fy | ||
) |
Definition at line 138 of file CameraBridge.cpp.
void CameraBridge::SetParameters | ( | int | w, |
int | h, | ||
float | cx, | ||
float | cy, | ||
float | fx, | ||
float | fy, | ||
float | k1, | ||
float | k2, | ||
float | p1, | ||
float | p2 | ||
) |
Definition at line 157 of file CameraBridge.cpp.
void CameraBridge::SetParameters | ( | ImageType | _imageType, |
int | w, | ||
int | h, | ||
float | cx, | ||
float | cy, | ||
float | fx, | ||
float | fy | ||
) |
Definition at line 179 of file CameraBridge.cpp.
void CameraBridge::SetParameters | ( | ImageType | _imageType, |
int | w, | ||
int | h, | ||
float | cx, | ||
float | cy, | ||
float | fx, | ||
float | fy, | ||
float | k1, | ||
float | k2, | ||
float | p1, | ||
float | p2 | ||
) |
Definition at line 201 of file CameraBridge.cpp.
bool CameraBridge::ThereIsCalibration | ( | ) | const [inline] |
Definition at line 103 of file CameraBridge.h.
bool CameraBridge::ThereIsDistortion | ( | ) | const [inline] |
Definition at line 109 of file CameraBridge.h.
bool CameraBridge::usesBayer | ( | ) | const [inline] |
Definition at line 127 of file CameraBridge.h.
cv::Mat CameraBridge::m_distortion [protected] |
Definition at line 146 of file CameraBridge.h.
int CameraBridge::m_image_height [protected] |
Definition at line 153 of file CameraBridge.h.
ImageType CameraBridge::m_image_type [protected] |
Definition at line 143 of file CameraBridge.h.
int CameraBridge::m_image_width [protected] |
Definition at line 152 of file CameraBridge.h.
cv::Mat CameraBridge::m_intrinsic_parameters [protected] |
Definition at line 145 of file CameraBridge.h.
cv::Mat CameraBridge::m_remap_1 [protected] |
Definition at line 150 of file CameraBridge.h.
cv::Mat CameraBridge::m_remap_2 [protected] |
Definition at line 150 of file CameraBridge.h.
bool CameraBridge::m_there_is_calibration [protected] |
Definition at line 144 of file CameraBridge.h.
bool CameraBridge::m_there_is_distortion [protected] |
Definition at line 149 of file CameraBridge.h.