qcam_calib
Public Slots | Public Member Functions | List of all members
QCamCalib Class Reference

Widget for calibrating pinhole cameras. More...

#include <QCamCalib.hpp>

Inheritance diagram for QCamCalib:

Public Slots

void addCamera (int camera_id=-1)
 Adds a new camera to the workspace. More...
 
void removeCamera (int camera_id=-1)
 Removes a camera from the workspace. More...
 
void loadImages (int camera_id=-1)
 Opens a dialog to select images which are going to be loaded and added to the camera. More...
 
void addImage (const QString &name, const QImage &image, int camera_id=-1)
 Adds an image to a camera. More...
 
void saveCameraParameter (int camera_id=-1)
 Opens a file dialog and saves the camera parameter as YAML or XML. More...
 
void calibrateCamera (int camera_id=-1)
 Calibrates a camera. More...
 
void findChessBoard (int camera_id=-1, const QString &name=QString(""))
 Finds chessboard corners in an image. More...
 

Public Member Functions

 QCamCalib (QWidget *parent=0)
 
virtual ~QCamCalib ()
 

Detailed Description

Widget for calibrating pinhole cameras.

As underlying Back-End OpenCV is used:

Author
Alexa.nosp@m.nder.nosp@m..Duda.nosp@m.@dfk.nosp@m.i.de

Constructor & Destructor Documentation

◆ QCamCalib()

QCamCalib::QCamCalib ( QWidget *  parent = 0)

◆ ~QCamCalib()

QCamCalib::~QCamCalib ( )
virtual

Member Function Documentation

◆ addCamera

void QCamCalib::addCamera ( int  camera_id = -1)
slot

Adds a new camera to the workspace.

Parameters
[in]camera_idThe id of the camera. If no id is given the next free id is used starting from 0
Author
Alexa.nosp@m.nder.nosp@m..Duda.nosp@m.@dfk.nosp@m.i.de

◆ addImage

void QCamCalib::addImage ( const QString &  name,
const QImage &  image,
int  camera_id = -1 
)
slot

Adds an image to a camera.

Note
If no camera id is given it is assumed that a camera item is selected in the TreeView.
Parameters
[in]nameThe name of the image
[in]imageThe image
[in]camera_idThe id of the camera.
Author
Alexa.nosp@m.nder.nosp@m..Duda.nosp@m.@dfk.nosp@m.i.de

◆ calibrateCamera

void QCamCalib::calibrateCamera ( int  camera_id = -1)
slot

Calibrates a camera.

Note
If no camera id is given it is assumed that a camera item is selected in the TreeView.
Parameters
[in]camera_idThe id of the camera.
Author
Alexa.nosp@m.nder.nosp@m..Duda.nosp@m.@dfk.nosp@m.i.de

◆ findChessBoard

void QCamCalib::findChessBoard ( int  camera_id = -1,
const QString &  name = QString("") 
)
slot

Finds chessboard corners in an image.

Note
if no camera id is given it is assumed that an image is selected in the TreeView
Parameters
[in]camera_idThe id of the camera.
[in]nameThe name of the image
Author
Alexa.nosp@m.nder.nosp@m..Duda.nosp@m.@dfk.nosp@m.i.de

◆ loadImages

void QCamCalib::loadImages ( int  camera_id = -1)
slot

Opens a dialog to select images which are going to be loaded and added to the camera.

Note
If no camera id is given it is assumed that a camera item is selected in the TreeView.

This call automatically performs chessboard detection

Parameters
[in]camera_idThe id of the camera.
Author
Alexa.nosp@m.nder.nosp@m..Duda.nosp@m.@dfk.nosp@m.i.de

◆ removeCamera

void QCamCalib::removeCamera ( int  camera_id = -1)
slot

Removes a camera from the workspace.

Note
If no camera id is given it is assumed that a camera item is selected in the TreeView.
Parameters
[in]camera_idThe id of the camera.
Author
Alexa.nosp@m.nder.nosp@m..Duda.nosp@m.@dfk.nosp@m.i.de

◆ saveCameraParameter

void QCamCalib::saveCameraParameter ( int  camera_id = -1)
slot

Opens a file dialog and saves the camera parameter as YAML or XML.

Note
If no camera id is given it is assumed that a camera item is selected in the TreeView.
Parameters
[in]camera_idThe id of the camera.
Author
Alexa.nosp@m.nder.nosp@m..Duda.nosp@m.@dfk.nosp@m.i.de

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