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/RtabmapGuiExp.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 RTABMAPGUI_EXP 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_ */
#define RTABMAPGUI_EXP
Definition: RtabmapGuiExp.h:38
std::map< std::string, std::string > ParametersMap
Definition: Parameters.h:43
Ui_DepthCalibrationDialog * _ui
DiscreteDepthDistortionModel RTABMAP_EXP 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)
clams::DiscreteDepthDistortionModel * _model


rtabmap
Author(s): Mathieu Labbe
autogenerated on Mon Jan 23 2023 03:37:28