 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
34 typedef QSharedPointer<NeighborhoodFeature>
Shared;
114 else if (token ==
"PCA2")
116 else if (token ==
"PCA3")
118 else if (token ==
"SPHER")
120 else if (token ==
"LINEA")
122 else if (token ==
"PLANA")
124 else if (token ==
"DIP")
126 else if (token ==
"DIPDIR")
128 else if (token ==
"ROUGH")
130 else if (token ==
"NBPTS")
132 else if (token ==
"CURV")
134 else if (token ==
"ZRANGE")
136 else if (token ==
"ZMAX")
138 else if (token ==
"ZMIN")
140 else if (token ==
"ANISO")
142 else if (token ==
"FOM")
144 else if (token ==
"VERT")
168 SFCollector* generatedScalarFields =
nullptr)
override;
171 QString& error)
const override;
172 virtual QString
toString()
const override;
178 double& outputValue)
const;
@ PLANA
Definition: NeighborhoodFeature.h:43
QSharedPointer< Feature > Shared
Shared type.
Definition: FeaturesInterface.h:49
@ FOM
Definition: NeighborhoodFeature.h:53
@ Linearity
Definition: Neighbourhood.h:167
@ SPHER
Definition: NeighborhoodFeature.h:41
Map scalarFields
Definition: ScalarFieldCollector.h:61
bool computeValue(cloudViewer::DgmOctree::NeighboursSet &pointsInNeighbourhood, const CCVector3 &queryPoint, double &outputValue) const
Compute the feature value on a set of points.
Definition: NeighborhoodFeature.cpp:196
3DMASC classifier
Definition: ContextBasedFeature.h:30
QString cloud2Label
Definition: FeaturesInterface.h:233
virtual void computeMinAndMax()
Determines the min and max values.
Definition: ScalarField.h:123
virtual Type getType() const override
Returns the type (must be reimplemented by child struct)
Definition: NeighborhoodFeature.h:160
virtual QString toString() const override
Returns the formatted description.
Definition: NeighborhoodFeature.cpp:179
virtual Feature::Shared clone() const override
Clones this feature.
Definition: NeighborhoodFeature.h:161
Source source
Definition: FeaturesInterface.h:235
@ SurfaceVariation
Definition: Neighbourhood.h:170
@ PCA3
Definition: NeighborhoodFeature.h:40
@ Zmax
Definition: NeighborhoodFeature.h:50
@ ALWAYS_REMOVE
Definition: ScalarFieldCollector.h:44
@ DipDir
Definition: NeighborhoodFeature.h:45
ScalarType computeRoughness(const CCVector3 &P, const CCVector3 *roughnessUpDir=nullptr)
Definition: Neighbourhood.cpp:886
A simple scalar field (to be associated to a point cloud)
Definition: ScalarField.h:25
@ ROUGH
Definition: NeighborhoodFeature.h:46
static void ConvertNormalToDipAndDipDir(const CCVector3 &N, PointCoordinateType &dip_deg, PointCoordinateType &dipDir_deg)
Converts a normal vector to geological 'dip direction & dip' parameters.
Definition: ecvNormalVectors.cpp:848
@ ANISO
Definition: NeighborhoodFeature.h:52
Definition: GenericProgressCallback.h:20
NeighborhoodFeatureType
Definition: NeighborhoodFeature.h:36
@ PCA1
Definition: Neighbourhood.h:168
@ CAN_REMOVE
Definition: ScalarFieldCollector.h:44
Core points descriptor.
Definition: CorePoints.h:39
@ Verticality
Definition: Neighbourhood.h:172
ScalarType computeMomentOrder1(const CCVector3 &P)
Definition: Neighbourhood.cpp:760
@ Dip
Definition: NeighborhoodFeature.h:44
static NeighborhoodFeatureType FromUpperString(const QString &token)
Definition: NeighborhoodFeature.h:111
@ CURV
Definition: NeighborhoodFeature.h:48
static cloudViewer::ScalarField * PrepareSF(ccPointCloud *cloud, const char *resultSFName, SFCollector *generatedScalarFields, SFCollector::Behavior behavior)
Definition: FeaturesInterface.cpp:29
const char * getName() const
Returns scalar field name.
Definition: ScalarField.h:43
static QString ToString(NeighborhoodFeatureType type)
Definition: NeighborhoodFeature.h:59
@ PCA1
Definition: NeighborhoodFeature.h:38
ScalarType computeCurvature(const CCVector3 &P, CurvatureType cType)
Computes the curvature of a set of point (by fitting a 2.5D quadric)
Definition: Neighbourhood.cpp:906
@ Invalid
Definition: NeighborhoodFeature.h:37
virtual bool checkValidity(QString corePointRole, QString &error) const override
Checks the feature definition validity.
Definition: NeighborhoodFeature.cpp:17
Neighborhood-based feature.
Definition: NeighborhoodFeature.h:32
double scale
Scale (diameter)
Definition: FeaturesInterface.h:230
bool sf2WasAlreadyExisting
Definition: FeaturesInterface.h:241
QString name
Definition: FeaturesInterface.h:124
QSharedPointer< NeighborhoodFeature > Shared
Definition: NeighborhoodFeature.h:34
@ PCA2
Definition: NeighborhoodFeature.h:39
Definition: Neighbourhood.h:25
@ Zmin
Definition: NeighborhoodFeature.h:51
NeighborhoodFeatureType type
Neighborhood feature type.
Definition: NeighborhoodFeature.h:184
Stat stat
Definition: FeaturesInterface.h:237
Generic feature descriptor.
Definition: FeaturesInterface.h:46
static bool CheckSFExistence(ccPointCloud *cloud, const char *resultSFName)
Definition: FeaturesInterface.cpp:19
double computeFeature(GeomFeature feature)
Computes the given feature on a set of point.
Definition: Neighbourhood.cpp:796
Type
Feature type.
Definition: FeaturesInterface.h:56
@ ALWAYS_KEEP
Definition: ScalarFieldCollector.h:44
Type z
Definition: CVGeom.h:137
static NeighborhoodFeatureType FromString(const QString &token)
Definition: NeighborhoodFeature.h:108
static QString OpToString(Operation op)
Definition: FeaturesInterface.h:97
const CCVector3 * getLSPlaneNormal()
Returns best interpolating plane (Least-square) normal vector.
Definition: Neighbourhood.cpp:102
ccPointCloud * cloud1
Definition: FeaturesInterface.h:232
A kind of ReferenceCloud based on the DgmOctree::NeighboursSet structure.
Definition: DgmOctreeReferenceCloud.h:17
@ NBPTS
Definition: NeighborhoodFeature.h:47
constexpr PointCoordinateType PC_ONE
'1' as a PointCoordinateType value
Definition: CVConst.h:67
static ScalarType PerformMathOp(double s1, double s2, Operation op)
Performs a mathematical operation between two scalars.
Definition: FeaturesInterface.cpp:72
cloudViewer::ScalarField * sf2
Definition: NeighborhoodFeature.h:187
@ NO_OPERATION
Definition: FeaturesInterface.h:95
std::vector< PointDescriptor > NeighboursSet
A set of neighbours.
Definition: DgmOctree.h:133
virtual bool finish(const CorePoints &corePoints, QString &error) override
Finishes the feature preparation (update the scalar field, etc.)
Definition: NeighborhoodFeature.cpp:122
GeomFeature
Geometric feature computed from eigen values/vectors.
Definition: Neighbourhood.h:161
static bool Warning(const char *format,...)
Prints out a formatted warning message in console.
Definition: CVLog.cpp:133
SF collector.
Definition: ScalarFieldCollector.h:42
@ ZRANGE
Definition: NeighborhoodFeature.h:49
QString cloud1Label
Definition: FeaturesInterface.h:233
const CCVector3 * getGravityCenter()
Returns gravity center.
Definition: Neighbourhood.cpp:58
@ NO_STAT
Definition: FeaturesInterface.h:66
bool setBehavior(cloudViewer::ScalarField *sf, Behavior behavior)
Definition: ScalarFieldCollector.cpp:64
NeighborhoodFeature(NeighborhoodFeatureType p_type)
Default constructor.
Definition: NeighborhoodFeature.h:156
float PointCoordinateType
Type of the coordinates of a (N-D) point.
Definition: CVTypes.h:16
Operation op
Definition: FeaturesInterface.h:238
virtual bool checkValidity(QString corePointRole, QString &error) const
Checks the feature definition validity.
Definition: FeaturesInterface.h:179
@ Sphericity
Definition: Neighbourhood.h:171
bool sf1WasAlreadyExisting
Definition: FeaturesInterface.h:240
@ LINEA
Definition: NeighborhoodFeature.h:42
@ PCA2
Definition: Neighbourhood.h:169
ccPointCloud * cloud2
Definition: FeaturesInterface.h:232
@ Planarity
Definition: Neighbourhood.h:166
virtual bool prepare(const CorePoints &corePoints, QString &error, cloudViewer::GenericProgressCallback *progressCb=nullptr, SFCollector *generatedScalarFields=nullptr) override
Prepares the feature (compute the scalar field, etc.)
Definition: NeighborhoodFeature.cpp:49
@ VERT
Definition: NeighborhoodFeature.h:54
cloudViewer::ScalarField * sf1
Feature values.
Definition: NeighborhoodFeature.h:187