ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
profileImportDlg.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 "ui_profileImportDlg.h"
11 
14 class ProfileImportDlg : public QDialog, public Ui::ProfileImportDlg {
15  Q_OBJECT
16 
17 public:
19  explicit ProfileImportDlg(QWidget* parent = 0);
20 
21 protected slots:
22 
24  void saveSettings();
25 };
cloudViewer::GenericIndexedCloud
A generic 3D point cloud with index-based point access.
Definition: GenericIndexedCloud.h:18
ccGenericPointCloud::computeOctree
virtual ccOctree::Shared computeOctree(cloudViewer::GenericProgressCallback *progressCb=nullptr, bool autoAddChild=true)
Computes the cloud octree.
Definition: ecvGenericPointCloud.cpp:124
qM3C2Dialog::m_cloud1
ccPointCloud * m_cloud1
Definition: qM3C2Dialog.h:116
ccPointCloud::addScalarField
int addScalarField(const char *uniqueName) override
Creates a new scalar field and registers it.
Definition: ecvPointCloud.cpp:4210
ccPointCloud::deleteScalarField
void deleteScalarField(int index) override
Deletes a specific scalar field.
Definition: ecvPointCloud.cpp:3237
qM3C2Dialog::getCorePointsCloud
ccPointCloud * getCorePointsCloud() const
Get core points cloud (if any)
Definition: qM3C2Dialog.cpp:301
qM3C2Dialog::ExportOptions
ExportOptions
Exportation options.
Definition: qM3C2Dialog.h:57
ccHObject::filterChildren
unsigned filterChildren(Container &filteredChildren, bool recursive=false, CV_CLASS_ENUM filter=CV_TYPES::OBJECT, bool strict=false) const
Collects the children corresponding to a certain pattern.
Definition: ecvHObject.cpp:611
filename
std::string filename
Definition: PointCloudIO.cpp:47
ccArray::setValue
void setValue(size_t index, const Type &value)
Definition: ecvArray.h:102
qM3C2Dialog::getNormalsOrientationCloud
ccPointCloud * getNormalsOrientationCloud() const
Returns the cloud to be used for normals orientation (if any)
Definition: qM3C2Dialog.cpp:314
ccNormalVectors::MINUS_SENSOR_ORIGIN
@ MINUS_SENSOR_ORIGIN
Definition: ecvNormalVectors.h:86
Neighbourhood.h
ccDrawableObject::showNormals
virtual void showNormals(bool state)
Sets normals visibility.
Definition: ecvDrawableObject.h:93
ccPointCloud::invalidateBoundingBox
void invalidateBoundingBox() override
Invalidates bounding box.
Definition: ecvPointCloud.cpp:1706
ecvMainAppInterface::STD_CONSOLE_MESSAGE
@ STD_CONSOLE_MESSAGE
Definition: ecvMainAppInterface.h:117
Vector3Tpl::normalize
void normalize()
Sets vector norm to unity.
Definition: CVGeom.h:428
ccArray::currentSize
unsigned currentSize() const
Definition: ecvArray.h:112
cloudViewer::NormalizedProgress::oneStep
bool oneStep()
Increments total progress value of a single unit.
Definition: NormalizedProgress.cpp:99
qM3C2Normals::HORIZ_MODE
@ HORIZ_MODE
Definition: qM3C2Tools.h:32
ccScalarField::computeMinAndMax
void computeMinAndMax() override
Determines the min and max values.
Definition: ecvScalarField.cpp:145
cloudViewer::DgmOctree::CylindricalNeighbourhood::center
CCVector3 center
Cylinder center.
Definition: DgmOctree.h:660
ecvMainAppInterface::dispToConsole
virtual void dispToConsole(QString message, ConsoleMessageLevel level=STD_CONSOLE_MESSAGE)=0
qM3C2Normals::ComputeCorePointsNormals
static bool ComputeCorePointsNormals(cloudViewer::GenericIndexedCloud *corePoints, NormsIndexesTableType *corePointsNormals, ccGenericPointCloud *sourceCloud, const std::vector< PointCoordinateType > &sortedRadii, bool &invalidNormals, int maxThreadCount=0, ccScalarField *normalScale=nullptr, cloudViewer::GenericProgressCallback *progressCb=nullptr, cloudViewer::DgmOctree *inputOctree=nullptr)
Computes normals on core points only.
Definition: qM3C2Tools.cpp:179
Tuple3Tpl::x
Type x
Definition: CVGeom.h:137
CloudSamplingTools.h
cloudViewer::ReferenceCloud::size
unsigned size() const override
Returns the number of points.
Definition: ReferenceCloud.h:41
cloudViewer::DgmOctree::CylindricalNeighbourhood::radius
PointCoordinateType radius
Cylinder radius.
Definition: DgmOctree.h:664
cloudViewer::GenericCloud::size
virtual unsigned size() const =0
Returns the number of points.
qM3C2Dialog::setCloud2Visibility
void setCloud2Visibility(bool)
Definition: qM3C2Dialog.cpp:334
qM3C2Dialog::onUpdateNormalComboBoxChanged
void onUpdateNormalComboBoxChanged(int)
Definition: qM3C2Dialog.cpp:238
GetEntityName
static QString GetEntityName(ccHObject *obj)
Definition: qM3C2Dialog.cpp:27
ccHObject::getParent
ccHObject * getParent() const
Returns parent object.
Definition: ecvHObject.h:245
Vector3Tpl::norm
Type norm() const
Returns vector norm.
Definition: CVGeom.h:424
qM3C2Tools::GuessBestParams
static bool GuessBestParams(ccPointCloud *cloud1, ccPointCloud *cloud2, unsigned minPoints4Stats, GuessedParams &params, bool fastMode, ecvMainAppInterface *app=nullptr, unsigned probingCount=1000)
Tries to guess some M3C2 parameters by randomly 'probing' the cloud.
Definition: qM3C2Tools.cpp:529
RemoveScalarField
static void RemoveScalarField(ccPointCloud *cloud, const char sfName[])
Definition: qM3C2Process.cpp:49
cloudViewer::ScalarField::getValue
ScalarType & getValue(std::size_t index)
Definition: ScalarField.h:92
M3C2Params::cloud2Octree
ccOctree::Shared cloud2Octree
Definition: qM3C2Process.cpp:149
s_normOriWithCloud
static struct @95 s_normOriWithCloud
qM3C2Process.h
ccHObjectCaster::ToPointCloud
static ccPointCloud * ToPointCloud(ccHObject *obj, bool *isLockedVertices=nullptr)
Converts current object to 'equivalent' ccPointCloud.
Definition: ecvHObjectCaster.cpp:54
cloudViewer::BoundingBoxTpl::getDiagNorm
T getDiagNorm() const
Returns diagonal length.
Definition: BoundingBox.h:172
nProgress
cloudViewer::NormalizedProgress * nProgress
Definition: qCanupoTools.cpp:42
cloudViewer::SquareMatrixTpl< double >
DIST_UNCERTAINTY_SF_NAME
static const char DIST_UNCERTAINTY_SF_NAME[]
Definition: qM3C2Process.cpp:41
ecvMainAppInterface::getMainWindow
virtual QMainWindow * getMainWindow()=0
Returns main window.
corePoints
cloudViewer::GenericIndexedCloud * corePoints
Definition: qM3C2Tools.cpp:38
ccObject::setName
virtual void setName(const QString &name)
Sets object name.
Definition: ecvObject.h:75
ccObject::isA
bool isA(CV_CLASS_ENUM type) const
Definition: ecvObject.h:131
M3C2Params::computeConfidence
bool computeConfidence
Definition: qM3C2Process.cpp:136
qM3C2Tools::GuessedParams::projScale
double projScale
Definition: qM3C2Tools.h:81
cloudViewer::PointCloudTpl::getNumberOfScalarFields
unsigned getNumberOfScalarFields() const
Returns the number of associated (and active) scalar fields.
Definition: PointCloudTpl.h:345
ProfileImportDlg::setDefaultFilename
void setDefaultFilename(QString filename)
Sets default filename.
Definition: profileImportDlg.cpp:45
cloudViewer::DgmOctree::CylindricalNeighbourhood::level
unsigned char level
subdivision level at which to apply the extraction process
Definition: DgmOctree.h:670
qM3C2Tools::GuessedParams::projDepth
double projDepth
Definition: qM3C2Tools.h:82
cloudViewer::CloudSamplingTools::SFModulationParams
Parameters for the scalar-field based modulation of a parameter.
Definition: CloudSamplingTools.h:138
qM3C2Dialog::getCloud2
ccPointCloud * getCloud2() const
Returns cloud #2.
Definition: qM3C2Dialog.h:34
CV_TYPES::POINT_CLOUD
@ POINT_CLOUD
Definition: CVTypes.h:104
s_firstTimeInit
static bool s_firstTimeInit
Definition: qM3C2Dialog.cpp:24
invalidNormals
bool invalidNormals
Definition: qM3C2Tools.cpp:45
ecvProgressDialog::start
virtual void start() override
Definition: ecvProgressDialog.cpp:70
qM3C2Tools::ComputeStatistics
static void ComputeStatistics(cloudViewer::DgmOctree::NeighboursSet &set, bool useMedian, double &meanOrMedian, double &stdDevOrIQR)
Computes statistics on a neighbors set.
Definition: qM3C2Tools.cpp:487
ecvMainAppInterface::WRN_CONSOLE_MESSAGE
@ WRN_CONSOLE_MESSAGE
Definition: ecvMainAppInterface.h:118
cloudViewer::PointCloudTpl::getPoint
const CCVector3 * getPoint(unsigned index) const override
Definition: PointCloudTpl.h:143
M3C2Params::coreNormals
NormsIndexesTableType * coreNormals
Definition: qM3C2Process.cpp:128
qM3C2Normals::USE_CLOUD1_NORMALS
@ USE_CLOUD1_NORMALS
Definition: qM3C2Tools.h:29
ecvMainAppInterface::dbRootObject
virtual ccHObject * dbRootObject()=0
Returns DB root (as a ccHObject)
ccNormalVectors::GetNormal
static const CCVector3 & GetNormal(unsigned normIndex)
Static access to ccNormalVectors::getNormal.
Definition: ecvNormalVectors.h:37
cloudViewer::PointCloudTpl::size
unsigned size() const override
Definition: PointCloudTpl.h:38
ccPointCloud
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Definition: ecvPointCloud.h:146
ccPointCloud::resizeTheNormsTable
bool resizeTheNormsTable()
Resizes the compressed normals array.
Definition: ecvPointCloud.cpp:1281
qM3C2Normals::ComputationMode
ComputationMode
Normals computation mode.
Definition: qM3C2Tools.h:27
DENSITY_CLOUD1_SF_NAME
static const char DENSITY_CLOUD1_SF_NAME[]
Definition: qM3C2Process.cpp:45
ccArray::resizeSafe
bool resizeSafe(size_t count, bool initNewElements=false, const Type *valueForNewElements=nullptr)
Resizes memory (no exception thrown)
Definition: ecvArray.h:70
s_M3C2Params
static M3C2Params s_M3C2Params
Definition: qM3C2Process.cpp:173
cloudViewer::ScalarField
A simple scalar field (to be associated to a point cloud)
Definition: ScalarField.h:25
sourceCloud
ccGenericPointCloud * sourceCloud
Definition: qM3C2Tools.cpp:39
PopulateSFCombo
bool PopulateSFCombo(QComboBox *combo, const ccPointCloud &cloud, int defaultFieldIndex=-1, QString defaultField=QString())
Definition: qM3C2Dialog.cpp:134
ccPointCloud::normals
NormsIndexesTableType * normals() const
Returns pointer on compressed normals indexes table.
Definition: ecvPointCloud.h:917
M3C2Params::onlyPositiveSearch
bool onlyPositiveSearch
Definition: qM3C2Process.cpp:138
qM3C2Commands.h
ecvMainAppInterface.h
octreeLevel
unsigned char octreeLevel
Definition: qM3C2Tools.cpp:41
ecvNormalVectors.h
M3C2Params::level1
unsigned char level1
Definition: qM3C2Process.cpp:148
normCodes
NormsIndexesTableType * normCodes
Definition: qM3C2Tools.cpp:43
cloudViewer::GenericProgressCallback::stop
virtual void stop()=0
Notifies the fact that the process has ended.
ProfileImportDlg
Dialog for importing a 2D revolution profile (qSRA plugin)
Definition: profileImportDlg.h:14
cloudViewer::GenericProgressCallback::setMethodTitle
virtual void setMethodTitle(const char *methodTitle)=0
Notifies the algorithm title.
qM3C2Tools.h
qM3C2Dialog::guessParams
void guessParams(bool fastMode)
Guess parameters from the cloud #1.
Definition: qM3C2Dialog.cpp:701
cloudViewer::GenericProgressCallback
Definition: GenericProgressCallback.h:20
PopulatePMFields
bool PopulatePMFields(QComboBox *sx, QComboBox *sy, QComboBox *sz, const ccPointCloud &cloud)
Definition: qM3C2Dialog.cpp:166
ccNormalVectors::GetNormIndex
static CompressedNormType GetNormIndex(const PointCoordinateType N[])
Returns the compressed index corresponding to a normal vector.
Definition: ecvNormalVectors.cpp:53
qM3C2Dialog::m_app
ecvMainAppInterface * m_app
Definition: qM3C2Dialog.h:114
qM3C2Dialog::getNormalsComputationMode
qM3C2Normals::ComputationMode getNormalsComputationMode() const
Returns selected normals computation mode.
Definition: qM3C2Dialog.cpp:345
cloudViewer::PointCloudTpl::getScalarFieldIndexByName
int getScalarFieldIndexByName(const char *name) const
Returns the index of a scalar field represented by its name.
Definition: PointCloudTpl.h:375
qM3C2Normals::VERT_MODE
@ VERT_MODE
Definition: qM3C2Tools.h:31
PrecisionMaps::scale
double scale
Definition: qM3C2Process.cpp:68
cloudViewer::BoundingBoxTpl::getDiagNormd
double getDiagNormd() const
Returns diagonal length (double precision)
Definition: BoundingBox.h:175
cloudViewer::DgmOctree::MAX_OCTREE_LEVEL
static const int MAX_OCTREE_LEVEL
Max octree subdivision level.
Definition: DgmOctree.h:67
SIG_CHANGE_SF_NAME
static const char SIG_CHANGE_SF_NAME[]
Definition: qM3C2Process.cpp:42
s_vertical
static double s_vertical
Definition: profileImportDlg.cpp:19
ccOctree::Shared
QSharedPointer< ccOctree > Shared
Shared pointer.
Definition: ecvOctree.h:32
normCloud
cloudViewer::GenericIndexedCloud * normCloud
Definition: qM3C2Tools.cpp:300
profileImportDlg.h
ccHObject::Container
std::vector< ccHObject * > Container
Standard instances container (for children, etc.)
Definition: ecvHObject.h:337
PrecisionMaps::PrecisionMaps
PrecisionMaps()
Definition: qM3C2Process.cpp:63
ccPointCloud::setCurrentDisplayedScalarField
void setCurrentDisplayedScalarField(int index)
Sets the currently displayed scalar field.
Definition: ecvPointCloud.cpp:3227
qM3C2Dialog.h
PrecisionMaps::sY
cloudViewer::ScalarField * sY
Definition: qM3C2Process.cpp:67
cloudViewer::PointCloudTpl::getScalarField
ScalarField * getScalarField(int index) const
Returns a pointer to a specific scalar field.
Definition: PointCloudTpl.h:354
M3C2_DIST_SF_NAME
static const char M3C2_DIST_SF_NAME[]
Default name for M3C2 scalar fields.
Definition: qM3C2Process.cpp:40
ccGenericPointCloud::importParametersFrom
void importParametersFrom(const ccGenericPointCloud *cloud)
Imports the parameters from another cloud.
Definition: ecvGenericPointCloud.cpp:228
octree
cloudViewer::DgmOctree * octree
Definition: qM3C2Tools.cpp:40
ccGenericPointCloud::getOctree
virtual ccOctree::Shared getOctree() const
Returns the associated octree (if any)
Definition: ecvGenericPointCloud.cpp:97
ProfileImportDlg::getAxisDimension
int getAxisDimension() const
Definition: profileImportDlg.cpp:24
cloudViewer::GenericProgressCallback::setInfo
virtual void setInfo(const char *infoStr)=0
Notifies some information about the ongoing process.
ProfileImportDlg::saveSettings
void saveSettings()
Save settings.
Definition: profileImportDlg.cpp:34
QtCompatRegExpOption::CaseInsensitive
constexpr QRegularExpression::PatternOption CaseInsensitive
Definition: QtCompat.h:174
ecvFileUtils::defaultDocPath
QString defaultDocPath()
Shortcut for getting the documents location path.
Definition: ecvFileUtils.h:30
PrecisionMaps::sX
cloudViewer::ScalarField * sX
Definition: qM3C2Process.cpp:67
NormsIndexesTableType
Array of compressed 3D normals (single index)
Definition: ecvAdvancedTypes.h:21
cloudViewer::ScalarField::fill
void fill(ScalarType fillValue=0)
Fills the array with a particular value.
Definition: ScalarField.h:77
cloudViewer::ReferenceCloud::addPointIndex
virtual bool addPointIndex(unsigned globalIndex)
Point global index insertion mechanism.
Definition: ReferenceCloud.cpp:84
slots
#define slots
Definition: PythonPlugin.cpp:25
M3C2Params::corePoints
ccPointCloud * corePoints
Definition: qM3C2Process.cpp:127
profileImportDlg.h
DisclaimerDialog::show
static bool show(ecvMainAppInterface *app)
Definition: qM3C2DisclaimerDialog.cpp:27
GetCloudFromCombo
static ccPointCloud * GetCloudFromCombo(QComboBox *comboBox, ccHObject *dbRoot)
Definition: qM3C2Dialog.cpp:40
M3C2Params::projectionDepth
PointCoordinateType projectionDepth
Definition: qM3C2Process.cpp:132
ecvMainAppInterface
Main application interface (for plugins)
Definition: ecvMainAppInterface.h:24
M3C2Params::minPoints4Stats
unsigned minPoints4Stats
Definition: qM3C2Process.cpp:139
qM3C2.h
cloudViewer::ScalarField::resizeSafe
bool resizeSafe(std::size_t count, bool initNewElements=false, ScalarType valueForNewElements=0)
Resizes memory (no exception thrown)
Definition: ScalarField.cpp:81
ccOctree
Octree structure.
Definition: ecvOctree.h:27
ProfileImportDlg::ProfileImportDlg
ProfileImportDlg(QWidget *parent=0)
Default constructor.
Definition: profileImportDlg.cpp:21
qM3C2Dialog::getCloud1
ccPointCloud * getCloud1() const
Returns cloud #1.
Definition: qM3C2Dialog.h:32
ccGenericPointCloud
A 3D cloud interface with associated features (color, normals, octree, etc.)
Definition: ecvGenericPointCloud.h:45
qM3C2Dialog::updateNormalComboBox
void updateNormalComboBox()
Updates the normalSourceComboBox.
Definition: qM3C2Dialog.cpp:255
ProfileImportDlg::absoluteHeightValues
bool absoluteHeightValues() const
Definition: profileImportDlg.cpp:53
qM3C2Dialog::PROJECT_ON_CORE_POINTS
@ PROJECT_ON_CORE_POINTS
Definition: qM3C2Dialog.h:60
Jacobi
Jacobi eigen vectors/values decomposition.
Definition: Jacobi.h:23
qM3C2DisclaimerDialog.h
NORMAL_SCALE_SF_NAME
static const char NORMAL_SCALE_SF_NAME[]
Definition: qM3C2Process.cpp:47
ccGenericPointCloud::getOctreeProxy
virtual ccOctreeProxy * getOctreeProxy() const
Returns the associated octree proxy (if any)
Definition: ecvGenericPointCloud.cpp:87
Vector3Tpl< PointCoordinateType >
qM3C2Normals::USE_CORE_POINTS_NORMALS
@ USE_CORE_POINTS_NORMALS
Definition: qM3C2Tools.h:33
cloudViewer::ScalarField::getName
const char * getName() const
Returns scalar field name.
Definition: ScalarField.h:43
qM3C2Dialog::setupPrecisionMapsTab
void setupPrecisionMapsTab()
Setups the precision maps tab.
Definition: qM3C2Dialog.cpp:184
qM3C2Normals::DEFAULT_MODE
@ DEFAULT_MODE
Definition: qM3C2Tools.h:28
qM3C2Dialog::swapClouds
void swapClouds()
Definition: qM3C2Dialog.cpp:203
ccCommandLineInterface::Command::Shared
QSharedPointer< Command > Shared
Shared type.
Definition: ecvCommandLineInterface.h:132
ecvGenericPointCloud.h
qM3C2Dialog::PROJECT_ON_CLOUD1
@ PROJECT_ON_CLOUD1
Definition: qM3C2Dialog.h:58
M3C2Params::stdDevCloud1SF
ccScalarField * stdDevCloud1SF
Definition: qM3C2Process.cpp:156
ccScalarField::setSymmetricalScale
void setSymmetricalScale(bool state)
Sets whether the color scale should be symmetrical or not.
Definition: ecvScalarField.cpp:123
qM3C2Dialog::m_cloud2
ccPointCloud * m_cloud2
Definition: qM3C2Dialog.h:117
ecvMainAppInterface::ERR_CONSOLE_MESSAGE
@ ERR_CONSOLE_MESSAGE
Definition: ecvMainAppInterface.h:119
qM3C2Dialog::qM3C2Dialog
qM3C2Dialog(ccPointCloud *cloud1, ccPointCloud *cloud2, ecvMainAppInterface *app)
Default constructor.
Definition: qM3C2Dialog.cpp:65
Ui
Definition: sfEditDlg.h:16
ccHObject::find
ccHObject * find(unsigned uniqueID)
Finds an entity in this object hierarchy.
Definition: ecvHObject.cpp:594
std::swap
void swap(cloudViewer::core::SmallVectorImpl< T > &LHS, cloudViewer::core::SmallVectorImpl< T > &RHS)
Implement std::swap in terms of SmallVector swap.
Definition: SmallVector.h:1370
qM3C2Normals::MakeNormalsHorizontal
static void MakeNormalsHorizontal(NormsIndexesTableType &normsCodes)
Makes all normals horizontal.
Definition: qM3C2Tools.cpp:429
cloudViewer::ReferenceCloud::setPointIndex
virtual void setPointIndex(unsigned localIndex, unsigned globalIndex)
Sets global index for a given element.
Definition: ReferenceCloud.cpp:127
M3C2Params::usePrecisionMaps
bool usePrecisionMaps
Definition: qM3C2Process.cpp:167
cloudViewer::DistanceComputationTools::computePoint2PlaneDistance
static ScalarType computePoint2PlaneDistance(const CCVector3 *P, const PointCoordinateType *planeEquation)
Computes the (signed) distance between a point and a plane.
Definition: DistanceComputationTools.cpp:2858
CCShareable::link
virtual void link()
Increase counter.
Definition: CVShareable.cpp:33
ComputePMUncertainty
static double ComputePMUncertainty(cloudViewer::DgmOctree::NeighboursSet &set, const CCVector3 &N, const PrecisionMaps &PM)
Definition: qM3C2Process.cpp:73
ccArray::isAllocated
bool isAllocated() const
Returns whether some memory has been allocated or not.
Definition: ecvArray.h:67
ecvFileUtils.h
CCShareable::release
virtual void release()
Decrease counter and deletes object when 0.
Definition: CVShareable.cpp:35
qM3C2Dialog::setClouds
void setClouds(ccPointCloud *cloud1, ccPointCloud *cloud2)
Sets clouds.
Definition: qM3C2Dialog.cpp:208
M3C2Params::densityCloud1SF
ccScalarField * densityCloud1SF
Definition: qM3C2Process.cpp:160
STD_DEV_CLOUD1_SF_NAME
static const char STD_DEV_CLOUD1_SF_NAME[]
Definition: qM3C2Process.cpp:43
M3C2Params::cloud1PM
PrecisionMaps cloud1PM
Definition: qM3C2Process.cpp:166
ecvProgressDialog
Graphical progress indicator (thread-safe)
Definition: ecvProgressDialog.h:27
M3C2Params::nProgress
cloudViewer::NormalizedProgress * nProgress
Definition: qM3C2Process.cpp:170
CompressedNormType
unsigned int CompressedNormType
Compressed normals type.
Definition: ecvBasicTypes.h:16
cloudViewer::Neighbourhood
Definition: Neighbourhood.h:25
qM3C2Tools::GuessedParams::preferredDimension
int preferredDimension
Definition: qM3C2Tools.h:79
ccPointCloud::hasNormals
bool hasNormals() const override
Returns whether normals are enabled or not.
Definition: ecvPointCloud.cpp:1693
Jacobi::GetMinEigenValueAndVector
static bool GetMinEigenValueAndVector(const SquareMatrix &eigenVectors, const EigenValues &eigenValues, Scalar &minEigenValue, Scalar minEigenVector[])
Returns the smallest eigenvalue and its associated eigenvector.
Definition: Jacobi.h:410
ecvScalarField.h
ecvProgressDialog::setMethodTitle
virtual void setMethodTitle(const char *methodTitle) override
Notifies the algorithm title.
Definition: ecvProgressDialog.h:49
ProfileImportDlg::getFilename
QString getFilename() const
Returns input filename (on completion)
Definition: profileImportDlg.cpp:49
ecvProgressDialog.h
M3C2Params::m3c2DistSF
ccScalarField * m3c2DistSF
Definition: qM3C2Process.cpp:153
qM3C2Dialog::loadParamsFromPersistentSettings
void loadParamsFromPersistentSettings()
Loads parameters from persistent settings.
Definition: qM3C2Dialog.cpp:407
cloudViewer::DgmOctree
The octree structure used throughout the library.
Definition: DgmOctree.h:39
DENSITY_CLOUD2_SF_NAME
static const char DENSITY_CLOUD2_SF_NAME[]
Definition: qM3C2Process.cpp:46
M3C2Params::distUncertaintySF
ccScalarField * distUncertaintySF
Definition: qM3C2Process.cpp:154
qM3C2Dialog::getMaxThreadCount
int getMaxThreadCount() const
Returns the max number of threads to use.
Definition: qM3C2Dialog.cpp:396
qM3C2Dialog::m_corePointsCloud
ccPointCloud * m_corePointsCloud
Definition: qM3C2Dialog.h:118
ecvAdvancedTypes.h
ProfileImportDlg::browseFile
void browseFile()
Called when the 'browse' tool button is pressed.
Definition: profileImportDlg.cpp:28
cloudViewer::DgmOctree::CylindricalNeighbourhood::onlyPositiveDir
bool onlyPositiveDir
Definition: DgmOctree.h:673
cloudViewer::utility::floor
MiniVec< float, N > floor(const MiniVec< float, N > &a)
Definition: MiniVec.h:75
ccDrawableObject::showSF
virtual void showSF(bool state)
Sets active scalarfield visibility.
Definition: ecvDrawableObject.h:108
ccNormalVectors::UpdateNormalOrientations
static bool UpdateNormalOrientations(ccGenericPointCloud *theCloud, NormsIndexesTableType &theNormsCodes, Orientation preferredOrientation)
Updates normals orientation based on a preferred orientation.
Definition: ecvNormalVectors.cpp:107
ccDrawableObject::setVisible
virtual void setVisible(bool state)
Sets entity visibility.
Definition: ecvDrawableObject.h:40
cloudViewer::DgmOctree::CylindricalNeighbourhood::dir
CCVector3 dir
Cylinder axis (direction)
Definition: DgmOctree.h:662
cloudViewer::GenericProgressCallback::textCanBeEdited
virtual bool textCanBeEdited() const
Returns whether the dialog title and info can be updated or not.
Definition: GenericProgressCallback.h:70
M3C2Params::keepOriginalCloud
bool keepOriginalCloud
Definition: qM3C2Process.cpp:144
Tuple3Tpl::z
Type z
Definition: CVGeom.h:137
ccArray::getValue
Type & getValue(size_t index)
Definition: ecvArray.h:100
cloudViewer::ReferenceCloud::resize
virtual bool resize(unsigned n)
Presets the size of the vector used to store point references.
Definition: ReferenceCloud.cpp:64
CommandM3C2
Definition: qM3C2Commands.h:18
M3C2Params::cloud2PM
PrecisionMaps cloud2PM
Definition: qM3C2Process.cpp:166
ccNormalVectors::Orientation
Orientation
'Default' orientations
Definition: ecvNormalVectors.h:70
ComputeCorePointNormal
void ComputeCorePointNormal(unsigned index)
Definition: qM3C2Tools.cpp:52
cloudViewer::Neighbourhood::getLSPlane
const PointCoordinateType * getLSPlane()
Returns best interpolating plane equation (Least-square)
Definition: Neighbourhood.cpp:69
qM3C2Dialog::getMinPointsForStats
unsigned getMinPointsForStats(unsigned defaultValue=5) const
Definition: qM3C2Dialog.cpp:400
ccPointCloud::resize
bool resize(unsigned numberOfPoints) override
Resizes all the active features arrays.
Definition: ecvPointCloud.cpp:1476
cloudViewer::Neighbourhood::computeCovarianceMatrix
cloudViewer::SquareMatrixd computeCovarianceMatrix()
Computes the covariance matrix.
Definition: Neighbourhood.cpp:144
cloudViewer::DgmOctree::ProgressiveCylindricalNeighbourhood
Definition: DgmOctree.h:699
ccPointCloud::setPointNormalIndex
void setPointNormalIndex(size_t pointIndex, CompressedNormType norm)
Sets a particular point compressed normal.
Definition: ecvPointCloud.cpp:1671
ccPointCloud::hasScalarFields
bool hasScalarFields() const override
Returns whether one or more scalar fields are instantiated.
Definition: ecvPointCloud.cpp:1697
orientationCloud
cloudViewer::GenericIndexedCloud * orientationCloud
Definition: qM3C2Tools.cpp:301
cloudViewer::ReferenceCloud::clear
virtual void clear(bool releaseMemory=false)
Clears the cloud.
Definition: ReferenceCloud.cpp:26
ecvMainAppInterface::addToDB
virtual void addToDB(ccHObject *obj, bool updateZoom=false, bool autoExpandDBTree=true, bool checkDimensions=false, bool autoRedraw=true)=0
ccCommandLineInterface
Command line interface.
Definition: ecvCommandLineInterface.h:112
qM3C2Dialog::saveParamsToFile
void saveParamsToFile()
Definition: qM3C2Dialog.cpp:673
ecvHObjectCaster.h
Vector3Tpl::dot
Type dot(const Vector3Tpl &v) const
Dot product.
Definition: CVGeom.h:408
processCanceled
bool processCanceled
Definition: qM3C2Tools.cpp:48
qM3C2Tools::GuessedParams
M3C2 parameters that can be guessed automatically by 'probing'.
Definition: qM3C2Tools.h:78
qM3C2Dialog::loadParamsFrom
void loadParamsFrom(const QSettings &settings)
Load parameters from QSettings.
Definition: qM3C2Dialog.cpp:412
ccObject::getUniqueID
virtual unsigned getUniqueID() const
Returns object unique ID.
Definition: ecvObject.h:86
cloudViewer::GenericProgressCallback::start
virtual void start()=0
M3C2Params::cloud1Octree
ccOctree::Shared cloud1Octree
Definition: qM3C2Process.cpp:147
cloudViewer::DgmOctree::NeighboursSet
std::vector< PointDescriptor > NeighboursSet
A set of neighbours.
Definition: DgmOctree.h:133
qM3C2Dialog::projDestIndexChanged
void projDestIndexChanged(int)
Definition: qM3C2Dialog.cpp:386
Jacobi.h
cloudViewer::PointCloudTpl::getScalarFieldName
const char * getScalarFieldName(int index) const
Returns the name of a specific scalar field.
Definition: PointCloudTpl.h:365
count
int count
Definition: FileIOFactory.cpp:132
s_joints
static double s_joints
Definition: profileImportDlg.cpp:16
qM3C2Dialog::keepOriginalCloud
bool keepOriginalCloud() const
Definition: qM3C2Dialog.cpp:391
CVLog::Warning
static bool Warning(const char *format,...)
Prints out a formatted warning message in console.
Definition: CVLog.cpp:133
cloudViewer::ReferenceCloud
A very simple point cloud (no point duplication)
Definition: ReferenceCloud.h:29
nProgress
cloudViewer::NormalizedProgress * nProgress
Definition: qM3C2Tools.cpp:47
ecvProgressDialog::setInfo
virtual void setInfo(const char *infoStr) override
Notifies some information about the ongoing process.
Definition: ecvProgressDialog.h:52
OrientPointNormalWithCloud
static void OrientPointNormalWithCloud(unsigned index)
Definition: qM3C2Tools.cpp:308
PrecisionMaps
Definition: qM3C2Process.cpp:62
qM3C2Process::Compute
static bool Compute(const qM3C2Dialog &dlg, QString &errorMessage, ccPointCloud *&outputCloud, bool allowDialogs, QWidget *parentWidget=nullptr, ecvMainAppInterface *app=nullptr)
Definition: qM3C2Process.cpp:428
cloudViewer::DgmOctree::PointDescriptor::distComp
static bool distComp(const PointDescriptor &a, const PointDescriptor &b)
Comparison operator.
Definition: DgmOctree.h:126
cloudViewer::DgmOctree::ProgressiveCylindricalNeighbourhood::currentHalfLength
PointCoordinateType currentHalfLength
Current search depth.
Definition: DgmOctree.h:701
ccDrawableObject::isVisible
virtual bool isVisible() const
Returns whether entity is visible or not.
Definition: ecvDrawableObject.h:38
SCALAR_ZERO
static ScalarType SCALAR_ZERO
Definition: qM3C2Process.cpp:56
sourceCloud
ccGenericPointCloud * sourceCloud
Definition: qCanupoTools.cpp:36
NAN_VALUE
constexpr ScalarType NAN_VALUE
NaN as a ScalarType value.
Definition: CVConst.h:76
ComputeM3C2DistForPoint
void ComputeM3C2DistForPoint(unsigned index)
Definition: qM3C2Process.cpp:175
ccHObject
Hierarchical CLOUDVIEWER Object.
Definition: ecvHObject.h:25
M3C2Params::processCanceled
bool processCanceled
Definition: qM3C2Process.cpp:171
Tuple3Tpl::y
Type y
Definition: CVGeom.h:137
ccObject::getName
virtual QString getName() const
Returns object name.
Definition: ecvObject.h:72
ccScalarField::setMinDisplayed
void setMinDisplayed(ScalarType val)
Sets the minimum displayed value.
Definition: ecvScalarField.cpp:256
M3C2Params::updateNormal
bool updateNormal
Definition: qM3C2Process.cpp:133
qM3C2Dialog::setCloud1Visibility
void setCloud1Visibility(bool)
Definition: qM3C2Dialog.cpp:323
PrecisionMaps::valid
bool valid() const
Definition: qM3C2Process.cpp:64
DisclaimerDialog
Dialog for displaying the BRGM disclaimer.
Definition: disclaimerDialog.h:19
cloudViewer::ScalarField::setValue
void setValue(std::size_t index, ScalarType value)
Definition: ScalarField.h:96
s_horizontal
static double s_horizontal
Definition: profileImportDlg.cpp:18
cloudViewer::DgmOctree::CylindricalNeighbourhood::neighbours
NeighboursSet neighbours
Neighbour points falling inside the cylinder.
Definition: DgmOctree.h:668
ecvMainAppInterface::updateUI
virtual void updateUI()=0
PrecisionMaps::sZ
cloudViewer::ScalarField * sZ
Definition: qM3C2Process.cpp:67
qM3C2Normals::MULTI_SCALE_MODE
@ MULTI_SCALE_MODE
Definition: qM3C2Tools.h:30
Vector3Tpl::norm2
Type norm2() const
Returns vector square norm.
Definition: CVGeom.h:417
ccGenericPointCloud::getOwnBB
ccBBox getOwnBB(bool withGLFeatures=false) override
Returns the entity's own bounding-box.
Definition: ecvGenericPointCloud.cpp:139
ccPointCloud::setPointNormal
void setPointNormal(size_t pointIndex, const CCVector3 &N)
Sets a particular point normal (shortcut)
Definition: ecvPointCloud.cpp:1681
ecvMainAppInterface::refreshAll
virtual void refreshAll(bool only2D=false, bool forceRedraw=true)=0
Redraws all GL windows that have the 'refresh' flag on.
qM3C2Dialog
M3C2 plugin's main dialog.
Definition: qM3C2Dialog.h:22
ccNormalVectors::PLUS_X
@ PLUS_X
N.x always positive.
Definition: ecvNormalVectors.h:71
DisclaimerDialog::~DisclaimerDialog
~DisclaimerDialog()
Definition: qM3C2DisclaimerDialog.cpp:25
qM3C2Dialog::getExportOption
ExportOptions getExportOption() const
Returns selected export option.
Definition: qM3C2Dialog.cpp:370
STD_DEV_CLOUD2_SF_NAME
static const char STD_DEV_CLOUD2_SF_NAME[]
Definition: qM3C2Process.cpp:44
cloudViewer::NormalizedProgress
Definition: GenericProgressCallback.h:78
PointCoordinateType
float PointCoordinateType
Type of the coordinates of a (N-D) point.
Definition: CVTypes.h:16
ccCommandLineInterface::registerCommand
virtual bool registerCommand(Command::Shared command)=0
Registers a new command.
M3C2Params::exportNormal
bool exportNormal
Definition: qM3C2Process.cpp:134
ccStdPluginInterface
Standard ECV plugin interface.
Definition: ecvStdPluginInterface.h:31
Tuple3Tpl::u
Type u[3]
Definition: CVGeom.h:139
cloudViewer::DgmOctree::build
int build(GenericProgressCallback *progressCb=nullptr)
Builds the structure.
Definition: DgmOctree.cpp:196
M3C2Params::level2
unsigned char level2
Definition: qM3C2Process.cpp:150
DisclaimerDialog::DisclaimerDialog
DisclaimerDialog(QWidget *parent=0)
Default constructor.
Definition: disclaimerDialog.h:22
qM3C2Dialog::saveParamsTo
void saveParamsTo(QSettings &settings)
Saves parameters to QSettings.
Definition: qM3C2Dialog.cpp:589
M3C2Params::useMedian
bool useMedian
Definition: qM3C2Process.cpp:135
M3C2Params::projectionRadius
PointCoordinateType projectionRadius
Definition: qM3C2Process.cpp:131
Median
static double Median(const cloudViewer::DgmOctree::NeighboursSet &set, size_t begin=0, size_t count=0)
Computes the median distance of a (sorted) neighbors set.
Definition: qM3C2Tools.cpp:450
cloudViewer::DgmOctree::CylindricalNeighbourhood::maxHalfLength
PointCoordinateType maxHalfLength
Cylinder (half) length.
Definition: DgmOctree.h:666
DistanceComputationTools.h
qM3C2Dialog::saveParamsToPersistentSettings
void saveParamsToPersistentSettings()
Saves parameters to persistent settings.
Definition: qM3C2Dialog.cpp:584
s_corePointsNormalsParams
static struct @94 s_corePointsNormalsParams
M3C2Params
Definition: qM3C2Process.cpp:124
M3C2Params::exportOption
qM3C2Dialog::ExportOptions exportOption
Definition: qM3C2Process.cpp:143
M3C2Params::registrationRms
double registrationRms
Definition: qM3C2Process.cpp:140
normalScale
ccScalarField * normalScale
Definition: qM3C2Tools.cpp:44
M3C2Params::stdDevCloud2SF
ccScalarField * stdDevCloud2SF
Definition: qM3C2Process.cpp:158
ccObject::setEnabled
virtual void setEnabled(bool state)
Sets the "enabled" property.
Definition: ecvObject.h:102
Vector3Tpl< PointCoordinateType >::fromArray
static Vector3Tpl fromArray(const int a[3])
Constructor from an int array.
Definition: CVGeom.h:268
qM3C2Normals::UpdateNormalOrientationsWithCloud
static bool UpdateNormalOrientationsWithCloud(cloudViewer::GenericIndexedCloud *normCloud, NormsIndexesTableType &normsCodes, cloudViewer::GenericIndexedCloud *orientationCloud, int maxThreadCount=0, cloudViewer::GenericProgressCallback *progressCb=nullptr)
Definition: qM3C2Tools.cpp:346
ecvOctree.h
radii
std::vector< PointCoordinateType > radii
Definition: qM3C2Tools.cpp:42
qM3C2Dialog::loadParamsFromFile
void loadParamsFromFile()
Definition: qM3C2Dialog.cpp:637
ecvPointCloud.h
cloudViewer::DgmOctree::findBestLevelForAGivenNeighbourhoodSizeExtraction
unsigned char findBestLevelForAGivenNeighbourhoodSizeExtraction(PointCoordinateType radius) const
Definition: DgmOctree.cpp:2664
cloudViewer::ScalarField::currentSize
unsigned currentSize() const
Definition: ScalarField.h:100
qM3C2Dialog::PROJECT_ON_CLOUD2
@ PROJECT_ON_CLOUD2
Definition: qM3C2Dialog.h:59
normsCodes
NormsIndexesTableType * normsCodes
Definition: qM3C2Tools.cpp:299
cloudViewer::utility::ceil
MiniVec< float, N > ceil(const MiniVec< float, N > &a)
Definition: MiniVec.h:89
qM3C2Tools::GuessedParams::normScale
double normScale
Definition: qM3C2Tools.h:80
qM3C2Dialog::guessParamsSlow
void guessParamsSlow()
Definition: qM3C2Dialog.h:89
ccScalarField
A scalar field associated to display-related parameters.
Definition: ecvScalarField.h:19
M3C2Params::outputCloud
ccPointCloud * outputCloud
Definition: qM3C2Process.cpp:126
M3C2Params::densityCloud2SF
ccScalarField * densityCloud2SF
Definition: qM3C2Process.cpp:162
ecvOctreeProxy.h
cloudViewer::CloudSamplingTools::resampleCloudSpatially
static ReferenceCloud * resampleCloudSpatially(GenericIndexedCloudPersist *cloud, PointCoordinateType minDistance, const SFModulationParams &modParams, DgmOctree *octree=nullptr, GenericProgressCallback *progressCb=nullptr)
Resamples a point cloud (process based on inter point distance)
Definition: CloudSamplingTools.cpp:256
name
std::string name
Definition: FileIOFactory.cpp:129
M3C2Params::progressiveSearch
bool progressiveSearch
Definition: qM3C2Process.cpp:137
M3C2Params::sigChangeSF
ccScalarField * sigChangeSF
Definition: qM3C2Process.cpp:155
SCALAR_ONE
static ScalarType SCALAR_ONE
Definition: qM3C2Process.cpp:57
Interquartile
double Interquartile(const cloudViewer::DgmOctree::NeighboursSet &set)
Computes the interquartile range of a (sorted) neighbors set.
Definition: qM3C2Tools.cpp:474
ccPointCloud::setNormsTable
void setNormsTable(NormsIndexesTableType *norms)
Sets the (compressed) normals table.
Definition: ecvPointCloud.cpp:1914