ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
UndistortionWidget.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 "ThreadControlWidget.h"
14 #include "base/undistortion.h"
15 #include "ui/options_widget.h"
16 
17 namespace colmap {
18 class Reconstruction;
19 }
20 
21 #include "util/option_manager.h"
22 
23 namespace cloudViewer {
24 
26 
27 class UndistortionWidget : public colmap::OptionsWidget {
28 public:
29  UndistortionWidget(QWidget* parent, const OptionManager* options);
30 
31  void Show(const colmap::Reconstruction& reconstruction);
32  bool IsValid() const;
33 
34 private:
35  void Undistort();
36 
37  const OptionManager* options_;
38  const colmap::Reconstruction* reconstruction_;
39 
40  ThreadControlWidget* thread_control_widget_;
41 
42  QComboBox* output_format_;
43  colmap::UndistortCameraOptions undistortion_options_;
44  std::string output_path_;
45 };
46 
47 } // namespace cloudViewer
UndistortionWidget(QWidget *parent, const OptionManager *options)
void Show(const colmap::Reconstruction &reconstruction)
Generic file read and write utility for python interface.
colmap::OptionManager OptionManager