ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
undistortion_widget.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include <QtCore>
11 #include <QtWidgets>
12 
13 #include "base/reconstruction.h"
14 #include "base/undistortion.h"
15 #include "ui/options_widget.h"
17 #include "util/misc.h"
18 #include "util/option_manager.h"
19 
20 namespace colmap {
21 
23 public:
24  UndistortionWidget(QWidget* parent, const OptionManager* options);
25 
26  void Show(const Reconstruction& reconstruction);
27  bool IsValid() const;
28 
29 private:
30  void Undistort();
31 
32  const OptionManager* options_;
33  const Reconstruction* reconstruction_;
34 
35  ThreadControlWidget* thread_control_widget_;
36 
37  QComboBox* output_format_;
38  UndistortCameraOptions undistortion_options_;
39  std::string output_path_;
40 };
41 
42 } // namespace colmap
UndistortionWidget(QWidget *parent, const OptionManager *options)
void Show(const Reconstruction &reconstruction)