ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
AutomaticReconstructionWidget.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 <QtWidgets>
11 
13 #include "ui/options_widget.h"
14 
15 namespace cloudViewer {
16 class ReconstructionWidget;
17 class ThreadControlWidget;
18 
20 public:
22 
23  void Run();
24 
25 protected:
26  void showEvent(QShowEvent* event) override;
27 
28 private:
29  void RenderResult();
30 
31  ReconstructionWidget* main_window_;
33  ThreadControlWidget* thread_control_widget_;
34  QComboBox* data_type_cb_;
35  QComboBox* quality_cb_;
36  QComboBox* mesher_cb_;
37  QAction* render_result_;
38 
39  std::vector<std::string> meshing_paths_;
40  std::vector<std::string> textured_paths_;
41  std::vector<std::vector<colmap::PlyPoint>> fused_points_;
42  bool texturing_success_ = false;
43 };
44 
45 } // namespace cloudViewer
cloudViewer
Generic file read and write utility for python interface.
Definition: CloudViewerConfig.cpp:12
colmap::OptionsWidget::options_path_
std::vector< std::pair< QLineEdit *, std::string * > > options_path_
Definition: options_widget.h:81
colmap::AutomaticReconstructionWidget::AutomaticReconstructionWidget
AutomaticReconstructionWidget(MainWindow *main_window)
Definition: automatic_reconstruction_widget.cc:38
colmap::AutomaticReconstructionController::Options::image_path
std::string image_path
Definition: automatic_reconstruction.h:30
colmap::AutomaticReconstructionController::Quality::HIGH
@ HIGH
colmap::OptionsWidget::AddSpacer
void AddSpacer()
Definition: options_widget.cc:202
download.h
cloudViewer::AutomaticReconstructionWidget::AutomaticReconstructionWidget
AutomaticReconstructionWidget(ReconstructionWidget *main_window)
Definition: AutomaticReconstructionWidget.cpp:26
colmap::AutomaticReconstructionController::Options::mesher
Mesher mesher
Definition: automatic_reconstruction.h:64
cloudViewer::AutomaticReconstructionController::Options::autoVisualization
bool autoVisualization
Definition: AutomaticReconstructionController.h:37
colmap::ExistsFile
bool ExistsFile(const std::string &path)
Definition: misc.cc:100
colmap::AutomaticReconstructionController::Options::dense
bool dense
Definition: automatic_reconstruction.h:57
cloudViewer::ThreadControlWidget::StartThread
void StartThread(const QString &progress_text, const bool stoppable, colmap::Thread *thread)
Definition: ThreadControlWidget.cpp:34
colmap::AutomaticReconstructionController::DataType::INDIVIDUAL
@ INDIVIDUAL
colmap::Thread::FINISHED_CALLBACK
@ FINISHED_CALLBACK
Definition: threading.h:78
CVLog::Print
static bool Print(const char *format,...)
Prints out a formatted message in console.
Definition: CVLog.cpp:113
colmap::OptionsWidget::showEvent
void showEvent(QShowEvent *event)
Definition: options_widget.cc:268
cloudViewer::AutomaticReconstructionWidget::Run
void Run()
Definition: AutomaticReconstructionWidget.cpp:106
ccPointCloud::reserveThePointsTable
bool reserveThePointsTable(unsigned _numberOfPoints)
Reserves memory to store the points coordinates.
Definition: ecvPointCloud.cpp:1191
ccPointCloud
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Definition: ecvPointCloud.h:146
cloudViewer::ThreadControlWidget
Definition: ThreadControlWidget.h:19
AutomaticReconstructionController.h
ReconstructionWidget.h
colmap::ReconstructionManager::Clear
void Clear()
Definition: reconstruction_manager.cc:75
AutomaticReconstructionWidget.h
colmap::AutomaticReconstructionController::DataType::INTERNET
@ INTERNET
colmap::AutomaticReconstructionController::Options::use_gpu
bool use_gpu
Definition: automatic_reconstruction.h:77
colmap::OptionsWidget::grid_layout_
QGridLayout * grid_layout_
Definition: options_widget.h:70
colmap::AutomaticReconstructionController::Options::vocab_tree_path
std::string vocab_tree_path
Definition: automatic_reconstruction.h:36
CCVector3
Vector3Tpl< PointCoordinateType > CCVector3
Default 3D Vector.
Definition: CVGeom.h:798
ThreadControlWidget.h
colmap::AutomaticReconstructionController::DataType::VIDEO
@ VIDEO
cloudViewer::AutomaticReconstructionWidget
Definition: AutomaticReconstructionWidget.h:19
colmap::OptionsWidget::AddOptionBool
QCheckBox * AddOptionBool(bool *option, const std::string &label_text)
Definition: options_widget.cc:139
CVLog::Error
static bool Error(const char *format,...)
Display an error dialog with formatted message.
Definition: CVLog.cpp:143
cloudViewer::AutomaticReconstructionController::Options
Definition: AutomaticReconstructionController.h:35
ccDrawableObject::showColors
virtual void showColors(bool state)
Sets colors visibility.
Definition: ecvDrawableObject.h:84
colmap::AutomaticReconstructionController::Options::num_threads
int num_threads
Definition: automatic_reconstruction.h:71
colmap::AutomaticReconstructionController::Mesher::POISSON
@ POISSON
colmap::OptionsWidget::AddOptionFilePath
QLineEdit * AddOptionFilePath(std::string *option, const std::string &label_text)
Definition: options_widget.cc:161
event
MouseEvent event
Definition: BitmapWindowSystem.cpp:61
colmap::GetCachedFilePath
std::filesystem::path GetCachedFilePath(const std::string &uri)
colmap::Thread::AddCallback
void AddCallback(const int id, const std::function< void()> &func)
Definition: threading.cc:117
cloudViewer::AutomaticReconstructionController::textured_paths_
std::vector< std::string > textured_paths_
Definition: AutomaticReconstructionController.h:48
colmap::AutomaticReconstructionController::Options::texturing
bool texturing
Definition: automatic_reconstruction.h:68
cloudViewer::t::geometry::path
static const std::string path
Definition: PointCloud.cpp:59
e
const double * e
Definition: essential_matrix_poly.h:10
cloudViewer::AutomaticReconstructionController
Definition: AutomaticReconstructionController.h:31
cloudViewer::AutomaticReconstructionController::texturing_success_
bool texturing_success_
Definition: AutomaticReconstructionController.h:49
cloudViewer::AutomaticReconstructionWidget::showEvent
void showEvent(QShowEvent *event) override
Definition: AutomaticReconstructionWidget.cpp:296
colmap::OptionsWidget::AddOptionInt
QSpinBox * AddOptionInt(int *option, const std::string &label_text, const int min=0, const int max=static_cast< int >(1e7))
Definition: options_widget.cc:93
options_widget.h
colmap::AutomaticReconstructionController::Options::quality
Quality quality
Definition: automatic_reconstruction.h:42
colmap::AutomaticReconstructionController::Options::mask_path
std::string mask_path
Definition: automatic_reconstruction.h:33
colmap::AutomaticReconstructionController::Quality::EXTREME
@ EXTREME
colmap::AutomaticReconstructionController::Options::single_camera
bool single_camera
Definition: automatic_reconstruction.h:45
colmap::ExistsDir
bool ExistsDir(const std::string &path)
Definition: misc.cc:104
colmap::AutomaticReconstructionController::Options::data_type
DataType data_type
Definition: automatic_reconstruction.h:39
ccDrawableObject::setVisible
virtual void setVisible(bool state)
Sets entity visibility.
Definition: ecvDrawableObject.h:40
ccPointCloud::addRGBColor
void addRGBColor(const ecvColor::Rgb &C)
Pushes an RGB color on stack.
Definition: ecvPointCloud.cpp:1712
colmap::IsURI
bool IsURI(const std::string &uri)
colmap::AutomaticReconstructionController::Options::workspace_path
std::string workspace_path
Definition: automatic_reconstruction.h:27
colmap::retrieval::kDefaultVocabTreeUri
const static std::string kDefaultVocabTreeUri
Definition: resources.h:25
cloudViewer::AutomaticReconstructionController::fused_points_
std::vector< std::vector< colmap::PlyPoint > > fused_points_
Definition: AutomaticReconstructionController.h:46
ccHObject::getChildrenNumber
unsigned getChildrenNumber() const
Returns the number of children.
Definition: ecvHObject.h:312
cloudViewer::ReconstructionWidget
Definition: ReconstructionWidget.h:45
colmap::AutomaticReconstructionController::Mesher::DELAUNAY
@ DELAUNAY
MainWindow.h
colmap::OptionsWidget::AddOptionText
QLineEdit * AddOptionText(std::string *option, const std::string &label_text)
Definition: options_widget.cc:150
colmap::OptionsWidget
Definition: options_widget.h:16
colmap::OptionsWidget::AddOptionDirPath
QLineEdit * AddOptionDirPath(std::string *option, const std::string &label_text)
Definition: options_widget.cc:181
CVLog::Warning
static bool Warning(const char *format,...)
Prints out a formatted warning message in console.
Definition: CVLog.cpp:133
ecvColor::RgbTpl
RGB color structure.
Definition: ecvColorTypes.h:49
colmap::AutomaticReconstructionController::Options::sparse
bool sparse
Definition: automatic_reconstruction.h:51
resources.h
colmap::OptionsWidget::WriteOptions
void WriteOptions()
Definition: options_widget.cc:242
ccHObject
Hierarchical CLOUDVIEWER Object.
Definition: ecvHObject.h:25
cloudViewer::AutomaticReconstructionController::meshing_paths_
std::vector< std::string > meshing_paths_
Definition: AutomaticReconstructionController.h:47
colmap
Definition: AutomaticReconstructionController.h:17
cloudViewer::PointCloudTpl::addPoint
void addPoint(const CCVector3 &P)
Adds a 3D point to the database.
Definition: PointCloudTpl.h:246
cloudViewer::ReconstructionManagerWidget::Update
void Update()
Definition: ReconstructionManagerWidget.cpp:28
colmap::AutomaticReconstructionController::Quality::LOW
@ LOW
ccHObject::addChild
virtual bool addChild(ccHObject *child, int dependencyFlags=DP_PARENT_OF_OTHER, int insertIndex=-1)
Adds a child.
Definition: ecvHObject.cpp:534
colmap::AutomaticReconstructionController::Quality::MEDIUM
@ MEDIUM
ecvPointCloud.h
colmap::AutomaticReconstructionController::Options::gpu_index
std::string gpu_index
Definition: automatic_reconstruction.h:83
colmap::ReconstructionManager::Size
size_t Size() const
Definition: reconstruction_manager.cc:54
ccPointCloud::reserveTheRGBTable
bool reserveTheRGBTable()
Reserves memory to store the RGB colors.
Definition: ecvPointCloud.cpp:1200