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 };
std::string filename
int count
#define slots
Dialog for importation of Snavely's Bundler files.
bool importImages() const
Returns whether images should be imported.
bool orthoRectifyImagesAsImages() const
Returns whether images should be ortho-rectified as images.
bool getOptionalTransfoMatrix(ccGLMatrix &mat)
Returns the optional transformation matrix (if defined)
bool importKeypoints() const
Returns whether keypoints should be imported.
unsigned getDTMVerticesCount() const
Returns desired number of vertices for DTM.
bool keepImagesInMemory() const
Returns images should be kept in memory or not.
QString getAltKeypointsFilename() const
Gets alternative keypoints filename (full path)
void setImageListFilename(const QString &filename)
Sets default image list filename (full path)
bool orthoRectifyImagesAsClouds() const
Returns whether images should be ortho-rectified as clouds.
void setVer(unsigned majorVer, unsigned minorVer)
Sets file version on initialization.
OrthoRectMethod getOrthorectificationMethod() const
Returns the ortho-rectification method (for images)
bool useAlternativeKeypoints() const
Returns whether alternative keypoints should be used.
virtual ~BundlerImportDlg()
Destructor.
void setCamerasCount(unsigned count)
Sets cameras count on initialization.
double getScaleFactor() const
Returns scale factor.
bool undistortImages() const
Returns whether images should be undistorted.
bool generateColoredDTM() const
Returns whether colored pseudo-DTM should be generated.
void saveToPersistentSettings()
Saves dialog state from persistent settings.
void setAltKeypointsFilename(const QString &filename)
Sets default alternative keypoints filename (full path)
void setKeypointsCount(unsigned count)
Sets keypoints count on initialization.
void initFromPersistentSettings()
Inits dialog state from persistent settings.
OrthoRectMethod
Image ortho-rectification methods.
QString getImageListFilename() const
Gets image list filename (full path)
BundlerImportDlg(QWidget *parent=0)
Default constructor.
Float version of ccGLMatrixTpl.
Definition: ecvGLMatrix.h:19