Public Slots | Public Member Functions | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes
rtabmap::CalibrationDialog Class Reference

#include <CalibrationDialog.h>

Inheritance diagram for rtabmap::CalibrationDialog:
Inheritance graph
[legend]

List of all members.

Public Slots

void setBoardHeight (int height)
void setBoardWidth (int width)
void setMaxScale (int scale)
void setSquareSize (double size)

Public Member Functions

 CalibrationDialog (bool stereo=false, const QString &savingDirectory=".", bool switchImages=false, QWidget *parent=0)
const rtabmap::CameraModelgetLeftCameraModel () const
const rtabmap::CameraModelgetRightCameraModel () const
const rtabmap::StereoCameraModelgetStereoCameraModel () const
bool isCalibrated () const
bool isProcessing () const
void loadSettings (QSettings &settings, const QString &group="")
void resetSettings ()
void saveSettings (QSettings &settings, const QString &group="") const
void setSavingDirectory (const QString &savingDirectory)
void setStereoMode (bool stereo)
void setSwitchedImages (bool switched)
virtual ~CalibrationDialog ()

Protected Member Functions

virtual void closeEvent (QCloseEvent *event)
virtual void handleEvent (UEvent *event)

Private Slots

void calibrate ()
void processImages (const cv::Mat &imageLeft, const cv::Mat &imageRight, const QString &cameraName)
void restart ()
bool save ()
void unlock ()

Private Member Functions

float getArea (const std::vector< cv::Point2f > &corners, const cv::Size &boardSize)
void getParams (const std::vector< cv::Point2f > &corners, const cv::Size &boardSize, const cv::Size &imageSize, float &x, float &y, float &size, float &skew)
float getSkew (const std::vector< cv::Point2f > &corners, const cv::Size &boardSize)

Private Attributes

QString cameraName_
std::vector< std::vector
< std::vector< float > > > 
imageParams_
std::vector< std::vector
< std::vector< cv::Point2f > > > 
imagePoints_
std::vector< cv::Size > imageSize_
std::vector< unsigned short > maxIrs_
std::vector< unsigned short > minIrs_
std::vector< rtabmap::CameraModelmodels_
bool processingData_
bool savedCalibration_
QString savingDirectory_
bool stereo_
std::vector< std::vector
< std::vector< cv::Point2f > > > 
stereoImagePoints_
rtabmap::StereoCameraModel stereoModel_
Ui_calibrationDialog * ui_

Detailed Description

Definition at line 46 of file CalibrationDialog.h.


Constructor & Destructor Documentation

rtabmap::CalibrationDialog::CalibrationDialog ( bool  stereo = false,
const QString &  savingDirectory = ".",
bool  switchImages = false,
QWidget *  parent = 0 
)

Definition at line 49 of file CalibrationDialog.cpp.

Definition at line 101 of file CalibrationDialog.cpp.


Member Function Documentation

void rtabmap::CalibrationDialog::calibrate ( ) [private, slot]

Definition at line 656 of file CalibrationDialog.cpp.

void rtabmap::CalibrationDialog::closeEvent ( QCloseEvent *  event) [protected, virtual]

Definition at line 219 of file CalibrationDialog.cpp.

float rtabmap::CalibrationDialog::getArea ( const std::vector< cv::Point2f > &  corners,
const cv::Size &  boardSize 
) [private]

Definition at line 967 of file CalibrationDialog.cpp.

Definition at line 55 of file CalibrationDialog.h.

void rtabmap::CalibrationDialog::getParams ( const std::vector< cv::Point2f > &  corners,
const cv::Size &  boardSize,
const cv::Size &  imageSize,
float &  x,
float &  y,
float &  size,
float &  skew 
) [private]

Definition at line 1009 of file CalibrationDialog.cpp.

Definition at line 56 of file CalibrationDialog.h.

float rtabmap::CalibrationDialog::getSkew ( const std::vector< cv::Point2f > &  corners,
const cv::Size &  boardSize 
) [private]

Definition at line 985 of file CalibrationDialog.cpp.

Definition at line 57 of file CalibrationDialog.h.

