 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
22 std::vector<std::vector<ScalarType>> &outputScalars) {
23 outputScalars.resize(inputScalars.size());
25 for (
auto &scalars : inputScalars) {
26 outputScalars[index].resize(scalars.size());
28 scalars.begin(), scalars.end(), outputScalars[index].begin(),
29 [](
const size_t &s) { return static_cast<ScalarType>(s); });
51 QWidget *parent =
nullptr);
56 QWidget *parent =
nullptr);
66 const std::vector<std::vector<ScalarType>> &scalarsVector,
67 const std::string &
name =
"Scalars");
72 bool *exportDimensions =
nullptr);
bool isClosed() const
Returns whether the polyline is closed or not.
Definition: Polyline.h:26
virtual ccOctree::Shared computeOctree(cloudViewer::GenericProgressCallback *progressCb=nullptr, bool autoAddChild=true)
Computes the cloud octree.
Definition: ecvGenericPointCloud.cpp:124
constexpr Rgb white(MAX, MAX, MAX)
int addScalarField(const char *uniqueName) override
Creates a new scalar field and registers it.
Definition: ecvPointCloud.cpp:4210
void deleteScalarField(int index) override
Deletes a specific scalar field.
Definition: ecvPointCloud.cpp:3237
bool hasColors() const override
Returns whether colors are enabled or not.
Definition: ecvPointCloud.cpp:1689
bool setRGBColorByHeight(unsigned char heightDim, ccColorScale::Shared colorScale)
Assigns color to points proportionnaly to their 'height'.
Definition: ecvPointCloud.cpp:1996
bool sfRename(const ccHObject::Container &selectedEntities, QWidget *parent)
Definition: ecvEntityAction.cpp:1138
Dialog to input 2 values with custom labels.
Definition: ecvAskTwoDoubleValuesDlg.h:13
Definition: ecvRansacSegmentationDlg.h:18
Rgb FromQColor(QColor qColor)
Conversion from QColor.
Definition: ecvColorTypes.h:426
bool VoxelSampling(const ccHObject::Container &selectedEntities, ccHObject::Container &outEntities, QWidget *parent)
Definition: ecvEntityAction.cpp:2836
virtual void toggleShowName_recursive()
Definition: ecvHObject.h:559
ccPointCloudInterpolator::Parameters::Algo getInterpolationAlgorithm() const
Definition: ecvInterpolationDlg.cpp:54
virtual void toggleColors_recursive()
Definition: ecvHObject.h:547
GradientType
Gradient types.
Definition: ecvColorGradientDlg.h:24
bool sfBilateralFilter(const ccHObject::Container &selectedEntities, QWidget *parent)
Definition: ecvEntityAction.cpp:1013
bool hasTriNormals() const override
Returns whether the mesh has per-triangle normals.
Definition: ecvMesh.cpp:3589
void showNormals(bool state) override
Sets normals visibility.
Definition: ecvGenericMesh.cpp:44
bool useSensorsForOrientation() const
Returns whether scan grids should be used for normals computation.
Definition: ecvNormalComputationDlg.cpp:144
NORMAL_CONVERSION_DEST
Normals conversion destinations.
Definition: ecvEntityAction.h:93
bool convertNormalsTo(const ccHObject::Container &selectedEntities, NORMAL_CONVERSION_DEST dest)
Converts a cloud's normals.
Definition: ecvEntityAction.cpp:1951
double sigma
Definition: ecvPointCloudInterpolator.h:33
bool isKindOf(CV_CLASS_ENUM type) const
Definition: ecvObject.h:128
virtual void toggleNormals_recursive()
Definition: ecvHObject.h:553
normal_z rgb
Definition: my_point_types.h:168
virtual void showNormals(bool state)
Sets normals visibility.
Definition: ecvDrawableObject.h:93
bool setParameters(ScalarType a, ScalarType b, ScalarType valueShift=0)
Sets the distribution parameters.
Definition: WeibullDistribution.cpp:112
@ UNDEFINED
Undefined (no orientation is required)
Definition: ecvNormalVectors.h:89
bool orientNormalsMST(const ccHObject::Container &selectedEntities, QWidget *parent)
Definition: ecvEntityAction.cpp:1899
bool statisticalTest(const ccHObject::Container &selectedEntities, QWidget *parent)
Definition: ecvEntityAction.cpp:2341
void invalidateBoundingBox() override
Invalidates bounding box.
Definition: ecvPointCloud.cpp:1706
Definition: ecvEntityAction.cpp:67
bool getActiveAbsoluteCenter(CCVector3 &vec) const
Gets currently active absolute position.
Definition: ecvSensor.cpp:102
bool getParameters(ScalarType &a, ScalarType &b) const
Returns the distribution parameters.
Definition: WeibullDistribution.cpp:97
void computeMinAndMax() override
Determines the min and max values.
Definition: ecvScalarField.cpp:145
bool interpolateColors(const ccHObject::Container &selectedEntities, QWidget *parent)
Interpolate colors from on entity and transfer them to another one.
Definition: ecvEntityAction.cpp:292
@ RADIUS
Definition: ecvPointCloudInterpolator.h:26
bool RansacSegmentation(const ccHObject::Container &selectedEntities, ccHObject::Container &outEntities, QWidget *parent)
Definition: ecvEntityAction.cpp:2732
Type x
Definition: CVGeom.h:137
CV_LOCAL_MODEL_TYPES
Definition: CVConst.h:121
A generic class to handle a probability distribution.
Definition: GenericDistribution.h:25
ccGLMatrixTpl< T > inverse() const
Returns inverse transformation.
Definition: ecvGLMatrixTpl.h:1325
virtual unsigned size() const =0
Returns the number of points.
@ DEFAULT
Definition: ecvComputeOctreeDlg.h:28
Definition: ecvDrawContext.h:98
virtual void computeMinAndMax()
Determines the min and max values.
Definition: ScalarField.h:123
int getSelectedIndex()
Returns the combo box current index (after completion)
Definition: ecvPickOneElementDlg.cpp:42
Dialog to choose which dimension(s) (X, Y or Z) should be exported as SF(s)
Definition: ecvExportCoordToSFDlg.h:13
bool hasSensor() const
Returns whether the mesh as an associated sensor or not.
Definition: ecvPointCloud.cpp:5579
double getBandingFrequency() const
Returns the frequency of the gradient ('Banding' mode)
Definition: ecvColorGradientDlg.cpp:83
bool rgbGaussianFilter(const ccHObject::Container &selectedEntities, ccPointCloud::RgbFilterOptions filterParams, QWidget *parent)
Definition: ecvEntityAction.cpp:610
ccHObject * getParent() const
Returns parent object.
Definition: ecvHObject.h:245
double getMinGridAngle_deg() const
Returns the min angle for grid triangles.
Definition: ecvNormalComputationDlg.cpp:128
Color scale element: one value + one color.
Definition: ecvColorScale.h:22
virtual void setColor(const ecvColor::Rgb &col)
Sets primitive color (shortcut)
Definition: ecvGenericPrimitive.cpp:30
double normal[3]
Definition: FileIOFactory.cpp:53
static ccPolyline * ToPolyline(ccHObject *obj)
Converts current object to ccPolyline (if possible)
Definition: ecvHObjectCaster.cpp:141
ScalarType & getValue(std::size_t index)
Definition: ScalarField.h:92
@ Banding
Definition: ecvColorGradientDlg.h:24
ScalarType getValueShift() const
Returns the distribution value shift.
Definition: WeibullDistribution.h:65
static ccPointCloud * ToPointCloud(ccHObject *obj, bool *isLockedVertices=nullptr)
Converts current object to 'equivalent' ccPointCloud.
Definition: ecvHObjectCaster.cpp:54
bool rgbToGreyScale(const ccHObject::Container &selectedEntities)
Definition: ecvEntityAction.cpp:185
QSharedPointer< ccColorScale > Shared
Shared pointer type.
Definition: ecvColorScale.h:74
@ MESH
Definition: CVTypes.h:105
void getSelectedIndexes(std::vector< int > &indexes) const
Returns selected indexes (multi-selection mode)
Definition: ecvItemSelectionDlg.cpp:58
void setItems(const QStringList &items, int defaultSelectedIndex=0)
Sets the list of items.
Definition: ecvItemSelectionDlg.cpp:36
Double version of ccGLMatrixTpl.
Definition: ecvGLMatrix.h:56
bool enhanceRGBWithIntensitySF(int sfIdx, bool useCustomIntensityRange=false, double minI=0.0, double maxI=1.0)
Definition: ecvPointCloud.cpp:5684
virtual QMainWindow * getMainWindow()=0
Returns main window.
void setRedrawFlagRecursive(bool redraw=false)
Definition: ecvHObject.cpp:772
#define CC_DEFAULT_ID_SF_NAME
Definition: ecvCommon.h:41
virtual void setName(const QString &name)
Sets object name.
Definition: ecvObject.h:75
bool sfAddIdField(const ccHObject::Container &selectedEntities)
Definition: ecvEntityAction.cpp:1164
CV_LOCAL_MODEL_TYPES getLocalModel() const
Returns the local model chosen for normal computation.
Definition: ecvNormalComputationDlg.cpp:79
static ccColorScale::Shared GetDefaultScale(DEFAULT_SCALES scale=BGYR)
Returns a pre-defined color scale (static shortcut)
Definition: ecvColorScalesManager.h:61
bool isA(CV_CLASS_ENUM type) const
Definition: ecvObject.h:131
Bounding box structure.
Definition: ecvBBox.h:25
bool exportZ() const
Returns whether Z dimension should be exported.
Definition: ecvExportCoordToSFDlg.cpp:19
unsigned getNumberOfScalarFields() const
Returns the number of associated (and active) scalar fields.
Definition: PointCloudTpl.h:345
static ccFacet * ToFacet(ccHObject *obj)
Converts current object to ccFacet (if possible)
Definition: ecvHObjectCaster.cpp:151
void setCurrentOutScalarField(int index)
Sets the OUTPUT scalar field.
Definition: PointCloudTpl.h:421
bool setParameters(ScalarType _mu, ScalarType _sigma2)
Sets the distribution parameters.
Definition: NormalDistribution.cpp:43
static bool Print(const char *format,...)
Prints out a formatted message in console.
Definition: CVLog.cpp:113
bool sfFromColor(const ccHObject::Container &selectedEntities, QWidget *parent)
Definition: ecvEntityAction.cpp:1426
@ POINT_CLOUD
Definition: CVTypes.h:104
virtual void start() override
Definition: ecvProgressDialog.cpp:70
void setColorScale(ccColorScale::Shared scale)
Sets gradient color scale.
Definition: ecvHistogramWindow.h:90
static PointCoordinateType GuessNaiveRadius(ccGenericPointCloud *cloud)
Definition: ecvNormalVectors.cpp:223
@ FACET
Definition: CVTypes.h:109
void setPreferredOrientation(ccNormalVectors::Orientation orientation)
Sets the preferred orientation.
Definition: ecvNormalComputationDlg.cpp:114
bool changeColorLevels(const ccHObject::Container &selectedEntities, QWidget *parent)
Definition: ecvEntityAction.cpp:264
bool useMSTOrientation() const
Definition: ecvNormalComputationDlg.cpp:152
Histogram widget.
Definition: ecvHistogramWindow.h:28
unsigned size() const override
Definition: PointCloudTpl.h:38
Dialog to select one or multiple items.
Definition: ecvItemSelectionDlg.h:16
bool orientNormalsWithMST(unsigned kNN=6, ecvProgressDialog *pDlg=nullptr)
Orient the normals with a Minimum Spanning Tree.
Definition: ecvPointCloud.cpp:5568
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Definition: ecvPointCloud.h:146
bool colorize(float r, float g, float b)
Multiplies all color components of all points by coefficients.
Definition: ecvPointCloud.cpp:1926
bool exportCoordToSF(const ccHObject::Container &selectedEntities, QWidget *parent)
Definition: ecvEntityAction.cpp:1304
bool resizeTheRGBTable(bool fillWithWhite=false)
Resizes the RGB colors array.
Definition: ecvPointCloud.cpp:1226
virtual void toggleVisibility_recursive()
Definition: ecvHObject.h:545
void setSaturationStart(ScalarType val)
Sets the value at which to start color gradient.
Definition: ecvScalarField.cpp:266
A simple scalar field (to be associated to a point cloud)
Definition: ScalarField.h:25
std::shared_ptr< ccPointCloud > VoxelDownSample(double voxel_size)
Function to downsample input ccPointCloud into output ccPointCloud with a voxel.
Definition: PointCloudFactory.cpp:530
@ MIN_CELL_SIZE
Definition: ecvComputeOctreeDlg.h:28
bool processScalarField(MESH_SCALAR_FIELD_PROCESS process)
Definition: ecvMesh.cpp:392
CLEAR_PROPERTY
Definition: ecvEntityAction.h:103
bool sfConvertToRandomRGB(const ccHObject::Container &selectedEntities, QWidget *parent)
Definition: ecvEntityAction.cpp:1063
Algo algo
Definition: ecvPointCloudInterpolator.h:30
static ccPointCloud * From(const cloudViewer::GenericIndexedCloud *cloud, const ccGenericPointCloud *sourceCloud=nullptr)
Creates a new point cloud object from a GenericIndexedCloud.
Definition: ecvPointCloud.cpp:114
bool orientNormals() const
Returns whether normals should be oriented or not.
Definition: ecvNormalComputationDlg.cpp:136
bool orientNormalsWithFM(unsigned char level, ecvProgressDialog *pDlg=nullptr)
Orient normals with Fast Marching.
Definition: ecvPointCloud.cpp:5574
bool getGStatus()
Returns if to export G channel as SF.
Definition: ecvScalarFieldFromColorDlg.cpp:29
bool exportCoordToSF(bool exportDims[3])
Exports the specified coordinate dimension(s) to scalar field(s)
Definition: ecvPointCloud.cpp:5876
int getScalarFieldIndexByName(const char *name) const
Returns the index of a scalar field represented by its name.
Definition: PointCloudTpl.h:375
#define CC_DEFAULT_DIP_DIR_SF_NAME
Definition: ecvCommon.h:39
double getDiagNormd() const
Returns diagonal length (double precision)
Definition: BoundingBox.h:175
static const int MAX_OCTREE_LEVEL
Max octree subdivision level.
Definition: DgmOctree.h:67
QSharedPointer< ccOctree > Shared
Shared pointer.
Definition: ecvOctree.h:32
bool importToSF(const ccHObject::Container &selectedEntities, const std::vector< std::vector< ScalarType >> &scalarsVector, const std::string &name)
Definition: ecvEntityAction.cpp:1195
bool hasMaterials() const override
Definition: ecvMesh.cpp:3713
std::vector< ccHObject * > Container
Standard instances container (for children, etc.)
Definition: ecvHObject.h:337
ccGenericPointCloud * getAssociatedCloud() const override
Returns the vertices cloud.
Definition: ecvMesh.h:143
Vector3Tpl< PointCoordinateType > CCVector3
Default 3D Vector.
Definition: CVGeom.h:798
static ccMesh * ToMesh(ccHObject *obj)
Converts current object to ccMesh (if possible)
Definition: ecvHObjectCaster.cpp:129
double getMinCellSize() const
Returns cell size at max level.
Definition: ecvComputeOctreeDlg.cpp:60
virtual bool hasScalarFields() const
Returns whether one or more scalar fields are instantiated.
Definition: ecvDrawableObject.h:105
virtual bool hasNormals() const
Returns whether normals are enabled or not.
Definition: ecvDrawableObject.h:89
@ SENSOR
Definition: CVTypes.h:116
void setCurrentDisplayedScalarField(int index)
Sets the currently displayed scalar field.
Definition: ecvPointCloud.cpp:3227
ScalarField * getScalarField(int index) const
Returns a pointer to a specific scalar field.
Definition: PointCloudTpl.h:354
bool setRGBColorWithCurrentScalarField(bool mixWithExistingColor=false)
Sets RGB colors with current scalar field (values & parameters)
Definition: ecvPointCloud.cpp:3262
Backup "context" for an object.
Definition: ecvMainAppInterface.h:80
bool interpolateSFs(const ccHObject::Container &selectedEntities, ecvMainAppInterface *app)
Interpolate scalar fields from on entity and transfer them to another one.
Definition: ecvEntityAction.cpp:352
RGB filter options.
Definition: ecvPointCloud.h:793
core::Tensor result
Definition: VtkUtils.cpp:76
Color scales manager/container.
Definition: ecvColorScalesManager.h:17
virtual ccOctree::Shared getOctree() const
Returns the associated octree (if any)
Definition: ecvGenericPointCloud.cpp:97
Dialog to change the color levels.
Definition: ecvColorLevelsDlg.h:19
constexpr QRegularExpression::PatternOption CaseInsensitive
Definition: QtCompat.h:174
static bool Error(const char *format,...)
Display an error dialog with formatted message.
Definition: CVLog.cpp:143
bool sfArithmetic(const ccHObject::Container &selectedEntities, QWidget *parent)
Definition: ecvEntityAction.cpp:1396
void setColorScheme(HISTOGRAM_COLOR_SCHEME scheme)
Sets how the gradient bars should be colored.
Definition: ecvHistogramWindow.h:81
void setTitle(const QString &str)
Sets title.
Definition: ecvHistogramWindow.cpp:106
Dialog for normal computation.
Definition: ecvNormalComputationDlg.h:18
virtual void showColors(bool state)
Sets colors visibility.
Definition: ecvDrawableObject.h:84
bool processMeshSF(const ccHObject::Container &selectedEntities, ccMesh::MESH_SCALAR_FIELD_PROCESS process, QWidget *parent)
Definition: ecvEntityAction.cpp:1532
The Weibull statistical parametric distribution.
Definition: WeibullDistribution.h:18
bool DBScanCluster(const ccHObject::Container &selectedEntities, QWidget *parent)
Definition: ecvEntityAction.cpp:2675
ccNormalVectors::Orientation getPreferredOrientation() const
Returns the preferred orientation (if any)
Definition: ecvNormalComputationDlg.cpp:164
void refresh()
Updates the display.
Definition: ecvHistogramWindow.cpp:323
@ CUSTOM_BBOX
Definition: ecvComputeOctreeDlg.h:28
bool convertNormalToDipDirSFs(ccScalarField *dipSF, ccScalarField *dipDirSF)
Converts normals to two scalar fields: 'dip' and 'dip direction'.
Definition: ecvPointCloud.cpp:1885
bool convertRGBToGreyScale()
Converts RGB to grey scale colors.
Definition: ecvPointCloud.cpp:1863
ScalarType getMin() const
Returns the minimum value.
Definition: ScalarField.h:72
PointCoordinateType getRadius() const
Returns local neighbourhood radius.
Definition: ecvNormalComputationDlg.cpp:110
Main application interface (for plugins)
Definition: ecvMainAppInterface.h:24
bool convertTextureToColor(const ccHObject::Container &selectedEntities, QWidget *parent)
Definition: ecvEntityAction.cpp:468
bool hasNormals() const override
Returns whether normals are enabled or not.
Definition: ecvMesh.cpp:225
double getParam1() const
Returns 1st parameter value.
Definition: ecvStatisticalTestDlg.cpp:32
unsigned char getDimension() const
Returns the ramp dimension.
Definition: ecvColorGradientDlg.cpp:43
Octree structure.
Definition: ecvOctree.h:27
bool reserveSafe(size_t count)
Reserves memory (no exception thrown)
Definition: ecvArray.h:56
static ccSensor * ToSensor(ccHObject *obj)
Converts current object to ccSensor (if possible)
Definition: ecvHObjectCaster.cpp:240
void setInterpolationAlgorithm(ccPointCloudInterpolator::Parameters::Algo algo)
Definition: ecvInterpolationDlg.cpp:66
bool sfSetAsCoord(const ccHObject::Container &selectedEntities, QWidget *parent)
Definition: ecvEntityAction.cpp:1258
A 3D cloud interface with associated features (color, normals, octree, etc.)
Definition: ecvGenericPointCloud.h:45
const ecvColor::Rgb & getColor() const
Returns the polyline color.
Definition: ecvPolyline.h:99
Minimal dialog to pick one element in a list (combox box)
Definition: ecvPickOneElementDlg.h:18
static PointCoordinateType GetDefaultValueForNaN(PointCoordinateType minSFValue, QWidget *parent)
Definition: ecvEntityAction.cpp:1240
Encapsulating dialog for ccHistogramWindow.
Definition: ecvHistogramWindow.h:249
static bool ValidValue(ScalarType value)
Returns whether a scalar value is valid or not.
Definition: ScalarField.h:61
unsigned knn
Definition: ecvPointCloudInterpolator.h:31
const char * getName() const
Returns scalar field name.
Definition: ScalarField.h:43
Generic sensor interface.
Definition: ecvSensor.h:27
double computeMode() const
Returns the distribution 'mode'.
Definition: WeibullDistribution.cpp:420
Definition: ecvScalarFieldArithmeticsDlg.h:16
ScalarField * getCurrentOutScalarField() const
Returns the scalar field currently associated to the cloud output.
Definition: PointCloudTpl.h:400
#define CC_DEFAULT_DIP_SF_NAME
Definition: ecvCommon.h:38
void setCurrentInScalarField(int index)
Sets the INPUT scalar field.
Definition: PointCloudTpl.h:408
bool apply(ccPointCloud *cloud)
Applies operation on a given cloud.
Definition: ecvScalarFieldArithmeticsDlg.cpp:151
Dialog for octree computation.
Definition: ecvComputeOctreeDlg.h:18
void setSymmetricalScale(bool state)
Sets whether the color scale should be symmetrical or not.
Definition: ecvScalarField.cpp:123
bool setColorGradient(const ccHObject::Container &selectedEntities, QWidget *parent)
Definition: ecvEntityAction.cpp:210
Definition: MainWindow.h:117
std::size_t countValidValues() const
Returns the number of valid values in this scalar field.
Definition: ScalarField.cpp:29
GradientType getType() const
Returns selected gradient type.
Definition: ecvColorGradientDlg.cpp:64
bool convertMaterialsToVertexColors()
Converts materials to vertex colors.
Definition: ecvMesh.cpp:4718
bool sfGaussianFilter(const ccHObject::Container &selectedEntities, ccPointCloud::RgbFilterOptions filterParams, QWidget *parent)
Definition: ecvEntityAction.cpp:829
@ POLY_LINE
Definition: CVTypes.h:112
void swap(cloudViewer::core::SmallVectorImpl< T > &LHS, cloudViewer::core::SmallVectorImpl< T > &RHS)
Implement std::swap in terms of SmallVector swap.
Definition: SmallVector.h:1370
Dialog for the Local Statistical Test tool.
Definition: ecvStatisticalTestDlg.h:13
void setCurveValues(const std::vector< double > &curveValues)
Sets overlay curve values.
Definition: ecvHistogramWindow.cpp:170
bool setRGBColorByBanding(unsigned char dim, double freq)
Assigns color to points by 'banding'.
Definition: ecvPointCloud.cpp:1957
bool isValid() const
Returns whether bounding box is valid or not.
Definition: BoundingBox.h:203
bool reserve(unsigned numberOfPoints) override
Reserves memory for all the active features.
Definition: ecvPointCloud.cpp:1452
virtual bool hasDisplayedScalarField() const
Returns whether an active scalar field is available or not.
Definition: ecvDrawableObject.h:99
QSharedPointer< Grid > Shared
Shared type.
Definition: ecvPointCloud.h:385
ccPointCloudInterpolator::Parameters::Method getInterpolationMethod() const
Definition: ecvInterpolationDlg.cpp:24
unsigned char burntOutColorThreshold
Definition: ecvPointCloud.h:796
Graphical progress indicator (thread-safe)
Definition: ecvProgressDialog.h:27
double getParam3() const
Returns 3rd parameter value.
Definition: ecvStatisticalTestDlg.cpp:40
ScalarType getMax() const
Returns the maximum value.
Definition: ScalarField.h:74
bool hasNormals() const override
Returns whether normals are enabled or not.
Definition: ecvPointCloud.cpp:1693
void addElement(const Type &value)
Definition: ecvArray.h:105
bool useScanGridsForOrientation() const
Returns whether scan grids should be used for normals orientation.
Definition: ecvNormalComputationDlg.cpp:140
virtual void setMethodTitle(const char *methodTitle) override
Notifies the algorithm title.
Definition: ecvProgressDialog.h:49
double ComputeResolution() const
Definition: PointCloudFactory.cpp:1418
Octree structure proxy.
Definition: ecvOctreeProxy.h:18
void invertNormals()
Inverts normals (if any)
Definition: ecvPointCloud.cpp:2741
ccHistogramWindow * window()
Returns encapsulated ccHistogramWindow.
Definition: ecvHistogramWindow.h:259
virtual bool computeParameters(const ScalarContainer &values)=0
Computes the distribution parameters from a set of values.
Generic mesh interface.
Definition: ecvGenericMesh.h:28
Generic interpolation parameters.
Definition: ecvPointCloudInterpolator.h:25
static bool InterpolateScalarFieldsFrom(ccPointCloud *destCloud, ccPointCloud *srccloud, const std::vector< int > &sfIndexes, const Parameters ¶ms, cloudViewer::GenericProgressCallback *progressCb=0, unsigned char octreeLevel=0)
Interpolate scalar fields from another cloud.
Definition: ecvPointCloudInterpolator.cpp:151
bool ConvexHull(const ccHObject::Container &selectedEntities, ccHObject::Container &outEntities, QWidget *parent)
Definition: ecvEntityAction.cpp:2794
static ccColorScale::Shared Create(const QString &name)
Creates a new color scale (with auto-generated unique id)
Definition: ecvColorScale.cpp:32
a[190]
Definition: essential_matrix_poly.h:19
virtual void showSF(bool state)
Sets active scalarfield visibility.
Definition: ecvDrawableObject.h:108
void invertNormals()
Inverts normals (if any)
Definition: ecvMesh.cpp:3288
ScalarType getPointScalarValue(unsigned pointIndex) const override
Definition: PointCloudTpl.h:134
void setCloud(ccPointCloud *cloud)
Sets the currently selected cloud (required for 'auto' feature)
Definition: ecvNormalComputationDlg.cpp:104
bool exportNormalToSF(bool exportDims[3])
Exports the specified normal dimension(s) to scalar field(s)
Definition: ecvPointCloud.cpp:5953
bool useScanGridsForComputation() const
Returns whether scan grids should be used for computation.
Definition: ecvNormalComputationDlg.cpp:124
cloudViewer object type flags
Definition: CVTypes.h:100
bool hasDisplayedScalarField() const override
Returns whether an active scalar field is available or not.
Definition: ecvPointCloud.cpp:1701
virtual void setVisible(bool state)
Sets entity visibility.
Definition: ecvDrawableObject.h:40
Dialog to define a color gradient (default, with 2 colors, banding, etc.)
Definition: ecvColorGradientDlg.h:16
std::vector< PCLPointField > fields
Definition: FileIOFactory.cpp:141
std::vector< int > ClusterDBSCAN(double eps, size_t min_points, bool print_progress=false) const
Cluster ccPointCloud using the DBSCAN algorithm Ester et al., "A Density-Based Algorithm for Discover...
Definition: PointCloudCluster.cpp:50
unsigned displayedNumPrecision
Displayed numbers precision.
Definition: ecvGuiParameters.h:100
Type z
Definition: CVGeom.h:137
bool invertNormals(const ccHObject::Container &selectedEntities)
Definition: ecvEntityAction.cpp:1818
Type & getValue(size_t index)
Definition: ecvArray.h:100
double spatialSigma
Definition: ecvPointCloud.h:799
void setColorScale(ccColorScale::Shared scale)
Sets associated color scale.
Definition: ecvScalarField.cpp:108
bool exportNormalToSF(const ccHObject::Container &selectedEntities, QWidget *parent, bool *exportDimensions)
Definition: ecvEntityAction.cpp:1341
Orientation
'Default' orientations
Definition: ecvNormalVectors.h:70
void setRadius(PointCoordinateType radius)
Sets default value for local neighbourhood radius.
Definition: ecvNormalComputationDlg.cpp:100
@ TwoColors
Definition: ecvColorGradientDlg.h:24
bool exportX() const
Returns whether X dimension should be exported.
Definition: ecvExportCoordToSFDlg.cpp:15
Dialog to assign roles to two entities (e.g. compared/reference)
Definition: ecvOrderChoiceDlg.h:18
bool getCompositeStatus()
Returns if to export Composite channel as SF.
Definition: ecvScalarFieldFromColorDlg.cpp:37
@ DIP_BRYW
Definition: ecvColorScalesManager.h:41
bool getBStatus()
Returns if to export B channel as SF.
Definition: ecvScalarFieldFromColorDlg.cpp:33
bool hasScalarFields() const override
Returns whether one or more scalar fields are instantiated.
Definition: ecvPointCloud.cpp:1697
bool applyToSFduringRGB
Definition: ecvPointCloud.h:794
ccBBox getCustomBBox() const
Returns custom bbox.
Definition: ecvComputeOctreeDlg.cpp:64
bool convertNormalToRGB()
Converts normals to RGB colors.
Definition: ecvPointCloud.cpp:1835
bool applyFilterToRGB(PointCoordinateType sigma, PointCoordinateType sigmaSF, RgbFilterOptions filterParams, cloudViewer::GenericProgressCallback *progressCb=nullptr)
Applies a spatial Gaussian filter on RGB colors.
Definition: ecvPointCloud.cpp:2417
static const ParamStruct & Parameters()
Returns the stored values of each parameter.
Definition: ecvGuiParameters.cpp:24
bool enhanceRGBWithIntensities(const ccHObject::Container &selectedEntities, QWidget *parent)
Definition: ecvEntityAction.cpp:514
Method
Definition: ecvPointCloudInterpolator.h:26
unsigned getChildrenNumber() const
Returns the number of children.
Definition: ecvHObject.h:312
double computeSkewness() const
Returns the distribution 'skewness'.
Definition: WeibullDistribution.cpp:428
size_t gridCount() const
Returns the number of associated grids.
Definition: ecvPointCloud.h:441
bool exportY() const
Returns whether Y dimension should be exported.
Definition: ecvExportCoordToSFDlg.cpp:17
void setDefaultIndex(int index)
Sets the combo box default index.
Definition: ecvPickOneElementDlg.cpp:38
void fromBinArray(const std::vector< unsigned > &histoValues, double minVal, double maxVal)
Definition: ecvHistogramWindow.cpp:153
static ccGenericPrimitive * ToPrimitive(ccHObject *obj)
Converts current object to ccGenericPrimitive (if possible)
Definition: ecvHObjectCaster.cpp:167
MESH_SCALAR_FIELD_PROCESS
Mesh scalar field processes.
Definition: ecvMesh.h:554
float radius
Definition: ecvPointCloudInterpolator.h:32
RGB_FILTER_TYPES filterType
Definition: ecvPointCloud.h:795
ComputationMode getMode() const
Returns octree computation mode.
Definition: ecvComputeOctreeDlg.cpp:49
void setAxisLabels(const QString &xLabel, const QString &yLabel)
Sets axis labels.
Definition: ecvHistogramWindow.cpp:108
int getCurrentDisplayedScalarFieldIndex() const
Returns the currently displayed scalar field index (or -1 if none)
Definition: ecvPointCloud.cpp:3223
std::tuple< Eigen::Vector4d, std::vector< size_t > > SegmentPlane(const double distance_threshold=0.01, const int ransac_n=3, const int num_iterations=100) const
Segment ccPointCloud plane using the RANSAC algorithm.
Definition: PointCloudSegmentation.cpp:139
const char * getScalarFieldName(int index) const
Returns the name of a specific scalar field.
Definition: PointCloudTpl.h:365
int count
Definition: FileIOFactory.cpp:132
double sigmaSF
Definition: ecvPointCloud.h:798
@ HIERARCHY_OBJECT
Definition: CVTypes.h:103
PointCoordinateType GetDefaultCloudKernelSize(ccGenericPointCloud *cloud, unsigned knn)
Returns a default first guess for algorithms kernel size (one cloud)
Definition: ecvLibAlgorithms.cpp:67
virtual void showMaterials(bool state)
Sets whether textures should be displayed or not.
Definition: ecvGenericMesh.h:201
static bool Warning(const char *format,...)
Prints out a formatted warning message in console.
Definition: CVLog.cpp:133
bool setRGBColor(ColorCompType r, ColorCompType g, ColorCompType b)
Set a unique color for the whole cloud (shortcut)
Definition: ecvPointCloud.h:778
virtual void setRedraw(bool state)
Sets entity redraw mode.
Definition: ecvDrawableObject.h:48
@ Default
Definition: ecvColorGradientDlg.h:24
void ConvertToScalarType(const std::vector< std::vector< T >> &inputScalars, std::vector< std::vector< ScalarType >> &outputScalars)
Definition: ecvEntityAction.h:21
virtual void setInfo(const char *infoStr) override
Notifies some information about the ongoing process.
Definition: ecvProgressDialog.h:52
const ccColorScale::Shared & getColorScale() const
Returns associated color scale.
Definition: ecvScalarField.h:186
RGB color structure.
Definition: ecvColorTypes.h:49
ccScalarField * getCurrentDisplayedScalarField() const
Returns the currently displayed scalar (or 0 if none)
Definition: ecvPointCloud.cpp:3218
bool setCoordFromSF(bool importDims[3], cloudViewer::ScalarField *sf, PointCoordinateType defaultValueForNaN)
Sets coordinate(s) from a scalar field.
Definition: ecvPointCloud.cpp:5922
bool getRStatus()
Returns if to export R channel as SF.
Definition: ecvScalarFieldFromColorDlg.cpp:25
The Normal/Gaussian statistical distribution.
Definition: NormalDistribution.h:18
Triangular mesh.
Definition: ecvMesh.h:35
void getColors(QColor &first, QColor &second) const
Returns the two colors of the gradient ('TwoColors' mode)
Definition: ecvColorGradientDlg.cpp:77
@ PRIMITIVE
Definition: CVTypes.h:119
bool sfConvertToRGB(const ccHObject::Container &selectedEntities, QWidget *parent)
Definition: ecvEntityAction.cpp:1020
ccHObject * getChild(unsigned childPos) const
Returns the ith child.
Definition: ecvHObject.h:325
Dialog to input 2 values with custom labels.
Definition: ecvAskDoubleIntegerValuesDlg.h:13
Method method
Definition: ecvPointCloudInterpolator.h:29
bool isAncestorOf(const ccHObject *anObject) const
Returns true if the current object is an ancestor of the specified one.
Definition: ecvHObject.cpp:699
constexpr ScalarType NAN_VALUE
NaN as a ScalarType value.
Definition: CVConst.h:76
void putObjectBackIntoDBTree(ccHObject *obj, const ccHObjectContext &context) override
Adds back object to DB tree.
Definition: MainWindow.cpp:3758
static QString GetFirstAvailableSFName(const ccPointCloud *cloud, const QString &baseName)
Definition: ecvEntityAction.cpp:68
virtual void toggleSF_recursive()
Definition: ecvHObject.h:556
virtual void clear()
Clears the octree.
Definition: DgmOctree.cpp:183
Algo
Definition: ecvPointCloudInterpolator.h:27
virtual bool hasColors() const
Returns whether colors are enabled or not.
Definition: ecvDrawableObject.h:80
Hierarchical CLOUDVIEWER Object.
Definition: ecvHObject.h:25
Type y
Definition: CVGeom.h:137
virtual QString getName() const
Returns object name.
Definition: ecvObject.h:72
bool hasColors() const override
Returns whether colors are enabled or not.
Definition: ecvMesh.cpp:221
void setMinDisplayed(ScalarType val)
Sets the minimum displayed value.
Definition: ecvScalarField.cpp:256
const Vector3Tpl< T > & maxCorner() const
Returns max corner (const)
Definition: BoundingBox.h:156
ScalarField * getCurrentInScalarField() const
Returns the scalar field currently associated to the cloud input.
Definition: PointCloudTpl.h:391
void setValue(std::size_t index, ScalarType value)
Definition: ScalarField.h:96
bool commandLine
Definition: ecvPointCloud.h:797
T * data()
Returns a pointer to internal data.
Definition: ecvGLMatrixTpl.h:810
bool computeStatParams(const ccHObject::Container &selectedEntities, QWidget *parent)
Definition: ecvEntityAction.cpp:2493
ccBBox getOwnBB(bool withGLFeatures=false) override
Returns the entity's own bounding-box.
Definition: ecvGenericPointCloud.cpp:139
TOGGLE_PROPERTY
Definition: ecvEntityAction.h:113
void addPoint(const CCVector3 &P)
Adds a 3D point to the database.
Definition: PointCloudTpl.h:246
static Rgb Random(bool lightOnly=true)
Generates a random color.
Definition: ecvColorTypes.cpp:84
@ DP_NONE
Definition: ecvHObject.h:258
double getParam2() const
Returns 2nd parameter value.
Definition: ecvStatisticalTestDlg.cpp:36
void setMinGridAngle_deg(double value)
Sets the min angle for grid triangles.
Definition: ecvNormalComputationDlg.cpp:132
Definition: ecvScalarFieldFromColorDlg.h:16
int getMSTNeighborCount() const
Returns the number of neighbors for Minimum Spanning Tree (MST)
Definition: ecvNormalComputationDlg.cpp:160
@ LS
Definition: CVConst.h:123
Generic primitive interface.
Definition: ecvGenericPrimitive.h:16
void setMSTNeighborCount(int n)
Sets the number of neighbors for Minimum Spanning Tree (MST)
Definition: ecvNormalComputationDlg.cpp:156
float PointCoordinateType
Type of the coordinates of a (N-D) point.
Definition: CVTypes.h:16
bool computeOctree(const ccHObject::Container &selectedEntities, QWidget *parent)
Definition: ecvEntityAction.cpp:2072
bool toggleProperty(const ccHObject::Container &selectedEntities, TOGGLE_PROPERTY property)
Definition: ecvEntityAction.cpp:2303
@ NORMAL_DIST
Definition: ecvPointCloudInterpolator.h:27
bool clearProperty(ccHObject::Container selectedEntities, CLEAR_PROPERTY property, QWidget *parent)
Definition: ecvEntityAction.cpp:2200
@ USE_CUSTOM_COLOR_SCALE
Definition: ecvHistogramWindow.h:77
Facet.
Definition: ecvFacet.h:25
int build(GenericProgressCallback *progressCb=nullptr)
Builds the structure.
Definition: DgmOctree.cpp:196
virtual bool isLocked() const
Returns whether the object is locked or not.
Definition: ecvObject.h:112
unsigned char ColorCompType
Default color components type (R,G and B)
Definition: ecvColorTypes.h:29
void setInterpolationMethod(ccPointCloudInterpolator::Parameters::Method method)
Definition: ecvInterpolationDlg.cpp:36
bool setColor(ccHObject::Container selectedEntities, bool colorize, QWidget *parent)
Definition: ecvEntityAction.cpp:89
ccHObjectContext removeObjectTemporarilyFromDBTree(ccHObject *obj) override
Removes object temporarily from DB tree.
Definition: MainWindow.cpp:3776
void DisplayLockedVerticesWarning(const QString &meshName, bool displayAsError)
Display a warning or error for locked verts.
Definition: ecvUtils.cpp:13
bool computeNormals(const ccHObject::Container &selectedEntities, QWidget *parent)
Definition: ecvEntityAction.cpp:1570
Generic dialog to query 3 (double) values.
Definition: ecvAskThreeDoubleValuesDlg.h:16
ccHObject * getFirstEntity()
Returns the first entity (new order)
Definition: ecvOrderChoiceDlg.cpp:72
void setName(const char *name)
Sets scalar field name.
Definition: ScalarField.cpp:22
virtual bool addChild(ccHObject *child, int dependencyFlags=DP_PARENT_OF_OTHER, int insertIndex=-1)
Adds a child.
Definition: ecvHObject.cpp:534
void addElement(const QString &elementName)
Add an element to the combo box.
Definition: ecvPickOneElementDlg.cpp:34
virtual void setEnabled(bool state)
Sets the "enabled" property.
Definition: ecvObject.h:102
virtual const char * getName() const =0
Returns distribution name.
virtual void toggleActivation()
Toggles the "enabled" property.
Definition: ecvObject.h:107
void setPointColor(size_t pointIndex, const ecvColor::Rgb &col)
Sets a particular point color.
Definition: ecvPointCloud.cpp:1649
void setLocalModel(CV_LOCAL_MODEL_TYPES model)
Sets the local model chosen for normal computation.
Definition: ecvNormalComputationDlg.cpp:60
static ccGenericPointCloud * ToGenericPointCloud(ccHObject *obj, bool *isLockedVertices=nullptr)
Converts current object to 'equivalent' ccGenericPointCloud.
Definition: ecvHObjectCaster.cpp:81
void setCurrentScalarField(int index)
Sets both the INPUT & OUTPUT scalar field.
Definition: PointCloudTpl.h:435
void setColor(const ecvColor::Rgb &rgb)
Sets the facet unique color.
Definition: ecvFacet.cpp:413
void ConvertToGroup(const ccHObject::Container &origin, ccHObject &dest, int dependencyFlags=ccHObject::DP_NONE)
Puts all entities inside a container in a group.
Definition: ecvHObject.h:742
std::tuple< std::shared_ptr< ccMesh >, std::vector< size_t > > ComputeConvexHull() const
Function that computes the convex hull of the point cloud using qhull.
Definition: PointCloudFactory.cpp:1425
unsigned currentSize() const
Definition: ScalarField.h:100
double getProba() const
Returns the associated probability.
Definition: ecvStatisticalTestDlg.cpp:48
MiniVec< float, N > ceil(const MiniVec< float, N > &a)
Definition: MiniVec.h:89
#define CC_CHI2_DISTANCES_DEFAULT_SF_NAME
Definition: ecvCommon.h:22
Dialog for generic interpolation algorithms.
Definition: ecvInterpolationDlg.h:16
A scalar field associated to display-related parameters.
Definition: ecvScalarField.h:19
Array of RGB colors for each point.
Definition: ecvAdvancedTypes.h:82
void setColor(const ecvColor::Rgb &col)
Sets the polyline color.
Definition: ecvPolyline.h:81
void clearTriNormals()
Removes per-triangle normals.
Definition: ecvMesh.h:353
const Vector3Tpl< T > & minCorner() const
Returns min corner (const)
Definition: BoundingBox.h:154
std::string name
Definition: FileIOFactory.cpp:129
Colored polyline.
Definition: ecvPolyline.h:23
bool orientNormalsFM(const ccHObject::Container &selectedEntities, QWidget *parent)
Definition: ecvEntityAction.cpp:1847
int getNeighborsNumber() const
Returns the number of neighbors.
Definition: ecvStatisticalTestDlg.cpp:44