![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Dialog for importation of Snavely's Bundler files. More...
#include <BundlerImportDlg.h>


Public Types | |
| enum | OrthoRectMethod { OPTIMIZED , DIRECT_UNDISTORTED , DIRECT } |
| Image ortho-rectification methods. More... | |
Public Member Functions | |
| BundlerImportDlg (QWidget *parent=0) | |
| Default constructor. More... | |
| virtual | ~BundlerImportDlg () |
| Destructor. More... | |
| bool | importKeypoints () const |
| Returns whether keypoints should be imported. More... | |
| bool | useAlternativeKeypoints () const |
| Returns whether alternative keypoints should be used. More... | |
| bool | importImages () const |
| Returns whether images should be imported. More... | |
| bool | undistortImages () const |
| Returns whether images should be undistorted. More... | |
| bool | orthoRectifyImagesAsClouds () const |
| Returns whether images should be ortho-rectified as clouds. More... | |
| bool | orthoRectifyImagesAsImages () const |
| Returns whether images should be ortho-rectified as images. More... | |
| bool | generateColoredDTM () const |
| Returns whether colored pseudo-DTM should be generated. More... | |
| bool | keepImagesInMemory () const |
| Returns images should be kept in memory or not. More... | |
| OrthoRectMethod | getOrthorectificationMethod () const |
| Returns the ortho-rectification method (for images) More... | |
| void | setKeypointsCount (unsigned count) |
| Sets keypoints count on initialization. More... | |
| void | setCamerasCount (unsigned count) |
| Sets cameras count on initialization. More... | |
| void | setVer (unsigned majorVer, unsigned minorVer) |
| Sets file version on initialization. More... | |
| void | setImageListFilename (const QString &filename) |
| Sets default image list filename (full path) More... | |
| QString | getImageListFilename () const |
| Gets image list filename (full path) More... | |
| void | setAltKeypointsFilename (const QString &filename) |
| Sets default alternative keypoints filename (full path) More... | |
| QString | getAltKeypointsFilename () const |
| Gets alternative keypoints filename (full path) More... | |
| double | getScaleFactor () const |
| Returns scale factor. More... | |
| unsigned | getDTMVerticesCount () const |
| Returns desired number of vertices for DTM. More... | |
| bool | getOptionalTransfoMatrix (ccGLMatrix &mat) |
| Returns the optional transformation matrix (if defined) More... | |
Protected Slots | |
| void | browseImageListFilename () |
| void | browseAltKeypointsFilename () |
| void | acceptAndSaveSettings () |
Protected Member Functions | |
| void | initFromPersistentSettings () |
| Inits dialog state from persistent settings. More... | |
| void | saveToPersistentSettings () |
| Saves dialog state from persistent settings. More... | |
Dialog for importation of Snavely's Bundler files.
Definition at line 19 of file BundlerImportDlg.h.
Image ortho-rectification methods.
| Enumerator | |
|---|---|
| OPTIMIZED | |
| DIRECT_UNDISTORTED | |
| DIRECT | |
Definition at line 48 of file BundlerImportDlg.h.
|
explicit |
Default constructor.
Definition at line 26 of file BundlerImportDlg.cpp.
References acceptAndSaveSettings(), browseAltKeypointsFilename(), browseImageListFilename(), and initFromPersistentSettings().
|
virtual |
Destructor.
Definition at line 41 of file BundlerImportDlg.cpp.
|
protectedslot |
Definition at line 103 of file BundlerImportDlg.cpp.
References ccGLMatrixTpl< double >::FromString().
Referenced by BundlerImportDlg().
|
protectedslot |
Definition at line 244 of file BundlerImportDlg.cpp.
Referenced by BundlerImportDlg().
|
protectedslot |
Definition at line 235 of file BundlerImportDlg.cpp.
Referenced by BundlerImportDlg().
| bool BundlerImportDlg::generateColoredDTM | ( | ) | const |
Returns whether colored pseudo-DTM should be generated.
Definition at line 171 of file BundlerImportDlg.cpp.
Referenced by initFromPersistentSettings(), and BundlerFilter::loadFileExtended().
| QString BundlerImportDlg::getAltKeypointsFilename | ( | ) | const |
Gets alternative keypoints filename (full path)
Definition at line 231 of file BundlerImportDlg.cpp.
Referenced by BundlerFilter::loadFileExtended().
| unsigned BundlerImportDlg::getDTMVerticesCount | ( | ) | const |
Returns desired number of vertices for DTM.
Definition at line 257 of file BundlerImportDlg.cpp.
Referenced by BundlerFilter::loadFileExtended().
| QString BundlerImportDlg::getImageListFilename | ( | ) | const |
Gets image list filename (full path)
Definition at line 223 of file BundlerImportDlg.cpp.
Referenced by BundlerFilter::loadFileExtended().
| bool BundlerImportDlg::getOptionalTransfoMatrix | ( | ccGLMatrix & | mat | ) |
Returns the optional transformation matrix (if defined)
Definition at line 261 of file BundlerImportDlg.cpp.
References ccGLMatrixTpl< T >::data(), ccGLMatrixTpl< float >::FromString(), and ccGLMatrixTpl< T >::toZero().
Referenced by BundlerFilter::loadFileExtended().
| BundlerImportDlg::OrthoRectMethod BundlerImportDlg::getOrthorectificationMethod | ( | ) | const |
Returns the ortho-rectification method (for images)
Definition at line 182 of file BundlerImportDlg.cpp.
References DIRECT, DIRECT_UNDISTORTED, and OPTIMIZED.
Referenced by BundlerFilter::loadFileExtended().
| double BundlerImportDlg::getScaleFactor | ( | ) | const |
Returns scale factor.
Definition at line 253 of file BundlerImportDlg.cpp.
Referenced by BundlerFilter::loadFileExtended().
| bool BundlerImportDlg::importImages | ( | ) | const |
Returns whether images should be imported.
Definition at line 151 of file BundlerImportDlg.cpp.
Referenced by initFromPersistentSettings(), and BundlerFilter::loadFileExtended().
| bool BundlerImportDlg::importKeypoints | ( | ) | const |
Returns whether keypoints should be imported.
Definition at line 146 of file BundlerImportDlg.cpp.
Referenced by initFromPersistentSettings(), and BundlerFilter::loadFileExtended().
|
protected |
Inits dialog state from persistent settings.
Definition at line 43 of file BundlerImportDlg.cpp.
References generateColoredDTM(), importImages(), importKeypoints(), keepImagesInMemory(), and undistortImages().
Referenced by BundlerImportDlg().
| bool BundlerImportDlg::keepImagesInMemory | ( | ) | const |
Returns images should be kept in memory or not.
Definition at line 176 of file BundlerImportDlg.cpp.
Referenced by initFromPersistentSettings(), and BundlerFilter::loadFileExtended().
| bool BundlerImportDlg::orthoRectifyImagesAsClouds | ( | ) | const |
Returns whether images should be ortho-rectified as clouds.
Definition at line 161 of file BundlerImportDlg.cpp.
Referenced by BundlerFilter::loadFileExtended().
| bool BundlerImportDlg::orthoRectifyImagesAsImages | ( | ) | const |
Returns whether images should be ortho-rectified as images.
Definition at line 166 of file BundlerImportDlg.cpp.
Referenced by BundlerFilter::loadFileExtended().
|
protected |
Saves dialog state from persistent settings.
| void BundlerImportDlg::setAltKeypointsFilename | ( | const QString & | filename | ) |
Sets default alternative keypoints filename (full path)
Definition at line 227 of file BundlerImportDlg.cpp.
References filename.
Referenced by BundlerFilter::loadFileExtended().
| void BundlerImportDlg::setCamerasCount | ( | unsigned | count | ) |
Sets cameras count on initialization.
Definition at line 210 of file BundlerImportDlg.cpp.
References count.
Referenced by BundlerFilter::loadFileExtended().
| void BundlerImportDlg::setImageListFilename | ( | const QString & | filename | ) |
Sets default image list filename (full path)
Definition at line 219 of file BundlerImportDlg.cpp.
References filename.
Referenced by BundlerFilter::loadFileExtended().
| void BundlerImportDlg::setKeypointsCount | ( | unsigned | count | ) |
Sets keypoints count on initialization.
Definition at line 198 of file BundlerImportDlg.cpp.
References count.
Referenced by BundlerFilter::loadFileExtended().
| void BundlerImportDlg::setVer | ( | unsigned | majorVer, |
| unsigned | minorVer | ||
| ) |
Sets file version on initialization.
Definition at line 215 of file BundlerImportDlg.cpp.
Referenced by BundlerFilter::loadFileExtended().
| bool BundlerImportDlg::undistortImages | ( | ) | const |
Returns whether images should be undistorted.
Definition at line 155 of file BundlerImportDlg.cpp.
Referenced by initFromPersistentSettings(), and BundlerFilter::loadFileExtended().
| bool BundlerImportDlg::useAlternativeKeypoints | ( | ) | const |
Returns whether alternative keypoints should be used.
Definition at line 142 of file BundlerImportDlg.cpp.
Referenced by BundlerFilter::loadFileExtended().