DepthCalibrationDialog.h
Go to the documentation of this file.
1 /*
2 Copyright (c) 2010-2016, Mathieu Labbe - IntRoLab - Universite de Sherbrooke
3 All rights reserved.
4 
5 Redistribution and use in source and binary forms, with or without
6 modification, are permitted provided that the following conditions are met:
7  * Redistributions of source code must retain the above copyright
8  notice, this list of conditions and the following disclaimer.
9  * Redistributions in binary form must reproduce the above copyright
10  notice, this list of conditions and the following disclaimer in the
11  documentation and/or other materials provided with the distribution.
12  * Neither the name of the Universite de Sherbrooke nor the
13  names of its contributors may be used to endorse or promote products
14  derived from this software without specific prior written permission.
15 
16 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY
20 DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27 
28 #ifndef RTABMAP_DEPTHCALIBRATIONDIALOG_H_
29 #define RTABMAP_DEPTHCALIBRATIONDIALOG_H_
30 
31 #include "rtabmap/gui/rtabmap_gui_export.h" // DLL export/import defines
32 
33 #include <QDialog>
34 #include <QMap>
35 #include <QtCore/QSettings>
36 #include <rtabmap/core/Signature.h>
38 
39 class Ui_DepthCalibrationDialog;
40 
41 namespace clams {
42 class DiscreteDepthDistortionModel;
43 }
44 
45 namespace rtabmap {
46 
47 class ProgressDialog;
48 
49 class RTABMAP_GUI_EXPORT DepthCalibrationDialog : public QDialog
50 {
51  Q_OBJECT
52 
53 public:
54  DepthCalibrationDialog(QWidget * parent = 0);
55  virtual ~DepthCalibrationDialog();
56 
57  void saveSettings(QSettings & settings, const QString & group = "") const;
58  void loadSettings(QSettings & settings, const QString & group = "");
59 
60  void calibrate(const std::map<int, Transform> & poses,
61  const QMap<int, Signature> & cachedSignatures,
62  const QString & workingDirectory,
63  const ParametersMap & parameters);
64 
65 Q_SIGNALS:
66  void configChanged();
67 
68 public Q_SLOTS:
69  void restoreDefaults();
70 
71 private Q_SLOTS:
72  void saveModel();
73  void cancel();
74 
75 private:
76  Ui_DepthCalibrationDialog * _ui;
78  bool _canceled;
81  cv::Size _imageSize;
82 };
83 
84 } /* namespace rtabmap */
85 
86 #endif /* GUILIB_SRC_DEPTHCALIBRATIONDIALOG_H_ */
rtabmap::ProgressDialog
Definition: ProgressDialog.h:43
rtabmap::DepthCalibrationDialog::_progressDialog
ProgressDialog * _progressDialog
Definition: DepthCalibrationDialog.h:77
clams::DiscreteDepthDistortionModel
Definition: discrete_depth_distortion_model.h:68
clams::calibrate
DiscreteDepthDistortionModel RTABMAP_CORE_EXPORT calibrate(const std::map< int, rtabmap::SensorData > &sequence, const std::map< int, rtabmap::Transform > &trajectory, const pcl::PointCloud< pcl::PointXYZ >::Ptr &map, double coneRadius=0.02, double coneStdevThresh=0.03)
rtabmap::DepthCalibrationDialog::_imageSize
cv::Size _imageSize
Definition: DepthCalibrationDialog.h:81
rtabmap::ParametersMap
std::map< std::string, std::string > ParametersMap
Definition: Parameters.h:43
Parameters.h
rtabmap::DepthCalibrationDialog
Definition: DepthCalibrationDialog.h:49
rtabmap::DepthCalibrationDialog::_model
clams::DiscreteDepthDistortionModel * _model
Definition: DepthCalibrationDialog.h:79
Signature.h
rtabmap::DepthCalibrationDialog::_workingDirectory
QString _workingDirectory
Definition: DepthCalibrationDialog.h:80
rtabmap::DepthCalibrationDialog::_ui
Ui_DepthCalibrationDialog * _ui
Definition: DepthCalibrationDialog.h:76
clams
Definition: discrete_depth_distortion_model.h:41
rtabmap
Definition: CameraARCore.cpp:35
rtabmap::DepthCalibrationDialog::_canceled
bool _canceled
Definition: DepthCalibrationDialog.h:78


rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:09