void rtabmap::CalibrationDialog::handleEvent ( UEvent event) [protected, virtual]

Method called by the UEventsManager to handle an event. Important : this method must do a minimum of work because the faster the dispatching loop is done; the faster the events are received. If a handling function takes too much time, the events list can grow faster than it is emptied. The event can be modified but must not be deleted.

Implements UEventsHandler.

Definition at line 253 of file CalibrationDialog.cpp.

Definition at line 54 of file CalibrationDialog.h.

Definition at line 58 of file CalibrationDialog.h.

void rtabmap::CalibrationDialog::loadSettings ( QSettings &  settings,
const QString &  group = "" 
)

Definition at line 124 of file CalibrationDialog.cpp.

void rtabmap::CalibrationDialog::processImages ( const cv::Mat &  imageLeft,
const cv::Mat &  imageRight,
const QString &  cameraName 
) [private, slot]

Definition at line 272 of file CalibrationDialog.cpp.

Definition at line 145 of file CalibrationDialog.cpp.

void rtabmap::CalibrationDialog::restart ( ) [private, slot]

Definition at line 591 of file CalibrationDialog.cpp.

bool rtabmap::CalibrationDialog::save ( ) [private, slot]

Definition at line 905 of file CalibrationDialog.cpp.

void rtabmap::CalibrationDialog::saveSettings ( QSettings &  settings,
const QString &  group = "" 
) const

Definition at line 107 of file CalibrationDialog.cpp.

void rtabmap::CalibrationDialog::setBoardHeight ( int  height) [slot]

Definition at line 193 of file CalibrationDialog.cpp.

void rtabmap::CalibrationDialog::setBoardWidth ( int  width) [slot]

Definition at line 184 of file CalibrationDialog.cpp.

void rtabmap::CalibrationDialog::setMaxScale ( int  scale) [slot]

Definition at line 211 of file CalibrationDialog.cpp.

void rtabmap::CalibrationDialog::setSavingDirectory ( const QString &  savingDirectory) [inline]

Definition at line 66 of file CalibrationDialog.h.

void rtabmap::CalibrationDialog::setSquareSize ( double  size) [slot]

Definition at line 202 of file CalibrationDialog.cpp.

Definition at line 157 of file CalibrationDialog.cpp.

Definition at line 152 of file CalibrationDialog.cpp.

void rtabmap::CalibrationDialog::unlock ( ) [private, slot]

Definition at line 651 of file CalibrationDialog.cpp.


Member Data Documentation

Definition at line 101 of file CalibrationDialog.h.

std::vector<std::vector<std::vector<float> > > rtabmap::CalibrationDialog::imageParams_ [private]

Definition at line 106 of file CalibrationDialog.h.

std::vector<std::vector<std::vector<cv::Point2f> > > rtabmap::CalibrationDialog::imagePoints_ [private]

Definition at line 105 of file CalibrationDialog.h.

std::vector<cv::Size > rtabmap::CalibrationDialog::imageSize_ [private]

Definition at line 108 of file CalibrationDialog.h.

std::vector<unsigned short> rtabmap::CalibrationDialog::maxIrs_ [private]

Definition at line 112 of file CalibrationDialog.h.

std::vector<unsigned short> rtabmap::CalibrationDialog::minIrs_ [private]

Definition at line 111 of file CalibrationDialog.h.

Definition at line 109 of file CalibrationDialog.h.

Definition at line 102 of file CalibrationDialog.h.

Definition at line 103 of file CalibrationDialog.h.

Definition at line 99 of file CalibrationDialog.h.

Definition at line 98 of file CalibrationDialog.h.

std::vector<std::vector<std::vector<cv::Point2f> > > rtabmap::CalibrationDialog::stereoImagePoints_ [private]

Definition at line 107 of file CalibrationDialog.h.

Definition at line 110 of file CalibrationDialog.h.

Ui_calibrationDialog* rtabmap::CalibrationDialog::ui_ [private]

Definition at line 114 of file CalibrationDialog.h.


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


rtabmap
Author(s): Mathieu Labbe
autogenerated on Sat Jul 23 2016 11:44:31