ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
BundlerImportDlg.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 <QDialog>
11 
12 // local
13 #include "CV_io.h"
14 #include "ui_openBundlerFileDlg.h"
15 
16 class ccGLMatrix;
17 
19 class /*CV_IO_LIB_API*/ BundlerImportDlg : public QDialog,
20  public Ui::BundlerImportDlg {
21  Q_OBJECT
22 
23 public:
25  explicit BundlerImportDlg(QWidget* parent = 0);
26 
28  virtual ~BundlerImportDlg();
29 
31  bool importKeypoints() const;
33  bool useAlternativeKeypoints() const;
35  bool importImages() const;
37  bool undistortImages() const;
39  bool orthoRectifyImagesAsClouds() const;
41  bool orthoRectifyImagesAsImages() const;
43  bool generateColoredDTM() const;
45  bool keepImagesInMemory() const;
46 
51 
53  void setKeypointsCount(unsigned count);
55  void setCamerasCount(unsigned count);
57  void setVer(unsigned majorVer, unsigned minorVer);
58 
60  void setImageListFilename(const QString& filename);
62  QString getImageListFilename() const;
63 
65  void setAltKeypointsFilename(const QString& filename);
67  QString getAltKeypointsFilename() const;
68 
70  double getScaleFactor() const;
71 
73  unsigned getDTMVerticesCount() const;
74 
77 
78 protected slots:
81  void acceptAndSaveSettings();
82 
83 protected:
86 
89 };
BundlerImportDlg::orthoRectifyImagesAsClouds
bool orthoRectifyImagesAsClouds() const
Returns whether images should be ortho-rectified as clouds.
Definition: BundlerImportDlg.cpp:161
filename
std::string filename
Definition: PointCloudIO.cpp:47
BundlerImportDlg::setImageListFilename
void setImageListFilename(const QString &filename)
Sets default image list filename (full path)
Definition: BundlerImportDlg.cpp:219
BundlerImportDlg::setKeypointsCount
void setKeypointsCount(unsigned count)
Sets keypoints count on initialization.
Definition: BundlerImportDlg.cpp:198
BundlerImportDlg::generateColoredDTM
bool generateColoredDTM() const
Returns whether colored pseudo-DTM should be generated.
Definition: BundlerImportDlg.cpp:171
BundlerImportDlg::getScaleFactor
double getScaleFactor() const
Returns scale factor.
Definition: BundlerImportDlg.cpp:253
BundlerImportDlg::importImages
bool importImages() const
Returns whether images should be imported.
Definition: BundlerImportDlg.cpp:151
BundlerImportDlg::DIRECT_UNDISTORTED
@ DIRECT_UNDISTORTED
Definition: BundlerImportDlg.h:48
BundlerImportDlg::orthoRectifyImagesAsImages
bool orthoRectifyImagesAsImages() const
Returns whether images should be ortho-rectified as images.
Definition: BundlerImportDlg.cpp:166
BundlerImportDlg::BundlerImportDlg
BundlerImportDlg(QWidget *parent=0)
Default constructor.
Definition: BundlerImportDlg.cpp:26
slots
#define slots
Definition: PythonPlugin.cpp:25
BundlerImportDlg::getOrthorectificationMethod
OrthoRectMethod getOrthorectificationMethod() const
Returns the ortho-rectification method (for images)
Definition: BundlerImportDlg.cpp:182
BundlerImportDlg::setCamerasCount
void setCamerasCount(unsigned count)
Sets cameras count on initialization.
Definition: BundlerImportDlg.cpp:210
BundlerImportDlg::getOptionalTransfoMatrix
bool getOptionalTransfoMatrix(ccGLMatrix &mat)
Returns the optional transformation matrix (if defined)
Definition: BundlerImportDlg.cpp:261
BundlerImportDlg::useAlternativeKeypoints
bool useAlternativeKeypoints() const
Returns whether alternative keypoints should be used.
Definition: BundlerImportDlg.cpp:142
BundlerImportDlg::importKeypoints
bool importKeypoints() const
Returns whether keypoints should be imported.
Definition: BundlerImportDlg.cpp:146
CV_io.h
BundlerImportDlg
Dialog for importation of Snavely's Bundler files.
Definition: BundlerImportDlg.h:19
BundlerImportDlg::browseAltKeypointsFilename
void browseAltKeypointsFilename()
Definition: BundlerImportDlg.cpp:244
BundlerImportDlg::~BundlerImportDlg
virtual ~BundlerImportDlg()
Destructor.
Definition: BundlerImportDlg.cpp:41
BundlerImportDlg::setAltKeypointsFilename
void setAltKeypointsFilename(const QString &filename)
Sets default alternative keypoints filename (full path)
Definition: BundlerImportDlg.cpp:227
BundlerImportDlg::saveToPersistentSettings
void saveToPersistentSettings()
Saves dialog state from persistent settings.
BundlerImportDlg::browseImageListFilename
void browseImageListFilename()
Definition: BundlerImportDlg.cpp:235
BundlerImportDlg::keepImagesInMemory
bool keepImagesInMemory() const
Returns images should be kept in memory or not.
Definition: BundlerImportDlg.cpp:176
ccGLMatrix
Float version of ccGLMatrixTpl.
Definition: ecvGLMatrix.h:19
count
int count
Definition: FileIOFactory.cpp:132
BundlerImportDlg::OPTIMIZED
@ OPTIMIZED
Definition: BundlerImportDlg.h:48
BundlerImportDlg::DIRECT
@ DIRECT
Definition: BundlerImportDlg.h:48
BundlerImportDlg::undistortImages
bool undistortImages() const
Returns whether images should be undistorted.
Definition: BundlerImportDlg.cpp:155
BundlerImportDlg::setVer
void setVer(unsigned majorVer, unsigned minorVer)
Sets file version on initialization.
Definition: BundlerImportDlg.cpp:215
BundlerImportDlg::OrthoRectMethod
OrthoRectMethod
Image ortho-rectification methods.
Definition: BundlerImportDlg.h:48
BundlerImportDlg::initFromPersistentSettings
void initFromPersistentSettings()
Inits dialog state from persistent settings.
Definition: BundlerImportDlg.cpp:43
BundlerImportDlg::getImageListFilename
QString getImageListFilename() const
Gets image list filename (full path)
Definition: BundlerImportDlg.cpp:223
BundlerImportDlg::getAltKeypointsFilename
QString getAltKeypointsFilename() const
Gets alternative keypoints filename (full path)
Definition: BundlerImportDlg.cpp:231
BundlerImportDlg::acceptAndSaveSettings
void acceptAndSaveSettings()
Definition: BundlerImportDlg.cpp:103
BundlerImportDlg::getDTMVerticesCount
unsigned getDTMVerticesCount() const
Returns desired number of vertices for DTM.
Definition: BundlerImportDlg.cpp:257