Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
CameraBridge Class Reference

#include <CameraBridge.h>

List of all members.

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

Detailed Description

Definition at line 39 of file CameraBridge.h.


Member Enumeration Documentation

Enumerator:
BW 
RGB 
BGR 
BAYER_BG 
BAYER_GB 
BAYER_RG 
BAYER_GR 

Definition at line 42 of file CameraBridge.h.


Constructor & Destructor Documentation

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.

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.


Member Function Documentation

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.

Definition at line 103 of file CameraBridge.h.

Definition at line 109 of file CameraBridge.h.

bool CameraBridge::usesBayer ( ) const [inline]

Definition at line 127 of file CameraBridge.h.


Member Data Documentation

cv::Mat CameraBridge::m_distortion [protected]

Definition at line 146 of file CameraBridge.h.

Definition at line 153 of file CameraBridge.h.

Definition at line 143 of file CameraBridge.h.

int CameraBridge::m_image_width [protected]

Definition at line 152 of file CameraBridge.h.

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.

Definition at line 144 of file CameraBridge.h.

Definition at line 149 of file CameraBridge.h.


The documentation for this class was generated from the following files:


re_vision
Author(s): Dorian Galvez-Lopez
autogenerated on Sun Jan 5 2014 11:33:53