ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
AdvancedIndexing.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 <vector>
11 
12 #include "cloudViewer/Macro.h"
16 
17 namespace cloudViewer {
18 namespace core {
19 
22 public:
24  const std::vector<Tensor>& index_tensors)
25  : tensor_(tensor), index_tensors_(ExpandBoolTensors(index_tensors)) {
26  RunPreprocess();
27  }
28 
29  inline Tensor GetTensor() const { return tensor_; }
30 
31  inline std::vector<Tensor> GetIndexTensors() const {
32  return index_tensors_;
33  }
34 
35  inline SizeVector GetOutputShape() const { return output_shape_; }
36 
37  inline SizeVector GetIndexedShape() const { return indexed_shape_; }
38 
39  inline SizeVector GetIndexedStrides() const { return indexed_strides_; }
40 
44  static bool IsIndexSplittedBySlice(
45  const std::vector<Tensor>& index_tensors);
46 
49  static std::pair<Tensor, std::vector<Tensor>> ShuffleIndexedDimsToFront(
50  const Tensor& tensor, const std::vector<Tensor>& index_tensors);
51 
54  static std::pair<std::vector<Tensor>, SizeVector>
55  ExpandToCommonShapeExceptZeroDim(const std::vector<Tensor>& index_tensors);
56 
57  // Replace indexed dimensions with stride 0 and the size of the result
58  // tensor.
59  //
60  // The offset in these dimensions is computed by the kernel using
61  // the index tensor's values and the stride of the tensor. The new shape is
62  // not meaningful. It's used to make the shape compatible with the result
63  // tensor.
64  //
65  // Effectively, we throw away the tensor's shape and strides for the sole
66  // purpose of element-wise iteration for the Indexer. The tensor's original
67  // strides are stored in indexed_shape_ and indexed_strides_,
68  // which are passed to fancy indexing kernels.
69  static Tensor RestrideTensor(const Tensor& tensor,
70  int64_t dims_before,
71  int64_t dims_indexed,
72  SizeVector replacement_shape);
73 
74  // Add dimensions of size 1 to an index tensor so that it can be broadcast
75  // to the result shape and iterated over element-wise like the result tensor
76  // and the restrided src.
77  static Tensor RestrideIndexTensor(const Tensor& index_tensor,
78  int64_t dims_before,
79  int64_t dims_after);
80 
81 protected:
83  void RunPreprocess();
84 
86  static std::vector<Tensor> ExpandBoolTensors(
87  const std::vector<Tensor>& index_tensors);
88 
92 
94  std::vector<Tensor> index_tensors_;
95 
98 
102 
106 };
107 
118 public:
119  enum class AdvancedIndexerMode { SET, GET };
120 
122  const Tensor& dst,
123  const std::vector<Tensor>& index_tensors,
124  const SizeVector& indexed_shape,
125  const SizeVector& indexed_strides,
126  AdvancedIndexerMode mode)
127  : mode_(mode) {
128  if (indexed_shape.size() != indexed_strides.size()) {
130  "Internal error: indexed_shape's ndim {} does not equal to "
131  "indexed_strides' ndim {}",
132  indexed_shape.size(), indexed_strides.size());
133  }
134  num_indices_ = indexed_shape.size();
135 
136  // Initialize Indexer
137  std::vector<Tensor> inputs;
138  inputs.push_back(src);
139  for (const Tensor& index_tensor : index_tensors) {
140  if (index_tensor.NumDims() != 0) {
141  inputs.push_back(index_tensor);
142  }
143  }
144  indexer_ = Indexer({inputs}, dst, DtypePolicy::NONE);
145 
146  // Fill shape and strides
147  if (num_indices_ != static_cast<int64_t>(indexed_strides.size())) {
149  "Internal error: indexed_shape's ndim {} does not equal to "
150  "indexd_strides' ndim {}",
151  num_indices_, indexed_strides.size());
152  }
153  for (int64_t i = 0; i < num_indices_; ++i) {
154  indexed_shape_[i] = indexed_shape[i];
155  indexed_strides_[i] = indexed_strides[i];
156  }
157 
158  // Check dtypes
159  if (src.GetDtype() != dst.GetDtype()) {
161  "src's dtype {} is not the same as dst's dtype {}.",
162  src.GetDtype().ToString(), dst.GetDtype().ToString());
163  }
165  }
166 
168  int64_t workload_idx) const {
169  char* ptr = indexer_.GetInputPtr(0, workload_idx);
170  ptr += GetIndexedOffset(workload_idx) * element_byte_size_ *
172  return ptr;
173  }
174 
176  int64_t workload_idx) const {
177  char* ptr = indexer_.GetOutputPtr(workload_idx);
178  ptr += GetIndexedOffset(workload_idx) * element_byte_size_ *
180  return ptr;
181  }
182 
183  inline CLOUDVIEWER_HOST_DEVICE int64_t
184  GetIndexedOffset(int64_t workload_idx) const {
185  int64_t offset = 0;
186  for (int64_t i = 0; i < num_indices_; ++i) {
187  int64_t index = *(reinterpret_cast<int64_t*>(
188  indexer_.GetInputPtr(i + 1, workload_idx)));
189  CLOUDVIEWER_ASSERT(index >= -indexed_shape_[i] &&
190  index < indexed_shape_[i] &&
191  "Index out of bounds.");
192  index += indexed_shape_[i] * (index < 0);
193  offset += index * indexed_strides_[i];
194  }
195  return offset;
196  }
197 
198  int64_t NumWorkloads() const { return indexer_.NumWorkloads(); }
199 
200 protected:
203  int64_t num_indices_;
207 };
208 
209 } // namespace core
210 } // namespace cloudViewer
cloudViewer::DgmOctree::NearestNeighboursSearchStruct::cellCenter
CCVector3 cellCenter
Coordinates of the center of the cell including the query point.
Definition: DgmOctree.h:189
cloudViewer::GenericIndexedCloud
A generic 3D point cloud with index-based point access.
Definition: GenericIndexedCloud.h:18
cloudViewer::DistanceComputationTools::Cloud2CloudDistancesComputationParams::multiThread
bool multiThread
Whether to use multi-thread or single thread mode.
Definition: DistanceComputationTools.h:52
cloudViewer::Polyline::isClosed
bool isClosed() const
Returns whether the polyline is closed or not.
Definition: Polyline.h:26
cloudViewer::MeshSamplingTools::VERTEX_BORDER
@ VERTEX_BORDER
Definition: MeshSamplingTools.h:75
cloudViewer::core::AdvancedIndexPreprocessor::GetOutputShape
SizeVector GetOutputShape() const
Definition: AdvancedIndexing.h:35
TRI
@ TRI
Definition: CVConst.h:124
Cpu.h
Jacobi::GetEigenVector
static bool GetEigenVector(const SquareMatrix &eigenVectors, unsigned index, Scalar eigenVector[])
Returns the given eigenvector.
Definition: Jacobi.h:364
cloudViewer::ReferenceCloud::setCurrentPointScalarValue
virtual void setCurrentPointScalarValue(ScalarType value)
Sets the current point associated scalar value.
Definition: ReferenceCloud.h:126
cloudViewer::CCMiscTools::TriBoxOverlap
static bool TriBoxOverlap(const CCVector3 &boxcenter, const CCVector3 &boxhalfsize, const CCVector3 *triverts[3])
Ovelap test between a 3D box and a triangle.
Definition: CVMiscTools.cpp:127
cloudViewer::Neighbourhood::triangulateFromQuadric
GenericIndexedMesh * triangulateFromQuadric(unsigned stepsX, unsigned stepsY)
Definition: Neighbourhood.cpp:682
cloudViewer::FastMarching::m_rowSize
unsigned m_rowSize
Shift for cell access acceleration (Y dimension)
Definition: FastMarching.h:227
cloudViewer::ReferenceCloud::getCurrentPointCoordinates
virtual const CCVector3 * getCurrentPointCoordinates() const
Returns the coordinates of the point pointed by the current element.
Definition: ReferenceCloud.cpp:77
cloudViewer
Generic file read and write utility for python interface.
Definition: CloudViewerConfig.cpp:12
cloudViewer::PointCloud::resize
bool resize(unsigned newCount) override
Resizes the point database.
Definition: CVPointCloud.h:41
AtomicCounter
Fake QAtomicInt.
Definition: NormalizedProgress.cpp:27
cloudViewer::core::Tensor::GetDtype
Dtype GetDtype() const
Definition: Tensor.h:1164
cloudViewer::utility::ComputeCovariance
Eigen::Matrix3d ComputeCovariance(const std::vector< Eigen::Vector3d > &points, const std::vector< IdxType > &indices)
Function to compute the covariance matrix of a set of points.
Definition: Eigen.cpp:287
bytes
void * bytes
Definition: TriangleMeshBuffers.cpp:159
cloudViewer::GeometricalAnalysisTools::NotEnoughPoints
@ NotEnoughPoints
Definition: GeometricalAnalysisTools.h:49
cloudViewer::DistanceComputationTools::Cloud2CloudDistancesComputationParams
Cloud-to-cloud "Hausdorff" distance computation parameters.
Definition: DistanceComputationTools.h:34
cloudViewer::ICPRegistrationTools::Parameters::samplingLimit
unsigned samplingLimit
Definition: RegistrationTools.h:189
Edge::itA
VertexIterator itA
Definition: PointProjectionTools.cpp:506
cloudViewer::Universe::find
int find(int x)
Definition: Universe.cpp:29
cloudViewer::KDTree::radiusSearch
unsigned radiusSearch(const PointCoordinateType *queryPoint, ScalarType distance, ScalarType tolerance, std::vector< unsigned > &pointndexes)
Definition: CVKdTree.cpp:288
cloudViewer::system::cpu_clock_by_os
int cpu_clock_by_os()
Returns the CPU clock, as reported by the OS.
Definition: Cpu.cpp:62
cloudViewer::Delaunay2dMesh::removeOuterTriangles
virtual bool removeOuterTriangles(const std::vector< CCVector2 > &vertices2D, const std::vector< CCVector2 > &polygon2D, bool removeOutside=true)
Removes the triangles falling outside of a given (2D) polygon.
Definition: Delaunay2dMesh.cpp:207
cloudViewer::TrueKdTree::TrueKdTree
TrueKdTree(GenericIndexedCloudPersist *cloud)
Default constructor.
Definition: TrueKdTree.cpp:17
M_PI
constexpr double M_PI
Pi.
Definition: CVConst.h:19
cloudViewer::PointProjectionTools::developCloudOnCone
static PointCloud * developCloudOnCone(GenericCloud *cloud, unsigned char dim, PointCoordinateType baseRadius, float alpha, const CCVector3 &center, GenericProgressCallback *progressCb=nullptr)
Develops a cone-shaped point cloud around its main axis.
Definition: PointProjectionTools.cpp:87
ShapeUtil.h
cloudViewer::Universe::Universe
Universe(int elements)
Definition: Universe.cpp:11
QtCompat::endl
QTextStream & endl(QTextStream &stream)
Definition: QtCompat.h:718
cloudViewer::GenericCloud::getNextPoint
virtual const CCVector3 * getNextPoint()=0
Returns the next point (relatively to the global iterator position)
Edge::nearestPointIndex
unsigned nearestPointIndex
Definition: PointProjectionTools.cpp:507
cloudViewer::LocalModel::getCenter
const CCVector3 & getCenter() const
Returns the model center.
Definition: LocalModel.h:37
cloudViewer::Universe::~Universe
~Universe()
Definition: Universe.cpp:27
cloudViewer::utility::filesystem::DirectoryExists
bool DirectoryExists(const std::string &directory)
Definition: FileSystem.cpp:473
Indexer.h
c_realIndexMask
const unsigned c_realIndexMask
Definition: ManualSegmentationTools.cpp:334
cloudViewer::uni_elt
Definition: Universe.h:15
cloudViewer::SimpleMesh::SimpleMesh
SimpleMesh(GenericIndexedCloud *_theVertices, bool linkVerticesWithMesh=false)
SimpleMesh Constructor.
Definition: SimpleMesh.cpp:18
cloudViewer::GenericDistribution::computePfromZero
virtual double computePfromZero(ScalarType x) const =0
Computes the cumulative probability between 0 and x.
filename
std::string filename
Definition: PointCloudIO.cpp:47
NormalDistribution.h
CVTools::FileMappingReader
static bool FileMappingReader(const std::string &filename, void *data, unsigned long &size)
Definition: CVTools.cpp:181
cloudViewer::DgmOctree::MAX_OCTREE_LENGTH
static const int MAX_OCTREE_LENGTH
Max octree length at last level of subdivision (number of cells)
Definition: DgmOctree.h:84
cloudViewer::PointCloud::addNormal
void addNormal(const CCVector3 &N)
Adds a normal.
Definition: CVPointCloud.h:61
cloudViewer::GeometricalAnalysisTools::ComputeGravityCenter
static CCVector3 ComputeGravityCenter(const GenericCloud *theCloud)
Computes the gravity center of a point cloud.
Definition: GeometricalAnalysisTools.cpp:517
cloudViewer::system::MemoryInfo::toString
std::string toString()
Definition: MemoryInfo.cpp:162
cloudViewer::Neighbourhood::Linearity
@ Linearity
Definition: Neighbourhood.h:167
cloudViewer::ICPRegistrationTools::ICP_ERROR_CANCELED_BY_USER
@ ICP_ERROR_CANCELED_BY_USER
Definition: RegistrationTools.h:139
cloudViewer::Delaunay2dMesh::getTriangleVertices
virtual void getTriangleVertices(unsigned triangleIndex, CCVector3 &A, CCVector3 &B, CCVector3 &C) const override
Returns the vertices of a given triangle.
Definition: Delaunay2dMesh.cpp:358
cloudViewer::SquareMatrixTpl::transposed
SquareMatrixTpl transposed() const
Returns the transposed version of this matrix.
Definition: SquareMatrix.h:311
cloudViewer::ReferenceCloud::reserve
virtual bool reserve(unsigned n)
Reserves some memory for hosting the point references.
Definition: ReferenceCloud.cpp:51
cloudViewer::utility::LeftStripString
std::string & LeftStripString(std::string &str, const std::string &chars="\t\n\v\f\r ")
Definition: Helper.cpp:228
cloudViewer::FPCSRegistrationTools::RegisterClouds
static bool RegisterClouds(GenericIndexedCloud *modelCloud, GenericIndexedCloud *dataCloud, ScaledTransformation &transform, ScalarType delta, ScalarType beta, PointCoordinateType overlap, unsigned nbBases, unsigned nbTries, GenericProgressCallback *progressCb=nullptr, unsigned nbMaxCandidates=0)
Registers two point clouds.
Definition: RegistrationTools.cpp:1139
cloudViewer::GeometricalAnalysisTools::ComputeCovarianceMatrix
static cloudViewer::SquareMatrixd ComputeCovarianceMatrix(const GenericCloud *theCloud, const PointCoordinateType *_gravityCenter=nullptr)
Computes the covariance matrix of a clouds.
Definition: GeometricalAnalysisTools.cpp:562
cloudViewer::ScalarField::m_name
char m_name[256]
Scalar field name.
Definition: ScalarField.h:115
cloudViewer::GeometricalAnalysisTools::Roughness
@ Roughness
Definition: GeometricalAnalysisTools.h:31
cloudViewer::KDTree::KdCell::cuttingCoordinate
PointCoordinateType cuttingCoordinate
Place where the space is cut into two sub-spaces (children)
Definition: CVKdTree.h:140
cloudViewer::utility::filesystem::EnsureDirectory
bool EnsureDirectory(const std::string &directory_path)
Check if a specified directory specified by directory_path exists. If not, recursively create the dir...
Definition: FileSystem.cpp:484
cloudViewer::utility::StringStartsWith
bool StringStartsWith(const std::string &str, const std::string &prefix)
Definition: Helper.cpp:158
cloudViewer::AutoSegmentationTools::labelConnectedComponents
static int labelConnectedComponents(GenericIndexedCloudPersist *theCloud, unsigned char level, bool sixConnexity=false, cloudViewer::GenericProgressCallback *progressCb=nullptr, cloudViewer::DgmOctree *inputOctree=nullptr)
Labels connected components from a point cloud.
Definition: AutoSegmentationTools.cpp:22
ComparisonZ
static bool ComparisonZ(const unsigned &a, const unsigned &b)
Compares Z coordinates of two points designated by their index.
Definition: CVKdTree.cpp:103
cloudViewer::ManualSegmentationTools::segment
static ReferenceCloud * segment(GenericIndexedCloudPersist *aCloud, const Polyline *poly, bool keepInside, const float *viewMat=nullptr)
Definition: ManualSegmentationTools.cpp:22
cloudViewer::Delaunay2dMesh::TesselateContour
static Delaunay2dMesh * TesselateContour(const std::vector< CCVector2 > &contourPoints)
Definition: Delaunay2dMesh.cpp:397
s_verbosityLevel
static int s_verbosityLevel
Definition: CVLog.cpp:47
rgb
normal_z rgb
Definition: my_point_types.h:168
Neighbourhood.h
cloudViewer::WeibullDistribution::setParameters
bool setParameters(ScalarType a, ScalarType b, ScalarType valueShift=0)
Sets the distribution parameters.
Definition: WeibullDistribution.cpp:112
cloudViewer::DgmOctree::ComputeMinDistanceToCellBorder
static PointCoordinateType ComputeMinDistanceToCellBorder(const CCVector3 &queryPoint, PointCoordinateType cs, const CCVector3 &cellCenter)
Definition: DgmOctree.h:1057
cloudViewer::KDTree::KdCell::startingPointIndex
unsigned startingPointIndex
Index of the first element that belongs to this cell.
Definition: CVKdTree.h:150
cloudViewer::core::AdvancedIndexPreprocessor::output_shape_
SizeVector output_shape_
Output shape.
Definition: AdvancedIndexing.h:97
cloudViewer::utility::SplitString
void SplitString(std::vector< std::string > &tokens, const std::string &str, const std::string &delimiters=" ", bool trim_empty_str=true)
Definition: Helper.cpp:197
CHI2_MAX
static double CHI2_MAX
Max computable Chi2 distance.
Definition: StatisticalTestingTools.cpp:26
Eigen.h
cloudViewer::GeometricalAnalysisTools::DetectSphereRobust
static ErrorCode DetectSphereRobust(GenericIndexedCloudPersist *cloud, double outliersRatio, CCVector3 &center, PointCoordinateType &radius, double &rms, GenericProgressCallback *progressCb=nullptr, double confidence=0.99, unsigned seed=0)
Tries to detect a sphere in a point cloud.
Definition: GeometricalAnalysisTools.cpp:769
cloudViewer::utility::filesystem::IsDirectory
bool IsDirectory(const std::string &directory)
Definition: FileSystem.cpp:454
cloudViewer::DgmOctree::ProgressiveCylindricalNeighbourhood::prevMaxCornerPos
Tuple3i prevMaxCornerPos
Previous search box (max corner)
Definition: DgmOctree.h:710
cloudViewer::CloudSamplingTools::SFModulationParams::enabled
bool enabled
Whether the modulation is enabled or not.
Definition: CloudSamplingTools.h:144
cloudViewer::GeometricalAnalysisTools::DENSITY_2D
@ DENSITY_2D
Definition: GeometricalAnalysisTools.h:39
cloudViewer::utility::filesystem::CFile::Close
void Close()
Close the file.
Definition: FileSystem.cpp:750
wrappers.h
cloudViewer::core::shape_util::BroadcastedShape
SizeVector BroadcastedShape(const SizeVector &l_shape, const SizeVector &r_shape)
Returns the broadcasted shape of two shapes.
Definition: ShapeUtil.cpp:56
MergeOldTriangles
bool MergeOldTriangles(GenericIndexedMesh *origMesh, GenericIndexedCloudPersist *origVertices, SimpleMesh *newMesh, PointCloud *newVertices, const std::vector< unsigned > &preservedTriangleIndexes, std::vector< unsigned > *origTriIndexesMap=nullptr)
Definition: ManualSegmentationTools.cpp:435
InsideOutsideIndexes::InsideOutsideIndexes
InsideOutsideIndexes(unsigned inside, unsigned outside)
Definition: ManualSegmentationTools.cpp:341
FileSystem.h
cloudViewer::TrueKdTree::m_maxPointCountPerCell
unsigned m_maxPointCountPerCell
Max number of points per cell (speed-up)
Definition: TrueKdTree.h:172
cloudViewer::GeometricalAnalysisTools::ComputeCrossCovarianceMatrix
static SquareMatrixd ComputeCrossCovarianceMatrix(GenericCloud *P, GenericCloud *Q, const CCVector3 &pGravityCenter, const CCVector3 &qGravityCenter)
Computes the cross covariance matrix between two clouds (same size)
Definition: GeometricalAnalysisTools.cpp:611
octreeLevel
unsigned char octreeLevel
Definition: qCanupoTools.cpp:38
cloudViewer::HornRegistrationTools::FindAbsoluteOrientation
static bool FindAbsoluteOrientation(GenericCloud *lCloud, GenericCloud *rCloud, ScaledTransformation &trans, bool fixedScale=false)
Definition: RegistrationTools.cpp:816
Vector3Tpl::normalize
void normalize()
Sets vector norm to unity.
Definition: CVGeom.h:428
cloudViewer::BoundingBoxTpl::add
void add(const Vector3Tpl< T > &P)
'Enlarges' the bounding box with a point
Definition: BoundingBox.h:131
AXISTEST_Z12
#define AXISTEST_Z12(a, b, fa, fb)
Definition: CVMiscTools.cpp:71
cloudViewer::WeibullDistribution::getParameters
bool getParameters(ScalarType &a, ScalarType &b) const
Returns the distribution parameters.
Definition: WeibullDistribution.cpp:97
cloudViewer::DgmOctreeReferenceCloud::size
unsigned size() const override
Returns the number of points.
Definition: DgmOctreeReferenceCloud.h:28
cloudViewer::ICPRegistrationTools::Parameters::adjustScale
bool adjustScale
Definition: RegistrationTools.h:181
cloudViewer::ManualSegmentationTools::MeshCutterParams
Input/output parameters for the segmentMeshWithAAPlane method.
Definition: ManualSegmentationTools.h:121
cloudViewer::ICPRegistrationTools::MAX_ITER_CONVERGENCE
@ MAX_ITER_CONVERGENCE
Definition: RegistrationTools.h:127
cloudViewer::NormalizedProgress::oneStep
bool oneStep()
Increments total progress value of a single unit.
Definition: NormalizedProgress.cpp:99
cloudViewer::OctreeAndMeshIntersection::maxFillIndexes
Tuple3i maxFillIndexes
Grid occupancy of mesh (maximum indexes for each dimension)
Definition: DistanceComputationTools.cpp:71
cloudViewer::core::make_pair
CLOUDVIEWER_HOST_DEVICE Pair< First, Second > make_pair(const First &_first, const Second &_second)
Definition: SlabTraits.h:49
cloudViewer::utility::filesystem::DirectoryIsEmpty
bool DirectoryIsEmpty(const std::string &directory)
Definition: FileSystem.cpp:477
cloudViewer::NormalDistribution::getSigma2
ScalarType getSigma2() const
Returns the distribution variance.
Definition: NormalDistribution.h:59
cloudViewer::DgmOctree::getCellCode
const CellCode & getCellCode(unsigned index) const
Returns the ith cell code.
Definition: DgmOctree.h:963
cloudViewer::DgmOctree::computeCellCenter
void computeCellCenter(CellCode code, unsigned char level, CCVector3 &center, bool isCodeTruncated=false) const
Definition: DgmOctree.h:862
HullPointFlags
HullPointFlags
Definition: PointProjectionTools.cpp:480
cloudViewer::utility::filesystem::JoinPath
std::string JoinPath(const std::vector< std::string > &path_components)
Definition: FileSystem.cpp:58
cloudViewer::Grid3D< unsigned short >::m_sliceSize
int64_t m_sliceSize
2D slice size (with margin)
Definition: Grid3D.h:553
cloudViewer::PointProjectionTools::extractConvexHull2D
static bool extractConvexHull2D(std::vector< IndexedCCVector2 > &points, std::list< IndexedCCVector2 * > &hullPoints)
Determines the convex hull of a set of points.
Definition: PointProjectionTools.cpp:355
x
normal_z x
Definition: my_point_types.h:165
cloudViewer::DgmOctree::GET_BIT_SHIFT
static unsigned char GET_BIT_SHIFT(unsigned char level)
Returns the binary shift for a given level of subdivision.
Definition: DgmOctree.cpp:113
cloudViewer::DistanceComputationTools::ComputeSquareDistToSegment
static PointCoordinateType ComputeSquareDistToSegment(const CCVector2 &P, const CCVector2 &A, const CCVector2 &B, bool onlyOrthogonal=false)
Returns the (squared) distance from a point to a segment.
Definition: DistanceComputationTools.cpp:3897
DgmOctreeReferenceCloud.h
AdvancedIndexing.h
cloudViewer::SquareMatrixTpl::isValid
bool isValid() const
Returns matrix validity.
Definition: SquareMatrix.h:138
cloudViewer::BoundingBoxTpl::getCenter
Vector3Tpl< T > getCenter() const
Returns center.
Definition: BoundingBox.h:164
cloudViewer::DistanceComputationTools::Cloud2MeshDistancesComputationParams::useDistanceMap
bool useDistanceMap
Use distance map (acceleration)
Definition: DistanceComputationTools.h:171
cloudViewer::DgmOctree::CylindricalNeighbourhood::center
CCVector3 center
Cylinder center.
Definition: DgmOctree.h:660
cloudViewer::TrueKdTree::BaseNode::isNode
bool isNode() const
Definition: TrueKdTree.h:38
cloudViewer::RegistrationTools::SKIP_RYZ
@ SKIP_RYZ
Definition: RegistrationTools.h:32
cloudViewer::MeshSamplingTools::EdgeConnectivityStats::edgesSharedByMore
unsigned edgesSharedByMore
Edges shared by more than two triangles.
Definition: MeshSamplingTools.h:57
CVLog::LOG_ERROR
@ LOG_ERROR
Definition: CVLog.h:47
cloudViewer::KDTree::pointToCellSquareDistance
ScalarType pointToCellSquareDistance(const PointCoordinateType *queryPoint, KdCell *cell)
Computes the distance between a point and a cell inside bounding box.
Definition: CVKdTree.cpp:419
cloudViewer::PointProjectionTools::Transformation::apply
CCVector3d apply(const CCVector3d &P) const
Applies the transformation to a point.
Definition: PointProjectionTools.h:52
cloudViewer::core::Tensor::GetShape
SizeVector GetShape() const
Definition: Tensor.h:1127
cloudViewer::Neighbourhood::IGNORE_MAX_EDGE_LENGTH
static constexpr int IGNORE_MAX_EDGE_LENGTH
Definition: Neighbourhood.h:27
cloudViewer::Delaunay2dMesh::Delaunay2dMesh
Delaunay2dMesh()
Delaunay2dMesh constructor.
Definition: Delaunay2dMesh.cpp:30
Tuple3Tpl::x
Type x
Definition: CVGeom.h:137
cloudViewer::FastMarching::resetCells
void resetCells(std::vector< unsigned > &list)
Resets the state of cells in a given list.
Definition: FastMarching.cpp:132
cloudViewer::RegistrationTools::SKIP_RXZ
@ SKIP_RXZ
Definition: RegistrationTools.h:33
cloudViewer::SquareMatrixTpl::size
unsigned size() const
Returns matrix size.
Definition: SquareMatrix.h:133
CV_LOCAL_MODEL_TYPES
CV_LOCAL_MODEL_TYPES
Definition: CVConst.h:121
CloudSamplingTools.h
cloudViewer::KDTree
Definition: CVKdTree.h:20
cloudViewer::GenericDistribution
A generic class to handle a probability distribution.
Definition: GenericDistribution.h:25
cloudViewer::DistanceComputationTools::Cloud2CloudDistancesComputationParams::CPSet
ReferenceCloud * CPSet
Container of (references to) points to store the "Closest Point Set".
Definition: DistanceComputationTools.h:91
cloudViewer::ReferenceCloud::size
unsigned size() const override
Returns the number of points.
Definition: ReferenceCloud.h:41
cloudViewer::DgmOctreeReferenceCloud::m_set
DgmOctree::NeighboursSet * m_set
Associated PointDescriptor set.
Definition: DgmOctreeReferenceCloud.h:92
cloudViewer::DgmOctree::CylindricalNeighbourhood::radius
PointCoordinateType radius
Cylinder radius.
Definition: DgmOctree.h:664
cloudViewer::FPCSRegistrationTools::ComputeRegistrationScore
static unsigned ComputeRegistrationScore(KDTree *modelTree, GenericIndexedCloud *dataCloud, ScalarType delta, const ScaledTransformation &dataToModel)
Registration score computation function.
Definition: RegistrationTools.cpp:1284
cloudViewer::FastMarching::instantiateGrid
virtual bool instantiateGrid(unsigned size)=0
Instantiates grid in memory.
cloudViewer::GenericMesh::size
virtual unsigned size() const =0
Returns the number of triangles.
ModelCloud::ModelCloud
ModelCloud(const ModelCloud &m)
Definition: RegistrationTools.cpp:125
cloudViewer::VerticesIndexes::i2
unsigned i2
Definition: GenericIndexedMesh.h:19
cloudViewer::GenericCloud::size
virtual unsigned size() const =0
Returns the number of points.
cloudViewer::GenericIndexedCloud::normalsAvailable
virtual bool normalsAvailable() const
Returns whether normals are available.
Definition: GenericIndexedCloud.h:53
cloudViewer::DgmOctree::getCellDistanceFromBorders
void getCellDistanceFromBorders(const Tuple3i &cellPos, unsigned char level, int *cellDists) const
Definition: DgmOctree.cpp:781
cloudViewer::ScalarField::computeMinAndMax
virtual void computeMinAndMax()
Determines the min and max values.
Definition: ScalarField.h:123
cloudViewer::utility::filesystem::ListDirectory
bool ListDirectory(const std::string &directory, std::vector< std::string > &subdirs, std::vector< std::string > &filenames)
Definition: FileSystem.cpp:532
cloudViewer::Delaunay2dMesh::linkMeshWith
virtual void linkMeshWith(GenericIndexedCloud *aCloud, bool passOwnership=false)
Associate this mesh to a point cloud.
Definition: Delaunay2dMesh.cpp:52
cloudViewer::FastMarching::m_dy
unsigned m_dy
Grid size along the Y dimension.
Definition: FastMarching.h:223
cloudViewer::utility::StringToJson
Json::Value StringToJson(const std::string &json_str)
Parse string and conver to Json::value. Throws exception if the conversion is invalid.
Definition: IJsonConvertible.cpp:21
cloudViewer::utility::filesystem::JoinPaths
std::string JoinPaths(T const &...paths)
Definition: FileSystem.h:23
cloudViewer::DistanceComputationTools::ComputeCloud2PlaneMaxDistance
static ScalarType ComputeCloud2PlaneMaxDistance(GenericCloud *cloud, const PointCoordinateType *planeEquation)
Computes the maximum distance between a point cloud and a plane.
Definition: DistanceComputationTools.cpp:3620
cloudViewer::FastMarching::m_dx
unsigned m_dx
Grid size along the X dimension.
Definition: FastMarching.h:221
cloudViewer::FastMarching::m_indexShift
unsigned m_indexShift
First index of innerbound grid.
Definition: FastMarching.h:231
cloudViewer::SimpleMesh::resize
virtual bool resize(unsigned n)
Resizes the mesh database.
Definition: SimpleMesh.cpp:118
LSLocalModel
Least Squares Best Fitting Plane "local modelization".
Definition: LocalModel.cpp:19
cloudViewer::Universe::allelems
int allelems
Definition: Universe.h:40
LexicographicSort
bool LexicographicSort(const CCVector2 &a, const CCVector2 &b)
Definition: PointProjectionTools.cpp:351
CV_LOCAL_MODEL_MIN_SIZE
constexpr unsigned CV_LOCAL_MODEL_MIN_SIZE[]
Min number of points to compute local models (see CV_LOCAL_MODEL_TYPES)
Definition: CVConst.h:129
FINDMINMAX
#define FINDMINMAX(x0, x1, x2, minV, maxV)
Definition: CVMiscTools.cpp:31
cloudViewer::GenericMesh::genericTriangleAction
std::function< void(GenericTriangle &)> genericTriangleAction
Generic function to apply to a triangle (used by foreach)
Definition: GenericMesh.h:53
offset
int offset
Definition: FileIOFactory.cpp:135
cloudViewer::utility::FPSTimer::FPSTimer
FPSTimer(const std::string &fps_timer_info="", int expectation=-1, double time_to_print=3000.0, int events_to_print=100)
Definition: Timer.cpp:67
cloudViewer::system::MemoryInfo::totalRam
std::size_t totalRam
Definition: MemoryInfo.h:20
Vector3Tpl::norm
Type norm() const
Returns vector norm.
Definition: CVGeom.h:424
ScalarFieldView::get_item
py::object get_item(const py::object &index)
Definition: ScalarField.cpp:37
cloudViewer::WeibullDistribution::m_sigma2
ScalarType m_sigma2
Normal distribution equivalent parameter: variance.
Definition: WeibullDistribution.h:103
cloudViewer::utility::GetCPUModelName
static std::string GetCPUModelName()
Returns the CPU model name/brand string.
Definition: CPUInfo.cpp:115
copy
bool copy
Definition: VtkUtils.cpp:74
cloudViewer::VerticesIndexes
Triangle described by the indexes of its 3 vertices.
Definition: GenericIndexedMesh.h:16
cloudViewer::utility::filesystem::GetWorkingDirectory
std::string GetWorkingDirectory()
Definition: FileSystem.cpp:333
cloudViewer::DgmOctreeReferenceCloud::DgmOctreeReferenceCloud
DgmOctreeReferenceCloud(DgmOctree::NeighboursSet *associatedSet, unsigned count=0)
Default constructor.
Definition: DgmOctreeReferenceCloud.cpp:12
QuadricLocalModel::m_gravityCenter
CCVector3 m_gravityCenter
Model gravity center.
Definition: LocalModel.cpp:158
CVPlatform.h
cloudViewer::core::AdvancedIndexPreprocessor::GetTensor
Tensor GetTensor() const
Definition: AdvancedIndexing.h:29
Utils::character
QString character(int index)
Definition: utils.cpp:19
cloudViewer::TrueKdTree::clear
void clear()
Clears structure.
Definition: TrueKdTree.cpp:29
cloudViewer::SimpleTriangle::A
CCVector3 A
A vertex.
Definition: SimpleTriangle.h:73
Pi
const float Pi
Definition: utils.cpp:15
CVLog
Main log interface.
Definition: CVLog.h:25
NULL
#define NULL
Definition: UVUnwrapping.cpp:40
normal
double normal[3]
Definition: FileIOFactory.cpp:53
CVTools::Wchar2Char
static std::string Wchar2Char(const wchar_t *szStr)
Definition: CVTools.cpp:175
cloudViewer::utility::RightStripString
std::string & RightStripString(std::string &str, const std::string &chars="\t\n\v\f\r ")
Definition: Helper.cpp:233
cloudViewer::Grid3D< unsigned short >::m_rowSize
int64_t m_rowSize
1D row size (with margin)
Definition: Grid3D.h:551
cloudViewer::utility::filesystem::GetFileExtensionInLowerCase
std::string GetFileExtensionInLowerCase(const std::string &filename)
Definition: FileSystem.cpp:281
cloudViewer::ScalarFieldTools::computeScalarFieldExtremas
static void computeScalarFieldExtremas(const GenericCloud *theCloud, ScalarType &minV, ScalarType &maxV)
Compute the extreme values of a scalar field.
Definition: ScalarFieldTools.cpp:419
cloudViewer::core::AdvancedIndexPreprocessor::indexed_strides_
SizeVector indexed_strides_
Definition: AdvancedIndexing.h:105
cloudViewer::Delaunay2dMesh::Available
static bool Available()
Returns whether 2D Delaunay triangulation is supported or not.
Definition: Delaunay2dMesh.cpp:44
cloudViewer::ScalarField::getValue
ScalarType & getValue(std::size_t index)
Definition: ScalarField.h:92
cloudViewer::DistanceComputationTools::Cloud2CloudDistancesComputationParams::resetFormerDistances
bool resetFormerDistances
Whether to keep the existing distances as is (if any) or not.
Definition: DistanceComputationTools.h:100
cloudViewer::TrueKdTree::Node
Tree node.
Definition: TrueKdTree.h:53
cloudViewer::Delaunay2dMesh::buildMesh
virtual bool buildMesh(const std::vector< CCVector2 > &points2D, std::size_t pointCountToUse, std::string &outputErrorStr)
Build the Delaunay mesh on top a set of 2D points.
Definition: Delaunay2dMesh.cpp:133
FastMarching.h
CVTools::QMappingReader
static bool QMappingReader(const std::string &filename, std::vector< size_t > &indices)
Definition: CVTools.cpp:280
format
filament::Texture::InternalFormat format
Definition: FilamentResourceManager.cpp:181
cloudViewer::TrueKdTree::getLeaves
bool getLeaves(LeafVector &leaves) const
Returns all leaf nodes.
Definition: TrueKdTree.cpp:321
cloudViewer::TrueKdTree::m_errorMeasure
DistanceComputationTools::ERROR_MEASURES m_errorMeasure
Error measurement.
Definition: TrueKdTree.h:162
CVLog::LOG_VERBOSE
@ LOG_VERBOSE
Definition: CVLog.h:43
cloudViewer::Neighbourhood::EigenEntropy
@ EigenEntropy
Definition: Neighbourhood.h:164
cloudViewer::OrientedBoundingBox::R_
Eigen::Matrix3d R_
Definition: OrientedBoundingBox.h:113
data
GraphType data
Definition: graph_cut.cc:138
cloudViewer::DgmOctree::NearestNeighboursSearchStruct::cellPos
Tuple3i cellPos
Position in the octree of the cell including the query point.
Definition: DgmOctree.h:184
cloudViewer::WeibullDistribution::getValueShift
ScalarType getValueShift() const
Returns the distribution value shift.
Definition: WeibullDistribution.h:65
Ray::squareDistances
void squareDistances(const Vector3Tpl< T > &P, double &radial, double &toOrigin) const
Definition: RayAndBox.h:35
cloudViewer::PointProjectionTools::IndexedCCVector2::index
unsigned index
Point index.
Definition: PointProjectionTools.h:177
cloudViewer::ManualSegmentationTools::MeshCutterParams::bbMax
CCVector3d bbMax
Definition: ManualSegmentationTools.h:130
cloudViewer::SaitoSquaredDistanceTransform::initGrid
bool initGrid(const Tuple3ui &gridSize)
Initializes the grid.
Definition: SaitoSquaredDistanceTransform.h:35
cloudViewer::Neighbourhood::triangulateOnPlane
GenericIndexedMesh * triangulateOnPlane(bool duplicateVertices, PointCoordinateType maxEdgeLength, std::string &outputErrorStr)
Applies 2D Delaunay triangulation.
Definition: Neighbourhood.cpp:620
cloudViewer::StatisticalTestingTools::computeAdaptativeChi2Dist
static double computeAdaptativeChi2Dist(const GenericDistribution *distrib, const GenericCloud *cloud, unsigned numberOfClasses, unsigned &finalNumberOfClasses, bool noClassCompression=false, ScalarType *histoMin=nullptr, ScalarType *histoMax=nullptr, unsigned *histoValues=nullptr, double *npis=nullptr)
Computes the Chi2 distance on a sample of scalar values.
Definition: StatisticalTestingTools.cpp:43
Ray
Simple Ray structure.
Definition: RayAndBox.h:14
cloudViewer::KDTree::m_cellCount
unsigned m_cellCount
Number of cells.
Definition: CVKdTree.h:175
cloudViewer::system::get_total_cpus
int get_total_cpus()
Returns the total number of CPUs.
Definition: Cpu.cpp:162
cloudViewer::FPCSRegistrationTools::Base::d
unsigned d
Definition: RegistrationTools.h:278
c_defaultArrayGrowth
const unsigned c_defaultArrayGrowth
Definition: ManualSegmentationTools.cpp:337
CVLog::PrintHigh
static bool PrintHigh(const char *format,...)
Prints out an important formatted message in console.
Definition: CVLog.cpp:123
cloudViewer::core::AdvancedIndexer::indexed_shape_
int64_t indexed_shape_[MAX_DIMS]
Definition: AdvancedIndexing.h:205
cloudViewer::GeometricalAnalysisTools::DENSITY_3D
@ DENSITY_3D
Definition: GeometricalAnalysisTools.h:42
cloudViewer::ReferenceCloud::removePointGlobalIndex
virtual void removePointGlobalIndex(unsigned localIndex)
Removes a given element.
Definition: ReferenceCloud.cpp:146
cloudViewer::CCMiscTools::MakeMinAndMaxCubical
static void MakeMinAndMaxCubical(CCVector3 &dimMin, CCVector3 &dimMax, double enlargeFactor=0.01)
Transforms a 3D box into a 3D cube.
Definition: CVMiscTools.cpp:88
cloudViewer::core::MAX_DIMS
static constexpr int64_t MAX_DIMS
Definition: Indexer.h:38
CVConst.h
cloudViewer::core::Tensor::Reshape
Tensor Reshape(const SizeVector &dst_shape) const
Definition: Tensor.cpp:671
Garbage.h
cloudViewer::system::MemoryInfo::freeRam
std::size_t freeRam
Definition: MemoryInfo.h:21
cloudViewer::DgmOctree::NearestNeighboursSearchStruct::level
unsigned char level
Level of subdivision of the octree at which to start the search.
Definition: DgmOctree.h:171
cloudViewer::DgmOctree::pointsAndTheirCellCodes
const cellsContainer & pointsAndTheirCellCodes() const
Returns the octree 'structure'.
Definition: DgmOctree.h:1196
cloudViewer::getArrayLengthFromFile
int getArrayLengthFromFile(std::string fileName)
Definition: StaticVector.cpp:14
define_CloudSamplingTools
void define_CloudSamplingTools(py::module &cccorelib)
Definition: CloudSamplingTools.cpp:21
cloudViewer::core::AdvancedIndexPreprocessor::IsIndexSplittedBySlice
static bool IsIndexSplittedBySlice(const std::vector< Tensor > &index_tensors)
Definition: AdvancedIndexing.cpp:17
CellToTest
Definition: DistanceComputationTools.cpp:727
cloudViewer::DgmOctree::NearestNeighboursSearchStruct::alreadyVisitedNeighbourhoodSize
int alreadyVisitedNeighbourhoodSize
Definition: DgmOctree.h:225
Edge
Weighted graph edge.
Definition: PointProjectionTools.cpp:491
cloudViewer::uni_elt::rank
int rank
Definition: Universe.h:16
IndexAndCodeExt::IndexType
unsigned IndexType
Definition: DgmOctree.cpp:3070
cloudViewer::TrueKdTree::Node::splitDim
uint8_t splitDim
Definition: TrueKdTree.h:60
InsideOutsideIndexes::InsideOutsideIndexes
InsideOutsideIndexes()
Definition: ManualSegmentationTools.cpp:340
CVKdTree.h
cloudViewer::DgmOctree::getCellCodes
bool getCellCodes(unsigned char level, cellCodesContainer &vec, bool truncatedCodes=false) const
Definition: DgmOctree.cpp:2822
cloudViewer::HornRegistrationTools::ComputeRMS
static double ComputeRMS(GenericCloud *lCloud, GenericCloud *rCloud, const ScaledTransformation &trans)
Computes RMS between two clouds given a transformation and a scale.
Definition: RegistrationTools.cpp:824
c_origIndexFlag
const unsigned c_origIndexFlag
Definition: ManualSegmentationTools.cpp:332
cloudViewer::SimpleMesh::getNextTriangleVertIndexes
VerticesIndexes * getNextTriangleVertIndexes() override
Definition: SimpleMesh.cpp:184
cloudViewer::DgmOctreeReferenceCloud::getPoint
const CCVector3 * getPoint(unsigned index) const override
Returns the ith point.
Definition: DgmOctreeReferenceCloud.h:54
CVLog::PrintVerbose
static bool PrintVerbose(const char *format,...)
Prints out a verbose formatted message in console.
Definition: CVLog.cpp:103
cloudViewer::KDTree::KdCell::nbPoints
unsigned nbPoints
Number of elements in this cell.
Definition: CVKdTree.h:152
cloudViewer::FastMarching::initOther
virtual int initOther()
Definition: FastMarching.cpp:99
cloudViewer::utility::filesystem::MakeDirectoryHierarchy
bool MakeDirectoryHierarchy(const std::string &directory)
Definition: FileSystem.cpp:499
cloudViewer::DistanceComputationTools::computePoint2LineSegmentDistSquared
static ScalarType computePoint2LineSegmentDistSquared(const CCVector3 *point, const CCVector3 *start, const CCVector3 *end)
Computes the square of the distance between a point and a line segment.
Definition: DistanceComputationTools.cpp:2870
nProgress
cloudViewer::NormalizedProgress * nProgress
Definition: qCanupoTools.cpp:42
cloudViewer::SquareMatrixTpl
Square matrix.
Definition: SquareMatrix.h:25
position
math::float3 position
Definition: LineSetBuffers.cpp:44
define_LocalModel
void define_LocalModel(py::module &cccorelib)
Definition: LocalModel.cpp:15
cloudViewer::DistanceComputationTools::synchronizeOctrees
static SOReturnCode synchronizeOctrees(GenericIndexedCloudPersist *comparedCloud, GenericIndexedCloudPersist *referenceCloud, DgmOctree *&comparedOctree, DgmOctree *&referenceOctree, PointCoordinateType maxSearchDist=0, GenericProgressCallback *progressCb=nullptr)
Synchronizes (and re-build if necessary) two octrees.
Definition: DistanceComputationTools.cpp:242
cloudViewer::DistanceComputationTools::Cloud2MeshDistancesComputationParams::multiThread
bool multiThread
Definition: DistanceComputationTools.h:186
cloudViewer::core::AdvancedIndexer::indexer_
Indexer indexer_
Definition: AdvancedIndexing.h:201
cloudViewer::Neighbourhood::SurfaceVariation
@ SurfaceVariation
Definition: Neighbourhood.h:170
cloudViewer::Neighbourhood::DO_NOT_DUPLICATE_VERTICES
static constexpr bool DO_NOT_DUPLICATE_VERTICES
Definition: Neighbourhood.h:30
cloudViewer::utility::JoinStrings
std::string JoinStrings(const std::vector< std::string > &strs, const std::string &delimiter=", ")
Definition: Helper.cpp:168
CVLog::SetVerbosityLevel
static void SetVerbosityLevel(int level)
Sets the verbosity level.
Definition: CVLog.cpp:59
cloudViewer::DgmOctree::ProgressiveCylindricalNeighbourhood::potentialCandidates
NeighboursSet potentialCandidates
Vector to store potential candidates for the next pass.
Definition: DgmOctree.h:706
cloudViewer::DgmOctree::getPointsInCellsWithSortedCellCodes
ReferenceCloud * getPointsInCellsWithSortedCellCodes(cellCodesContainer &cellCodes, unsigned char level, ReferenceCloud *subset, bool areCodesTruncated=false) const
Returns the points lying in multiple cells.
Definition: DgmOctree.cpp:2909
cloudViewer::utility::ColorToUint8
Eigen::Vector3uint8 ColorToUint8(const Eigen::Vector3d &color)
Definition: Eigen.cpp:269
cloudViewer::DistanceComputationTools::Cloud2CloudDistancesComputationParams::octreeLevel
unsigned char octreeLevel
Definition: DistanceComputationTools.h:40
cloudViewer::BoundingBoxTpl::setValidity
void setValidity(bool state)
Sets bonding box validity.
Definition: BoundingBox.h:200
QuadricLocalModel
Quadric "local modelization".
Definition: LocalModel.cpp:106
cloudViewer::NormalDistribution::computePfromZero
double computePfromZero(ScalarType x) const override
Computes the cumulative probability between 0 and x.
Definition: NormalDistribution.cpp:76
cloudViewer::FastMarching::m_cellSize
float m_cellSize
Octree cell size at equivalent subdivision level.
Definition: FastMarching.h:242
cloudViewer::FastMarching::~FastMarching
virtual ~FastMarching()
Destructor.
Definition: FastMarching.cpp:36
cloudViewer::core::DtypePolicy::NONE
@ NONE
cloudViewer::core::Dtype::ByteSize
int64_t ByteSize() const
Definition: Dtype.h:59
cloudViewer::DgmOctree::IndexAndCode::codeComp
static bool codeComp(const IndexAndCode &a, const IndexAndCode &b)
Compares two IndexAndCode instances based on their code.
Definition: DgmOctree.h:333
cloudViewer::DgmOctree::getPointsInCylindricalNeighbourhoodProgressive
std::size_t getPointsInCylindricalNeighbourhoodProgressive(ProgressiveCylindricalNeighbourhood &params) const
Same as getPointsInCylindricalNeighbourhood with progressive approach.
Definition: DgmOctree.cpp:2264
IndexPair
std::pair< unsigned, unsigned > IndexPair
Definition: RegistrationTools.cpp:1428
cloudViewer::DistanceComputationTools::computeCloud2BoxEquation
static int computeCloud2BoxEquation(GenericIndexedCloudPersist *cloud, const CCVector3 &boxDimensions, const SquareMatrix &rotationTransform, const CCVector3 &boxCenter, bool signedDist=true, double *rms=nullptr)
Definition: DistanceComputationTools.cpp:3316
cloudViewer::NormalDistribution::computeRobustParameters
bool computeRobustParameters(const ScalarContainer &values, double nSigma)
Definition: NormalDistribution.cpp:135
cloudViewer::ReferenceCloud::swap
virtual void swap(unsigned i, unsigned j)
Swaps two point references.
Definition: ReferenceCloud.h:185
cloudViewer::ReferenceCloud::m_theAssociatedCloud
GenericIndexedCloudPersist * m_theAssociatedCloud
Associated cloud.
Definition: ReferenceCloud.h:247
cloudViewer::ScalarFieldTools::computeMeanGradientOnPatch
static bool computeMeanGradientOnPatch(const DgmOctree::octreeCell &cell, void **additionalParameters, NormalizedProgress *nProgress=nullptr)
Definition: ScalarFieldTools.cpp:113
cloudViewer::GeometricalAnalysisTools::ProcessCancelledByUser
@ ProcessCancelledByUser
Definition: GeometricalAnalysisTools.h:54
cloudViewer::DgmOctree::CylindricalNeighbourhood::level
unsigned char level
subdivision level at which to apply the extraction process
Definition: DgmOctree.h:670
Eigen::Matrix6d
Eigen::Matrix< double, 6, 6 > Matrix6d
Extending Eigen namespace by adding frequently used matrix type.
Definition: Eigen.h:106
cloudViewer::LocalModel
Local modelization (generic interface)
Definition: LocalModel.h:17
Delaunay2dMesh.h
cloudViewer::FPCSRegistrationTools::FilterCandidates
static bool FilterCandidates(GenericIndexedCloud *modelCloud, GenericIndexedCloud *dataCloud, Base &reference, std::vector< Base > &candidates, unsigned nbMaxCandidates, std::vector< ScaledTransformation > &transforms)
Definition: RegistrationTools.cpp:1633
TrueKdTree.h
cloudViewer::NormalDistribution::setParameters
bool setParameters(ScalarType _mu, ScalarType _sigma2)
Sets the distribution parameters.
Definition: NormalDistribution.cpp:43
cloudViewer::CloudSamplingTools::UniformDownSample
static ReferenceCloud * UniformDownSample(GenericIndexedCloudPersist *cloud, unsigned every_k_points)
Definition: CloudSamplingTools.cpp:171
cloudViewer::DgmOctree::CellDescriptor
Structure used during nearest neighbour search.
Definition: DgmOctree.h:136
cloudViewer::CloudSamplingTools::SFModulationParams
Parameters for the scalar-field based modulation of a parameter.
Definition: CloudSamplingTools.h:138
CVLog::Print
static bool Print(const char *format,...)
Prints out a formatted message in console.
Definition: CVLog.cpp:113
POINT_USED
@ POINT_USED
Definition: PointProjectionTools.cpp:482
cloudViewer::Delaunay2dMesh::placeIteratorAtBeginning
void placeIteratorAtBeginning() override
Places the mesh iterator at the beginning.
Definition: Delaunay2dMesh.cpp:320
cloudViewer::SquareMatrixTpl::trace
Scalar trace() const
Returns trace.
Definition: SquareMatrix.h:465
CVLog::LogMessage
static void LogMessage(const QString &message, int level)
Static shortcut to CVLog::logMessage.
Definition: CVLog.cpp:64
MonoDimensionalCellCodes
Definition: DgmOctree.cpp:65
cloudViewer::SaitoSquaredDistanceTransform::propagateDistance
bool propagateDistance(GenericProgressCallback *progressCb=nullptr)
Computes the exact Squared Distance Transform on the whole grid.
Definition: SaitoSquaredDistanceTransform.h:73
InitProgress
static void InitProgress(GenericProgressCallback *progressCb, unsigned totalCount)
Definition: TrueKdTree.cpp:44
cloudViewer::KDTree::m_indexes
std::vector< unsigned > m_indexes
Point indexes.
Definition: CVKdTree.h:171
cloudViewer::SimpleMesh::getTriangleVertIndexes
VerticesIndexes * getTriangleVertIndexes(unsigned triangleIndex) override
Returns the indexes of the vertices of a given triangle.
Definition: SimpleMesh.cpp:180
applySqrtToPointDist
void applySqrtToPointDist(const CCVector3 &aPoint, ScalarType &aScalarValue)
Definition: DistanceComputationTools.cpp:1879
cloudViewer::ChamferDistanceTransform::MAX_DIST
static const unsigned short MAX_DIST
Max possible 'distance'.
Definition: ChamferDistanceTransform.h:30
CVShareable.h
cloudViewer::GenericCloud
Definition: GenericCloud.h:20
CVLog::LOG_STANDARD
@ LOG_STANDARD
Definition: CVLog.h:44
cloudViewer::utility::StringReplaceLast
std::string StringReplaceLast(const std::string &str, const std::string &old_str, const std::string &new_str)
Definition: Helper.cpp:144
cloudViewer::PointCloudTpl::getPoint
const CCVector3 * getPoint(unsigned index) const override
Definition: PointCloudTpl.h:143
cloudViewer::GeometricalAnalysisTools::DENSITY_KNN
@ DENSITY_KNN
Definition: GeometricalAnalysisTools.h:37
cloudViewer::Neighbourhood::m_lsPlaneEquation
PointCoordinateType m_lsPlaneEquation[4]
Least-square best fitting plane parameters.
Definition: Neighbourhood.h:296
MonoDimensionalCellCodes::MonoDimensionalCellCodes
MonoDimensionalCellCodes()
Default initialization.
Definition: DgmOctree.cpp:73
cloudViewer::NormalDistribution::getMu
ScalarType getMu() const
Returns the distribution mean.
Definition: NormalDistribution.h:56
cloudViewer::ScalarField::ScalarField
ScalarField(const char *name=nullptr)
Default constructor.
Definition: ScalarField.cpp:16
cloudViewer::RegistrationTools::SKIP_TY
@ SKIP_TY
Definition: RegistrationTools.h:36
cloudViewer::TrueKdTree::LeafVector
std::vector< Leaf * > LeafVector
A vector of leaves.
Definition: TrueKdTree.h:105
Vector3Tpl::toPC
Vector3Tpl< PointCoordinateType > toPC() const
Definition: CVGeom.h:263
one_sqrtpi
static const double one_sqrtpi
Definition: ErrorFunction.cpp:47
AutoSegmentationTools.h
GenericProgressCallback.h
cloudViewer::DgmOctree::cellIndexesContainer
std::vector< unsigned int > cellIndexesContainer
Octree cell indexes container.
Definition: DgmOctree.h:95
ForwardNeighbours111
const signed char ForwardNeighbours111[14 *4]
Forward mask shifts and weights (Chamfer 1-1-1)
Definition: ChamferDistanceTransform.cpp:30
cloudViewer::GeometricalAnalysisTools::Feature
@ Feature
Definition: GeometricalAnalysisTools.h:25
cloudViewer::utility::ScopeTimer::~ScopeTimer
~ScopeTimer()
Definition: Timer.cpp:62
cloudViewer::SimpleMesh::dummyTriangle
SimpleTriangle dummyTriangle
Dump triangle structure to transmit temporary data.
Definition: SimpleMesh.h:109
cloudViewer::GeometricalAnalysisTools::Density
Density
Density measurement.
Definition: GeometricalAnalysisTools.h:36
cloudViewer::StatisticalTestingTools::computeLocalChi2DistAtLevel
static bool computeLocalChi2DistAtLevel(const DgmOctree::octreeCell &cell, void **additionalParameters, NormalizedProgress *nProgress=nullptr)
Computes (locally) the Chi2 distance inside an octree cell.
Definition: StatisticalTestingTools.cpp:337
s_edgePoint
static std::map< uint64_t, InsideOutsideIndexes > s_edgePoint
Definition: ManualSegmentationTools.cpp:346
InsideOutsideIndexes::outsideIndex
unsigned outsideIndex
Definition: ManualSegmentationTools.cpp:344
cloudViewer::ReferenceCloud::getPoint
const CCVector3 * getPoint(unsigned index) const override
Returns the ith point.
Definition: ReferenceCloud.h:79
ScalarField.h
cloudViewer::ManualSegmentationTools::MeshCutterParams::generateOutsideMesh
bool generateOutsideMesh
Definition: ManualSegmentationTools.h:124
cloudViewer::SimpleMesh::forEach
void forEach(genericTriangleAction action) override
Fast iteration mechanism.
Definition: SimpleMesh.cpp:32
define_TrueKdTree
void define_TrueKdTree(py::module &cccorelib)
Definition: TrueKdTree.cpp:22
ComparePointsAndTriangles
bool ComparePointsAndTriangles(ReferenceCloud &Yk, unsigned &remainingPoints, cloudViewer::GenericIndexedMesh *mesh, std::vector< unsigned > &trianglesToTest, std::size_t &trianglesToTestCount, std::vector< ScalarType > &minDists, ScalarType maxRadius, cloudViewer::DistanceComputationTools::Cloud2MeshDistancesComputationParams &params)
Method used by computeCloud2MeshDistanceWithOctree.
Definition: DistanceComputationTools.cpp:1030
cloudViewer::GeometricalAnalysisTools::OctreeComputationFailed
@ OctreeComputationFailed
Definition: GeometricalAnalysisTools.h:50
cloudViewer::WeibullDistribution::computeParameters
bool computeParameters(const ScalarContainer &values) override
Computes the distribution parameters from a set of values.
Definition: WeibullDistribution.cpp:137
cloudViewer::GenericProgressCallback::isCancelRequested
virtual bool isCancelRequested()=0
Checks if the process should be canceled.
cloudViewer::FastMarching::m_trialCells
std::vector< unsigned > m_trialCells
TRIAL cells list.
Definition: FastMarching.h:214
cloudViewer::SquareMatrixTpl::scale
void scale(Scalar coef)
Scales matrix (all elements are multiplied by the same coef.)
Definition: SquareMatrix.h:459
cloudViewer::Neighbourhood::FLAG_DEPRECATED
@ FLAG_DEPRECATED
Definition: Neighbourhood.h:35
cloudViewer::GeometricalAnalysisTools::ComputeApproxPointsDensityInACellAtLevel
static bool ComputeApproxPointsDensityInACellAtLevel(const DgmOctree::octreeCell &cell, void **additionalParameters, NormalizedProgress *nProgress=nullptr)
Computes approximate point density inside a cell.
Definition: GeometricalAnalysisTools.cpp:456
cloudViewer::utility::IJsonConvertible::EigenVector4dToJsonArray
static bool EigenVector4dToJsonArray(const Eigen::Vector4d &vec, Json::Value &value)
Definition: IJsonConvertible.cpp:77
cloudViewer::GeometricalAnalysisTools::Curvature
@ Curvature
Definition: GeometricalAnalysisTools.h:26
cloudViewer::utility::Timer::~Timer
~Timer()
Definition: Timer.cpp:20
Eigen::Vector6d
Eigen::Matrix< double, 6, 1 > Vector6d
Definition: Eigen.h:107
ScalarFieldView::ScalarFieldView
ScalarFieldView(cloudViewer::ScalarField &field, const py::slice &slice)
Definition: ScalarField.cpp:32
cloudViewer::utility::SolveJacobianSystemAndObtainExtrinsicMatrix
std::tuple< bool, Eigen::Matrix4d > SolveJacobianSystemAndObtainExtrinsicMatrix(const Eigen::Matrix6d &JTJ, const Eigen::Vector6d &JTr)
Definition: Eigen.cpp:105
cloudViewer::ManualSegmentationTools::MeshCutterParams::outsideMesh
SimpleMesh * outsideMesh
Definition: ManualSegmentationTools.h:123
cloudViewer::OctreeAndMeshIntersection::OctreeAndMeshIntersection
OctreeAndMeshIntersection()
Default constructor.
Definition: DistanceComputationTools.cpp:77
CVLog.h
cloudViewer::WeibullDistribution::setChi2ClassesPositions
virtual bool setChi2ClassesPositions(unsigned numberOfClasses)
Compute each Chi2 class limits.
Definition: WeibullDistribution.cpp:386
cloudViewer::PointCloudTpl::size
unsigned size() const override
Definition: PointCloudTpl.h:38
cloudViewer::DistanceComputationTools::computeCloud2PolylineEquation
static int computeCloud2PolylineEquation(GenericIndexedCloudPersist *cloud, const Polyline *polyline, double *rms=nullptr)
Computes the distance between each point in a cloud and a polyline.
Definition: DistanceComputationTools.cpp:3471
cloudViewer::DgmOctree::DgmOctree
DgmOctree(GenericIndexedCloudPersist *cloud)
DgmOctree constructor.
Definition: DgmOctree.cpp:174
Chi2Class::n
int n
Definition: StatisticalTestingTools.cpp:32
cloudViewer::utility::IJsonConvertible::EigenMatrix3dToJsonArray
static bool EigenMatrix3dToJsonArray(const Eigen::Matrix3d &mat, Json::Value &value)
Definition: IJsonConvertible.cpp:99
cloudViewer::Delaunay2dMesh::_getNextTriangle
GenericTriangle * _getNextTriangle() override
Returns the next triangle (relatively to the global iterator position)
Definition: Delaunay2dMesh.cpp:324
Runtime::GetInstance
ccGuiPythonInstance * GetInstance() noexcept
Definition: Runtime.cpp:72
cloudViewer::DgmOctree::updateCellSizeTable
void updateCellSizeTable()
Definition: DgmOctree.cpp:405
SimpleTriangle.h
SaitoSquaredDistanceTransform.h
cloudViewer::DistanceComputationTools::computeApproxCloud2CloudDistance
static int computeApproxCloud2CloudDistance(GenericIndexedCloudPersist *comparedCloud, GenericIndexedCloudPersist *referenceCloud, unsigned char octreeLevel, PointCoordinateType maxSearchDist=0, GenericProgressCallback *progressCb=nullptr, DgmOctree *compOctree=nullptr, DgmOctree *refOctree=nullptr)
Computes approximate distances between two point clouds.
Definition: DistanceComputationTools.cpp:3754
cloudViewer::utility::Timer::GetDurationInSecond
double GetDurationInSecond() const
Definition: Timer.cpp:40
cloudViewer::utility::IJsonConvertible::EigenMatrix4dToJsonArray
static bool EigenMatrix4dToJsonArray(const Eigen::Matrix4d &mat, Json::Value &value)
Definition: IJsonConvertible.cpp:120
StaticVector.h
cloudViewer::DistanceComputationTools::computeCloud2PlaneDistanceRMS
static ScalarType computeCloud2PlaneDistanceRMS(GenericCloud *cloud, const PointCoordinateType *planeEquation)
Computes the Root Mean Square (RMS) distance between a cloud and a plane.
Definition: DistanceComputationTools.cpp:3534
cloudViewer::Neighbourhood::computeRoughness
ScalarType computeRoughness(const CCVector3 &P, const CCVector3 *roughnessUpDir=nullptr)
Definition: Neighbourhood.cpp:886
cloudViewer::utility::filesystem::CFile::ReadLine
const char * ReadLine()
Definition: FileSystem.cpp:820
cloudViewer::FastMarching::m_theGrid
Cell ** m_theGrid
Grid used to process Fast Marching.
Definition: FastMarching.h:235
LocalModel.h
define_DistanceComputationTools
void define_DistanceComputationTools(py::module &cccorelib)
Definition: DistanceComputationTools.cpp:15
cloudViewer::core::Tensor::Permute
Tensor Permute(const SizeVector &dims) const
Permute (dimension shuffle) the Tensor, returns a view.
Definition: Tensor.cpp:1028
cloudViewer::FPCSRegistrationTools::FindBase
static bool FindBase(GenericIndexedCloud *cloud, PointCoordinateType overlap, unsigned nbTries, Base &base)
Randomly finds a 4 points base in a cloud.
Definition: RegistrationTools.cpp:1306
ecvColor::middle
constexpr Rgbaf middle(0.50f, 0.50f, 0.50f, 1.00f)
cloudViewer::utility::CPUInfo
CPU information.
Definition: CPUInfo.h:19
DataCloud::weights
ScalarField * weights
Definition: RegistrationTools.cpp:140
Vector2Tpl::cross
Type cross(const Vector2Tpl &v) const
Cross product.
Definition: CVGeom.h:76
cloudViewer::ConjugateGradient
A class to perform a conjugate gradient optimization.
Definition: ConjugateGradient.h:25
cloudViewer::ReferenceCloud::capacity
virtual unsigned capacity() const
Returns max capacity.
Definition: ReferenceCloud.h:174
AVERAGE_NUMBER_OF_POINTS_FOR_GRADIENT_COMPUTATION
static const int AVERAGE_NUMBER_OF_POINTS_FOR_GRADIENT_COMPUTATION
Definition: ScalarFieldTools.cpp:20
cloudViewer::GenericTriangle::_getA
virtual const CCVector3 * _getA() const =0
Returns the first vertex (A)
cloudViewer::DELAUNAY_2D_AXIS_ALIGNED
@ DELAUNAY_2D_AXIS_ALIGNED
Definition: PointProjectionTools.h:23
cloudViewer::ScalarField
A simple scalar field (to be associated to a point cloud)
Definition: ScalarField.h:25
cloudViewer::ScalarFieldTools::computeKmeans
static bool computeKmeans(const GenericCloud *theCloud, unsigned char K, KMeanClass kmcc[], GenericProgressCallback *progressCb=nullptr)
Definition: ScalarFieldTools.cpp:520
cloudViewer::ManualSegmentationTools::segmentMeshWithAAPlane
static bool segmentMeshWithAAPlane(GenericIndexedMesh *mesh, GenericIndexedCloudPersist *vertices, MeshCutterParams &ioParams, GenericProgressCallback *progressCb=nullptr)
Definition: ManualSegmentationTools.cpp:634
cloudViewer::SimpleMesh::size
virtual unsigned size() const override
Returns the number of triangles.
Definition: SimpleMesh.h:47
cloudViewer::ReferenceCloud::getCurrentPointScalarValue
virtual ScalarType getCurrentPointScalarValue() const
Returns the current point associated scalar value.
Definition: ReferenceCloud.h:119
cloudViewer::uni_elt::p
int p
Definition: Universe.h:17
cloudViewer::DistanceComputationTools
Definition: DistanceComputationTools.h:31
cloudViewer::utility::Timer::GetSystemTimeInMilliseconds
static double GetSystemTimeInMilliseconds()
Definition: Timer.cpp:22
cloudViewer::OctreeAndMeshIntersection::octree
DgmOctree * octree
Octree structure.
Definition: DistanceComputationTools.cpp:62
cloudViewer::core::AdvancedIndexPreprocessor::GetIndexTensors
std::vector< Tensor > GetIndexTensors() const
Definition: AdvancedIndexing.h:31
cloudViewer::utility::filesystem::GetFileNameWithoutExtension
std::string GetFileNameWithoutExtension(const std::string &filename)
Definition: FileSystem.cpp:295
cloudViewer::DgmOctree::cellsContainer
std::vector< IndexAndCode > cellsContainer
Container of 'IndexAndCode' structures.
Definition: DgmOctree.h:351
CVLog::PrintDebug
static bool PrintDebug(const char *format,...)
Same as Print, but works only in Debug mode.
Definition: CVLog.cpp:153
cloudViewer::utility::GetProgramOptionAsEigenVectorXd
Eigen::VectorXd GetProgramOptionAsEigenVectorXd(int argc, char **argv, const std::string &option, const Eigen::VectorXd default_value=Eigen::VectorXd::Zero(0))
Definition: Console.cpp:71
cloudViewer::ScalarFieldTools
Several scalar field treatment algorithms (gradient, classification, etc.)
Definition: ScalarFieldTools.h:35
StatisticalTestingTools.h
cloudViewer::CloudSamplingTools::SFModulationParams::b
double b
Modulation scheme: y = a.sf + b.
Definition: CloudSamplingTools.h:148
cloudViewer::WeibullDistribution::WeibullDistribution
WeibullDistribution()
WeibullDistribution constructor.
Definition: WeibullDistribution.cpp:89
cloudViewer::PointProjectionTools::extractConcaveHull2D
static bool extractConcaveHull2D(std::vector< IndexedCCVector2 > &points, std::list< IndexedCCVector2 * > &hullPoints, PointCoordinateType maxSquareLength=0)
Determines the 'concave' hull of a set of points.
Definition: PointProjectionTools.cpp:564
cloudViewer::Neighbourhood::EigenValue3
@ EigenValue3
Definition: Neighbourhood.h:175
cloudViewer::Neighbourhood::computeLargestRadius
PointCoordinateType computeLargestRadius()
Definition: Neighbourhood.cpp:184
cloudViewer::Neighbourhood::getLSPlaneY
const CCVector3 * getLSPlaneY()
Returns best interpolating plane (Least-square) 'Y' base vector.
Definition: Neighbourhood.cpp:95
cloudViewer::FastMarching::m_minFillIndexes
Tuple3i m_minFillIndexes
Octree min fill indexes at 'm_gridLevel'.
Definition: FastMarching.h:244
cloudViewer::NormalizedProgress::NormalizedProgress
NormalizedProgress(GenericProgressCallback *callback, unsigned totalSteps, unsigned totalPercentage=100)
Default constructor.
Definition: NormalizedProgress.cpp:44
stddev
double stddev(std::vector< double > const &func)
Definition: qAutoSeg.cpp:86
cloudViewer::GenericProgressCallback::stop
virtual void stop()=0
Notifies the fact that the process has ended.
cloudViewer::utility::filesystem::GetTempDirectoryPath
std::string GetTempDirectoryPath()
Definition: FileSystem.cpp:423
cloudViewer::FastMarchingForPropagation::PropagationCell::cellCode
DgmOctree::CellCode cellCode
Equivalent cell code in the octree.
Definition: FastMarchingForPropagation.h:97
cloudViewer::utility::filesystem::GetHomeDirectory
std::string GetHomeDirectory()
Get the HOME directory for the user.
Definition: FileSystem.cpp:74
cloudViewer::DgmOctree::INVALID_CELL_CODE
static const CellCode INVALID_CELL_CODE
Invalid cell code.
Definition: DgmOctree.h:89
cloudViewer::core::Tensor
Definition: Tensor.h:32
ComparisonX
static bool ComparisonX(const unsigned &a, const unsigned &b)
Compares X coordinates of two points designated by their index.
Definition: CVKdTree.cpp:91
cloudViewer::CloudSamplingTools::subsampleCloudRandomly
static ReferenceCloud * subsampleCloudRandomly(GenericIndexedCloudPersist *cloud, unsigned newNumberOfPoints, GenericProgressCallback *progressCb=nullptr)
Subsamples a point cloud (process based on random selections)
Definition: CloudSamplingTools.cpp:202
cloudViewer::DgmOctree::computeCellsStatistics
void computeCellsStatistics(unsigned char level)
Computes statistics about cells for a given level of subdivision.
Definition: DgmOctree.cpp:423
ErrorFunction.h
cloudViewer::TrueKdTree::Leaf
Tree leaf.
Definition: TrueKdTree.h:79
color
math::float4 color
Definition: LineSetBuffers.cpp:46
cloudViewer::Neighbourhood::Anisotropy
@ Anisotropy
Definition: Neighbourhood.h:165
cloudViewer::DgmOctree::m_fillIndexes
int m_fillIndexes[(MAX_OCTREE_LEVEL+1) *6]
Definition: DgmOctree.h:1258
cloudViewer::core::AdvancedIndexPreprocessor::tensor_
Tensor tensor_
Definition: AdvancedIndexing.h:91
cloudViewer::SimpleMesh::globalIterator
unsigned globalIterator
Iterator on the list of triangles.
Definition: SimpleMesh.h:107
cloudViewer::MeshSamplingTools::computeMeshEdgesConnectivity
static bool computeMeshEdgesConnectivity(GenericIndexedMesh *mesh, EdgeConnectivityStats &stats)
Computes some statistics on the edges connectivty of a mesh.
Definition: MeshSamplingTools.cpp:133
ComputeMaxNeighborhoodLength
int ComputeMaxNeighborhoodLength(ScalarType maxSearchDist, PointCoordinateType cellSize)
Definition: DistanceComputationTools.cpp:1130
cloudViewer::GenericProgressCallback::setMethodTitle
virtual void setMethodTitle(const char *methodTitle)=0
Notifies the algorithm title.
cloudViewer::utility::ComputeJTJandJTr
std::tuple< MatType, VecType, double > ComputeJTJandJTr(std::function< void(int, VecType &, double &, double &)> f, int iteration_num, bool verbose=true)
Definition: Eigen.cpp:148
cloudViewer::ScalarField::NaN
static ScalarType NaN()
Returns the specific NaN value.
Definition: ScalarField.h:46
cloudViewer::ScalarField::addElement
void addElement(ScalarType value)
Definition: ScalarField.h:99
cloudViewer::core::Tensor::AsStrided
Tensor AsStrided(const SizeVector &new_shape, const SizeVector &new_strides) const
Create a Tensor view of specified shape and strides. The underlying buffer and data_ptr offsets remai...
Definition: Tensor.cpp:1061
s_UnitSphereVolume
static double s_UnitSphereVolume
Definition: GeometricalAnalysisTools.cpp:26
cloudViewer::LocalModel::getSquareSize
PointCoordinateType getSquareSize() const
Returns the model max radius (squared)
Definition: LocalModel.h:40
cloudViewer::GenericCloud::getPointScalarValue
virtual ScalarType getPointScalarValue(unsigned pointIndex) const =0
Returns the ith point associated scalar value.
cloudViewer::CloudSamplingTools::CELL_GRAVITY_CENTER
@ CELL_GRAVITY_CENTER
Definition: CloudSamplingTools.h:29
cloudViewer::FastMarchingForPropagation::computeTCoefApprox
float computeTCoefApprox(Cell *currentCell, Cell *neighbourCell) const override
Computes the front acceleration between two cells.
Definition: FastMarchingForPropagation.cpp:212
CPUInfo.h
EPSILON_VALUE
constexpr double EPSILON_VALUE
Definition: CVConst.h:87
FastMarchingForPropagation.h
cloudViewer::ReferenceCloud::getPointGlobalIndex
virtual unsigned getPointGlobalIndex(unsigned localIndex) const
Definition: ReferenceCloud.h:103
ParallelSort
#define ParallelSort
Definition: ParallelSort.h:33
cloudViewer::DgmOctree::executeFunctionForAllCellsAtLevel
unsigned executeFunctionForAllCellsAtLevel(unsigned char level, octreeCellFunc func, void **additionalParameters, bool multiThread=false, GenericProgressCallback *progressCb=nullptr, const char *functionTitle=nullptr, int maxThreadCount=0)
Definition: DgmOctree.cpp:3573
cloudViewer::DistanceComputationTools::Cloud2MeshDistancesComputationParams::signedDistances
bool signedDistances
Whether to compute signed distances or not.
Definition: DistanceComputationTools.h:178
cloudViewer::SaitoSquaredDistanceTransform::SDT_3D
static bool SDT_3D(Grid3D< GridElement > &image, GenericProgressCallback *progressCb=nullptr)
3D Exact Squared Distance Transform
Definition: SaitoSquaredDistanceTransform.cpp:159
cloudViewer::SquareMatrixTpl::invalidate
void invalidate()
Invalidates matrix.
Definition: SquareMatrix.h:143
cloudViewer::GeometricalAnalysisTools::ComputeLocalDensityApprox
static ErrorCode ComputeLocalDensityApprox(GenericIndexedCloudPersist *cloud, Density densityType, GenericProgressCallback *progressCb=nullptr, DgmOctree *inputOctree=nullptr)
Computes the local density (approximate)
Definition: GeometricalAnalysisTools.cpp:409
DgmOctree.h
cloudViewer::GenericProgressCallback
Definition: GenericProgressCallback.h:20
cloudViewer::core::AdvancedIndexer::AdvancedIndexerMode
AdvancedIndexerMode
Definition: AdvancedIndexing.h:119
cloudViewer::utility::swap
void swap(optional< T > &x, optional< T > &y) noexcept(noexcept(x.swap(y)))
Definition: Optional.h:890
cloudViewer::DgmOctree::findBestLevelForAGivenPopulationPerCell
unsigned char findBestLevelForAGivenPopulationPerCell(unsigned indicativeNumberOfPointsPerCell) const
Definition: DgmOctree.cpp:2737
cloudViewer::PointProjectionTools::Transformation::R
SquareMatrixd R
Rotation.
Definition: PointProjectionTools.h:42
Jacobi::SortEigenValuesAndVectors
static bool SortEigenValuesAndVectors(SquareMatrix &eigenVectors, EigenValues &eigenValues)
Definition: Jacobi.h:333
cloudViewer::CloudSamplingTools::RANDOM_POINT
@ RANDOM_POINT
Definition: CloudSamplingTools.h:33
cloudViewer::FastMarchingForPropagation::setPropagationTimingsAsDistances
bool setPropagationTimingsAsDistances()
Sets the propagation timings as distances for each point.
Definition: FastMarchingForPropagation.cpp:168
cloudViewer::SimpleMesh::normalsAvailable
bool normalsAvailable() const override
Returns whether normals are available.
Definition: SimpleMesh.cpp:127
cloudViewer::utility::ComputeMeanAndCovariance
std::tuple< Eigen::Vector3d, Eigen::Matrix3d > ComputeMeanAndCovariance(const std::vector< Eigen::Vector3d > &points, const std::vector< IdxType > &indices)
Function to compute the mean and covariance matrix of a set of points.
Definition: Eigen.cpp:321
Landau_Smith
static bool Landau_Smith(const std::vector< CCVector2d > &xy, CCVector2d &center, PointCoordinateType &radius)
Definition: GeometricalAnalysisTools.cpp:934
cloudViewer::utility::filesystem::HasFileExtension
bool HasFileExtension(const std::string &file_name, const std::string &ext)
Definition: FileSystem.cpp:117
cloudViewer::DgmOctreeReferenceCloud::forwardIterator
void forwardIterator()
Forwards global iterator.
Definition: DgmOctreeReferenceCloud.h:75
cloudViewer::DgmOctree::getOctreeMaxs
const CCVector3 & getOctreeMaxs() const
Returns the higher boundaries of the octree.
Definition: DgmOctree.h:458
cloudViewer::Neighbourhood::getLSPlaneX
const CCVector3 * getLSPlaneX()
Returns best interpolating plane (Least-square) 'X' base vector.
Definition: Neighbourhood.cpp:88
cloudViewer::ReferenceCloud::m_mutex
std::mutex m_mutex
For concurrent access.
Definition: ReferenceCloud.h:250
cloudViewer::DgmOctree::RC_CLOSE_POINTS
@ RC_CLOSE_POINTS
Definition: DgmOctree.h:1179
cloudViewer::DgmOctree::MAX_OCTREE_LEVEL
static const int MAX_OCTREE_LEVEL
Max octree subdivision level.
Definition: DgmOctree.h:67
cloudViewer::OrientedBoundingBox::GetPointIndicesWithinBoundingBox
std::vector< size_t > GetPointIndicesWithinBoundingBox(const std::vector< Eigen::Vector3d > &points) const
Return indices to points that are within the bounding box.
Definition: OrientedBoundingBox.cpp:50
cloudViewer::utility::IntersectionTest::TriangleAABB
static bool TriangleAABB(const Eigen::Vector3d &box_center, const Eigen::Vector3d &box_half_size, const Eigen::Vector3d &vert0, const Eigen::Vector3d &vert1, const Eigen::Vector3d &vert2)
Definition: IntersectionTest.cpp:56
cloudViewer::SquareMatrixTpl::m_values
Scalar ** m_values
The matrix rows.
Definition: SquareMatrix.h:157
cloudViewer::WeibullDistribution::m_a
ScalarType m_a
Weibull distribution parameter a (k)
Definition: WeibullDistribution.h:94
Garbage::destroy
void destroy(C *item)
To manually delete an item already in the trash.
Definition: Garbage.h:32
LSLocalModel::computeDistanceFromModelToPoint
ScalarType computeDistanceFromModelToPoint(const CCVector3 *P, CCVector3 *nearestPoint=nullptr) const override
Compute the (unsigned) distance between a 3D point and this model.
Definition: LocalModel.cpp:33
GenerateCellCodeForDim
static DgmOctree::CellCode GenerateCellCodeForDim(int pos)
Definition: DgmOctree.cpp:158
cloudViewer::FastMarching::m_dz
unsigned m_dz
Grid size along the Z dimension.
Definition: FastMarching.h:225
cloudViewer::TrueKdTree::Z_DIM
static const uint8_t Z_DIM
Definition: TrueKdTree.h:28
cccorelib.h
cloudViewer::core::AdvancedIndexer::GetInputPtr
CLOUDVIEWER_HOST_DEVICE char * GetInputPtr(int64_t workload_idx) const
Definition: AdvancedIndexing.h:167
cloudViewer::DistanceComputationTools::Cloud2CloudDistancesComputationParams::maxSearchDist
ScalarType maxSearchDist
Maximum search distance (true distance won't be computed if greater)
Definition: DistanceComputationTools.h:47
cloudViewer::Grid3D< unsigned short >::m_innerSize
Tuple3ui m_innerSize
Dimensions of the grid (without margin)
Definition: Grid3D.h:547
cloudViewer::utility::Logger::Impl::console_print_fcn_
static std::function< void(const std::string &)> console_print_fcn_
Definition: Logging.h:136
cloudViewer::KMeanClass::mean
ScalarType mean
K-mean class mean value.
Definition: ScalarFieldTools.h:24
CCVector3
Vector3Tpl< PointCoordinateType > CCVector3
Default 3D Vector.
Definition: CVGeom.h:798
cloudViewer::NormalDistribution::computeParameters
bool computeParameters(const ScalarContainer &values) override
Computes the distribution parameters from a set of values.
Definition: NormalDistribution.cpp:109
qtCompatCodecForLocale
QtCompatTextCodec * qtCompatCodecForLocale()
Definition: QtCompat.h:650
cloudViewer::Delaunay2dMesh::m_dumpTriangleIndexes
VerticesIndexes m_dumpTriangleIndexes
Dump triangle index structure to transmit temporary data.
Definition: Delaunay2dMesh.h:148
cloudViewer::FastMarchingForPropagation::m_detectionThreshold
float m_detectionThreshold
Threshold for propagation stop.
Definition: FastMarchingForPropagation.h:111
cloudViewer::KDTree::insidePointToCellDistance
ScalarType insidePointToCellDistance(const PointCoordinateType *queryPoint, KdCell *cell)
Definition: CVKdTree.cpp:462
cloudViewer::Grid3D::getValue
const GridElement & getValue(int i, int j, int k) const
Returns the value of a given cell (const version)
Definition: Grid3D.h:498
cloudViewer::SimpleTriangle
A simple triangle class.
Definition: SimpleTriangle.h:52
GenericIndexedMesh.h
cloudViewer::DgmOctree::IndexAndCode
Association between an index and the code of an octree cell.
Definition: DgmOctree.h:301
cloudViewer::SimpleMesh::~SimpleMesh
~SimpleMesh() override
SimpleMesh destructor.
Definition: SimpleMesh.cpp:25
LOG_ARGS
#define LOG_ARGS(flags)
Definition: CVLog.cpp:94
cloudViewer::Neighbourhood::PCA1
@ PCA1
Definition: Neighbourhood.h:168
cloudViewer::DgmOctree::CylindricalNeighbourhood
Definition: DgmOctree.h:658
cloudViewer::SquareMatrixTpl::toIdentity
void toIdentity()
Sets matrix to identity.
Definition: SquareMatrix.h:452
s_sortedCoordsForSplit
static std::vector< PointCoordinateType > s_sortedCoordsForSplit
Definition: TrueKdTree.cpp:38
cloudViewer::Universe::elts
uni_elt * elts
Definition: Universe.h:39
face
std::vector< unsigned int > face
Definition: TriangleMeshIO.cpp:50
cloudViewer::core::AdvancedIndexer::AdvancedIndexerMode::SET
@ SET
BitShiftValues::BitShiftValues
BitShiftValues()
Default initialization.
Definition: DgmOctree.cpp:49
BackwardNeighbours345
const signed char BackwardNeighbours345[14 *4]
Backward mask shifts and weights (Chamfer 3-4-5)
Definition: ChamferDistanceTransform.cpp:24
cloudViewer::DgmOctree::rayCast
bool rayCast(const CCVector3 &rayAxis, const CCVector3 &rayOrigin, double maxRadiusOrFov, bool isFOV, RayCastProcess process, std::vector< PointDescriptor > &output) const
Ray casting algorithm.
Definition: DgmOctree.cpp:4353
cloudViewer::Grid3D< unsigned short >::GridElement
unsigned short GridElement
Cell type.
Definition: Grid3D.h:35
cloudViewer::DistanceComputationTools::MAX_DIST_68_PERCENT
@ MAX_DIST_68_PERCENT
Definition: DistanceComputationTools.h:412
cloudViewer::utility::GetEnvVar
static std::string GetEnvVar(const std::string &name)
Definition: Parallel.cpp:23
ComputeNeighborhood2MeshDistancesWithOctree
static int ComputeNeighborhood2MeshDistancesWithOctree(OctreeAndMeshIntersection *intersection, DistanceComputationTools::Cloud2MeshDistancesComputationParams &params, ReferenceCloud &Yk, unsigned cellIndex, const Tuple3i &cellPos, TrianglesToTest &ttt, bool boundedSearch, int maxNeighbourhoodLength)
Helper function to compute neighborhood to mesh distances with octree.
Definition: DistanceComputationTools.cpp:1910
cloudViewer::SquareMatrixTpl::initFromQuaternion
void initFromQuaternion(const float q[])
Creates a rotation matrix from a quaternion (float version)
Definition: SquareMatrix.h:480
cloudViewer::core::AdvancedIndexPreprocessor::GetIndexedShape
SizeVector GetIndexedShape() const
Definition: AdvancedIndexing.h:37
cloudViewer::DgmOctree::octreeCellFunc
bool(*)(const octreeCell &, void **, NormalizedProgress *) octreeCellFunc
Definition: DgmOctree.h:395
cloudViewer::FastMarching::m_numberOfNeighbours
unsigned m_numberOfNeighbours
Current number of neighbours (6 or 26)
Definition: FastMarching.h:247
cloudViewer::FastMarching::Cell
A generic Fast Marching grid cell.
Definition: FastMarching.h:95
cloudViewer::ManualSegmentationTools::MeshCutterParams::trackOrigIndexes
bool trackOrigIndexes
Definition: ManualSegmentationTools.h:132
cloudViewer::DgmOctree::PointDescriptor::squareDistd
double squareDistd
Point associated distance value.
Definition: DgmOctree.h:107
cloudViewer::utility::TransformVector6dToMatrix4d
Eigen::Matrix4d TransformVector6dToMatrix4d(const Eigen::Vector6d &input)
Definition: Eigen.cpp:76
cloudViewer::OrientedBoundingBox
A bounding box oriented along an arbitrary frame of reference.
Definition: OrientedBoundingBox.h:22
cloudViewer::SimpleTriangle::C
CCVector3 C
C vertex.
Definition: SimpleTriangle.h:77
cloudViewer::utility::filesystem::Copy
bool Copy(const std::string &from, const std::string &to, bool include_parent_dir=false, const std::string &extname="")
Copy a file or directory.
Definition: FileSystem.cpp:249
cloudViewer::KDTree::KdCell::outbbmax
CCVector3 outbbmax
Outside bounding box max point.
Definition: CVKdTree.h:134
cloudViewer::utility::GetVerbosityLevel
VerbosityLevel GetVerbosityLevel()
Get global verbosity level of CloudViewer.
Definition: Logging.cpp:93
cloudViewer::GeometricalAnalysisTools
Definition: GeometricalAnalysisTools.h:22
result
core::Tensor result
Definition: VtkUtils.cpp:76
CVMiscTools.h
cloudViewer::core::AdvancedIndexer::indexed_strides_
int64_t indexed_strides_[MAX_DIMS]
Definition: AdvancedIndexing.h:206
cloudViewer::system::MemoryInfo
Definition: MemoryInfo.h:19
cloudViewer::PointProjectionTools::developCloudOnCylinder
static PointCloud * developCloudOnCylinder(GenericCloud *cloud, PointCoordinateType radius, unsigned char dim=2, CCVector3 *center=nullptr, GenericProgressCallback *progressCb=nullptr)
Develops a cylinder-shaped point cloud around its main axis.
Definition: PointProjectionTools.cpp:25
cloudViewer::DgmOctree::octreeCell
Octree cell descriptor.
Definition: DgmOctree.h:354
cloudViewer::KMeanClass::maxValue
ScalarType maxValue
K-mean class maximum value.
Definition: ScalarFieldTools.h:28
cloudViewer::PointCloudTpl::enableScalarField
bool enableScalarField() override
Definition: PointCloudTpl.h:77
cloudViewer::DgmOctree::OCTREE_LENGTH
static int OCTREE_LENGTH(int level)
Definition: DgmOctree.cpp:118
cloudViewer::Universe::num
int num
Definition: Universe.h:40
cloudViewer::GenericProgressCallback::setInfo
virtual void setInfo(const char *infoStr)=0
Notifies some information about the ongoing process.
cloudViewer::PointProjectionTools::segmentIntersect
static bool segmentIntersect(const CCVector2 &A, const CCVector2 &B, const CCVector2 &C, const CCVector2 &D)
Returns true if the AB and CD segments intersect each other.
Definition: PointProjectionTools.cpp:422
cloudViewer::FastMarching::setSeedCell
virtual bool setSeedCell(const Tuple3i &pos)
Sets a given cell as "seed".
Definition: FastMarching.cpp:150
cloudViewer::ConjugateGradient::A
cloudViewer::SquareMatrixTpl< Scalar > & A()
Returns A matrix.
Definition: ConjugateGradient.h:39
cloudViewer::Neighbourhood::MEAN_CURV
@ MEAN_CURV
Definition: Neighbourhood.h:42
GeometricalAnalysisTools.h
cloudViewer::utility::filesystem::CFile::Open
bool Open(const std::string &filename, const std::string &mode)
Open a file.
Definition: FileSystem.cpp:739
cloudViewer::MeshSamplingTools::EdgeConnectivityStats
Statistics on the edges connectivty of a mesh.
Definition: MeshSamplingTools.h:43
cloudViewer::SaitoSquaredDistanceTransform::SDT_2D
static bool SDT_2D(Grid3D< GridElement > &image, std::size_t sliceIndex, const std::vector< GridElement > &sq)
2D Exact Squared Distance Transform
Definition: SaitoSquaredDistanceTransform.cpp:55
cloudViewer::DgmOctree::NearestNeighboursSearchStruct::theNearestPointIndex
unsigned theNearestPointIndex
The nearest point.
Definition: DgmOctree.h:233
ManualSegmentationTools.h
float
float
Definition: my_point_types.h:154
cloudViewer::AutoSegmentationTools::extractConnectedComponents
static bool extractConnectedComponents(GenericIndexedCloudPersist *theCloud, ReferenceCloudContainer &ccc)
Extracts connected components from a point cloud.
Definition: AutoSegmentationTools.cpp:55
CVLog::Error
static bool Error(const char *format,...)
Display an error dialog with formatted message.
Definition: CVLog.cpp:143
s_backupMessages
static std::vector< Message > s_backupMessages
Definition: CVLog.cpp:41
cloudViewer::SimpleMesh::interpolateNormals
bool interpolateNormals(unsigned triIndex, const CCVector3 &P, CCVector3 &N) override
Interpolates normal(s) inside a given triangle.
Definition: SimpleMesh.cpp:131
AtomicCounter::store
void store(int value)
Definition: NormalizedProgress.cpp:31
Chi2Helper.h
Parallel.h
Vector2Tpl< PointCoordinateType >
cloudViewer::DistanceComputationTools::Cloud2CloudDistancesComputationParams::maxThreadCount
int maxThreadCount
Maximum number of threads to use (0 = max)
Definition: DistanceComputationTools.h:55
CC_FM_MAX_NUMBER_OF_NEIGHBOURS
#define CC_FM_MAX_NUMBER_OF_NEIGHBOURS
Definition: FastMarching.h:26
s_instance
static CVLog * s_instance
Definition: CVLog.cpp:51
cloudViewer::core::Tensor::NumDims
int64_t NumDims() const
Definition: Tensor.h:1172
cloudViewer::ManualSegmentationTools::segmentMesh
static GenericIndexedMesh * segmentMesh(GenericIndexedMesh *mesh, ReferenceCloud *selectedVertexIndexes, bool useSelectedVertices, GenericProgressCallback *progressCb=nullptr, GenericIndexedCloud *destCloud=nullptr, unsigned indexShift=0, std::vector< int > *triangleIndexMap=nullptr)
Segments a mesh knowing which vertices should be kept or not.
Definition: ManualSegmentationTools.cpp:182
cloudViewer::SimpleMesh::reserve
virtual bool reserve(unsigned n)
Reserves the memory to store the triangles (as 3 indexes each)
Definition: SimpleMesh.cpp:109
cloudViewer::GenericIndexedMesh::getTriangleVertices
virtual void getTriangleVertices(unsigned triangleIndex, CCVector3 &A, CCVector3 &B, CCVector3 &C) const =0
Returns the vertices of a given triangle.
cloudViewer::MeshSamplingTools::ComputeEdgeKey
static unsigned long long ComputeEdgeKey(unsigned i1, unsigned i2)
Computes the unique key corresponding to an edge.
Definition: MeshSamplingTools.cpp:90
cloudViewer::DgmOctree::diff
void diff(const cellCodesContainer &codesA, const cellCodesContainer &codesB, cellCodesContainer &diffA, cellCodesContainer &diffB) const
Definition: DgmOctree.cpp:2955
cloudViewer::Neighbourhood::Verticality
@ Verticality
Definition: Neighbourhood.h:172
cloudViewer::ScalarField::fill
void fill(ScalarType fillValue=0)
Fills the array with a particular value.
Definition: ScalarField.h:77
TrianglesToTest::numberOfTriangles
unsigned numberOfTriangles
Definition: DistanceComputationTools.cpp:1903
cloudViewer::ReferenceCloud::addPointIndex
virtual bool addPointIndex(unsigned globalIndex)
Point global index insertion mechanism.
Definition: ReferenceCloud.cpp:84
cloudViewer::ManualSegmentationTools::isPointInsidePoly
static bool isPointInsidePoly(const CCVector2 &P, const GenericIndexedCloud *polyVertices)
Tests if a point is inside a polygon (2D)
Definition: ManualSegmentationTools.cpp:61
cloudViewer::DistanceComputationTools::MAX_DIST_99_PERCENT
@ MAX_DIST_99_PERCENT
Definition: DistanceComputationTools.h:414
cloudViewer::FastMarchingForPropagation::PropagationCell
A Fast Marching grid cell for surfacical propagation.
Definition: FastMarchingForPropagation.h:86
define_ScalarField
void define_ScalarField(py::module &cccorelib)
Definition: ScalarField.cpp:155
cloudViewer::GeometricalAnalysisTools::FlagDuplicatePointsInACellAtLevel
static bool FlagDuplicatePointsInACellAtLevel(const DgmOctree::octreeCell &cell, void **additionalParameters, NormalizedProgress *nProgress=nullptr)
Flags duplicate points inside a cell.
Definition: GeometricalAnalysisTools.cpp:353
cloudViewer::GenericCloud::getBoundingBox
virtual void getBoundingBox(CCVector3 &bbMin, CCVector3 &bbMax)=0
Returns the cloud bounding box.
cloudViewer::GenericCloud::isScalarFieldEnabled
virtual bool isScalarFieldEnabled() const =0
Returns true if the scalar field is enabled, false otherwise.
cloudViewer::utility::filesystem::FileExists
bool FileExists(const std::string &filename)
Definition: FileSystem.cpp:524
cloudViewer::ICPRegistrationTools::Parameters::modelWeights
ScalarField * modelWeights
Definition: RegistrationTools.h:197
cloudViewer::core::AdvancedIndexer::GetIndexedOffset
CLOUDVIEWER_HOST_DEVICE int64_t GetIndexedOffset(int64_t workload_idx) const
Definition: AdvancedIndexing.h:184
cloudViewer::Neighbourhood::computeMomentOrder1
ScalarType computeMomentOrder1(const CCVector3 &P)
Definition: Neighbourhood.cpp:760
cloudViewer::MeshSamplingTools::buildMeshEdgeUsageMap
static bool buildMeshEdgeUsageMap(GenericIndexedMesh *mesh, EdgeUsageMap &edgeMap)
Creates a map to count the number of triangles using each edge.
Definition: MeshSamplingTools.cpp:104
cloudViewer::MeshSamplingTools::flagMeshVerticesByType
static bool flagMeshVerticesByType(GenericIndexedMesh *mesh, ScalarField *flags, EdgeConnectivityStats *stats=nullptr)
Flags the vertices of a mesh depending on their type.
Definition: MeshSamplingTools.cpp:160
cloudViewer::DgmOctree::findNeighborsInASphereStartingFromCell
int findNeighborsInASphereStartingFromCell(NearestNeighboursSearchStruct &nNSS, double radius, bool sortValues=true) const
Advanced form of the nearest neighbours search algorithm (in a sphere)
Definition: DgmOctree.cpp:2479
CVLog::LOG_IMPORTANT
@ LOG_IMPORTANT
Definition: CVLog.h:45
Tuple3Tpl< int >
cloudViewer::TrueKdTree::Node::splitValue
PointCoordinateType splitValue
Definition: TrueKdTree.h:57
size
int size
Definition: FileIOFactory.cpp:130
cloudViewer::NormalDistribution::m_sigma2
ScalarType m_sigma2
Variance.
Definition: NormalDistribution.h:88
cloudViewer::utility::filesystem::ChangeWorkingDirectory
bool ChangeWorkingDirectory(const std::string &directory)
Definition: FileSystem.cpp:427
cloudViewer::utility::IntersectionTest::TriangleTriangle3d
static bool TriangleTriangle3d(const Eigen::Vector3d &p0, const Eigen::Vector3d &p1, const Eigen::Vector3d &p2, const Eigen::Vector3d &q0, const Eigen::Vector3d &q1, const Eigen::Vector3d &q2)
Definition: IntersectionTest.cpp:32
cloudViewer::DistanceComputationTools::computeCloud2MeshDistanceWithOctree
static int computeCloud2MeshDistanceWithOctree(OctreeAndMeshIntersection *theIntersection, Cloud2MeshDistancesComputationParams &params, GenericProgressCallback *progressCb=nullptr)
Definition: DistanceComputationTools.cpp:1429
Tuple3i
Tuple3Tpl< int > Tuple3i
Tuple of 3 int values.
Definition: CVGeom.h:217
cloudViewer::DgmOctree::octreeCell::~octreeCell
virtual ~octreeCell()
Default destructor.
Definition: DgmOctree.cpp:3506
QuadricLocalModel::m_X
unsigned char m_X
Height function first dimension (0=X, 1=Y, 2=Z)
Definition: LocalModel.cpp:152
cloudViewer::utility::SkewMatrix
Eigen::Matrix3d SkewMatrix(const Eigen::Vector3d &vec)
Genretate a skew-symmetric matrix from a vector 3x1.
Definition: Eigen.cpp:414
GenericTriangle.h
cloudViewer::utility::GetProgramOptionAsString
std::string GetProgramOptionAsString(int argc, char **argv, const std::string &option, const std::string &default_value="")
Definition: Console.cpp:19
cloudViewer::FastMarching::m_neighboursIndexShift
int m_neighboursIndexShift[26]
Neighbours coordinates shifts in grid.
Definition: FastMarching.h:249
cloudViewer::DistanceComputationTools::computeCloud2SphereEquation
static int computeCloud2SphereEquation(GenericIndexedCloudPersist *cloud, const CCVector3 &sphereCenter, const PointCoordinateType sphereRadius, bool signedDistances=true, double *rms=nullptr)
Computes the distance between each point in a cloud and a sphere.
Definition: DistanceComputationTools.cpp:3153
cloudViewer::FastMarching::m_sliceSize
unsigned m_sliceSize
Shift for cell access acceleration (Z dimension)
Definition: FastMarching.h:229
cloudViewer::MeshSamplingTools::VERTEX_NON_MANIFOLD
@ VERTEX_NON_MANIFOLD
Definition: MeshSamplingTools.h:76
cloudViewer::core::AdvancedIndexer::element_byte_size_
int64_t element_byte_size_
Definition: AdvancedIndexing.h:204
cloudViewer::SimpleMesh::getTriangleVertices
void getTriangleVertices(unsigned triangleIndex, CCVector3 &A, CCVector3 &B, CCVector3 &C) const override
Returns the vertices of a given triangle.
Definition: SimpleMesh.cpp:60
cloudViewer::uni_elt::size
int size
Definition: Universe.h:18
DelaunayLocalModel::~DelaunayLocalModel
~DelaunayLocalModel() override
Destructor.
Definition: LocalModel.cpp:64
cloudViewer::ScalarField::getMin
ScalarType getMin() const
Returns the minimum value.
Definition: ScalarField.h:72
cloudViewer::TrueKdTree::Leaf::points
ReferenceCloud * points
Definition: TrueKdTree.h:83
cloudViewer::utility::SolveLinearSystemPSD
std::tuple< bool, Eigen::VectorXd > SolveLinearSystemPSD(const Eigen::MatrixXd &A, const Eigen::VectorXd &b, bool prefer_sparse=false, bool check_symmetric=false, bool check_det=false, bool check_psd=false)
Function to solve Ax=b.
Definition: Eigen.cpp:21
cloudViewer::Grid3D::size
const Tuple3ui & size() const
Returns the grid dimensions.
Definition: Grid3D.h:48
Chi2ClassList
std::list< Chi2Class > Chi2ClassList
An ordered list of Chi2 classes.
Definition: StatisticalTestingTools.cpp:41
cloudViewer::ICPRegistrationTools::Parameters::transformationFilters
int transformationFilters
Definition: RegistrationTools.h:204
cloudViewer::utility::IJsonConvertible::EigenMatrix6dFromJsonArray
static bool EigenMatrix6dFromJsonArray(Eigen::Matrix6d &mat, const Json::Value &value)
Definition: IJsonConvertible.cpp:150
y
normal_z y
Definition: my_point_types.h:168
ecvColor::LookUpTable::at
Rgb at(size_t color_id)
Definition: ecvColorTypes.cpp:77
CCShareable::CCShareable
CCShareable()
Default constructor.
Definition: CVShareable.cpp:27
cloudViewer::DistanceComputationTools::computePoint2MeshDistancesWithOctree
static int computePoint2MeshDistancesWithOctree(const CCVector3 &P, ScalarType &distance, OctreeAndMeshIntersection *intersection, Cloud2MeshDistancesComputationParams &params)
Definition: DistanceComputationTools.cpp:2170
cloudViewer::NormalDistribution::m_normFactor
double m_normFactor
Normalization factor.
Definition: NormalDistribution.h:92
cloudViewer::ScalarFieldTools::computeCellGaussianFilter
static bool computeCellGaussianFilter(const DgmOctree::octreeCell &cell, void **additionalParameters, NormalizedProgress *nProgress=nullptr)
Definition: ScalarFieldTools.cpp:289
Vector3Tpl::toDouble
Vector3Tpl< double > toDouble() const
Cast operator to a double vector (explicit call version)
Definition: CVGeom.h:255
cloudViewer::KDTree::checkDistantPointInSubTree
bool checkDistantPointInSubTree(const PointCoordinateType *queryPoint, ScalarType &maxSqrDist, KdCell *cell)
Definition: CVKdTree.cpp:528
cloudViewer::utility::IJsonConvertible::ToString
virtual std::string ToString() const
Convert to a styled string representation of JSON data for display.
Definition: IJsonConvertible.cpp:37
cloudViewer::core::AdvancedIndexer::mode_
AdvancedIndexerMode mode_
Definition: AdvancedIndexing.h:202
s_progressCb
static GenericProgressCallback * s_progressCb
Definition: TrueKdTree.cpp:39
cloudViewer::LocalModel::LocalModel
LocalModel(const CCVector3 &center, PointCoordinateType squaredRadius)
Constructor.
Definition: LocalModel.cpp:161
Chi2Helper::critchi
static double critchi(double p, int df)
Compute critical chi-square value toproduce given p.
Definition: Chi2Helper.h:148
cloudViewer::GeometricalAnalysisTools::InvalidInput
@ InvalidInput
Definition: GeometricalAnalysisTools.h:48
DataCloud::CPSetPlain
PointCloud * CPSetPlain
Definition: RegistrationTools.cpp:142
Vector3Tpl::cross
Vector3Tpl cross(const Vector3Tpl &v) const
Cross product.
Definition: CVGeom.h:412
MeshSamplingTools.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
cloudViewer::SimpleMesh::getBoundingBox
void getBoundingBox(CCVector3 &bbMin, CCVector3 &bbMax) override
Returns the mesh bounding-box.
Definition: SimpleMesh.cpp:84
cloudViewer::ManualSegmentationTools::MeshCutterParams::planeCoord
double planeCoord
Definition: ManualSegmentationTools.h:128
cloudViewer::ManualSegmentationTools::MeshCutterParams::epsilon
double epsilon
Definition: ManualSegmentationTools.h:125
Eigen::Matrix6d_u
Eigen::Matrix< double, 6, 6, Eigen::DontAlign > Matrix6d_u
Definition: Eigen.h:112
SizeVector.h
MemoryInfo.h
cloudViewer::ScalarFieldTools::SetScalarValueInverted
static void SetScalarValueInverted(const CCVector3 &P, ScalarType &scalarValue)
Definition: ScalarFieldTools.cpp:32
cloudViewer::ManualSegmentationTools::MeshCutterParams::planeOrthoDim
unsigned char planeOrthoDim
Definition: ManualSegmentationTools.h:127
AtomicCounter::AtomicCounter
AtomicCounter()
Definition: NormalizedProgress.cpp:29
cloudViewer::NormalizedProgress::progressCallback
GenericProgressCallback * progressCallback
associated GenericProgressCallback
Definition: GenericProgressCallback.h:124
cloudViewer::DgmOctree::findBestLevelForAGivenCellNumber
unsigned char findBestLevelForAGivenCellNumber(unsigned indicativeNumberOfCells) const
Definition: DgmOctree.cpp:2766
cloudViewer::OrientedBoundingBox::volume
double volume() const
Returns the volume of the bounding box.
Definition: OrientedBoundingBox.cpp:30
cloudViewer::KDTree::updateOutsideBoundingBox
void updateOutsideBoundingBox(KdCell *cell)
Definition: CVKdTree.cpp:390
cloudViewer::ScalarField::reserveSafe
bool reserveSafe(std::size_t count)
Reserves memory (no exception thrown)
Definition: ScalarField.cpp:71
cloudViewer::utility::StringContains
bool StringContains(const std::string &src, const std::string &dst)
Definition: Helper.cpp:154
FindNearestCandidate
static PointCoordinateType FindNearestCandidate(unsigned &minIndex, const VertexIterator &itA, const VertexIterator &itB, const std::vector< Vertex2D > &points, const std::vector< HullPointFlags > &pointFlags, PointCoordinateType minSquareEdgeLength, PointCoordinateType maxSquareEdgeLength, bool allowLongerChunks=false)
Finds the nearest (available) point to an edge.
Definition: PointProjectionTools.cpp:514
cloudViewer::DgmOctree::getCellNumber
const unsigned & getCellNumber(unsigned char level) const
Returns the number of cells for a given level of subdivision.
Definition: DgmOctree.h:1038
cloudViewer::Delaunay2dMesh::m_cloudIsOwnedByMesh
bool m_cloudIsOwnedByMesh
Definition: Delaunay2dMesh.h:142
Eigen::Vector3uint8
Eigen::Matrix< uint8_t, 3, 1 > Vector3uint8
Definition: Eigen.h:108
cloudViewer::PointProjectionTools::IndexedCCVector2
Indexed 2D vector.
Definition: PointProjectionTools.h:161
CVTools::TimeOff
static QString TimeOff()
Definition: CVTools.cpp:39
cloudViewer::utility::filesystem::GetFileNameWithoutDirectory
std::string GetFileNameWithoutDirectory(const std::string &filename)
Definition: FileSystem.cpp:301
cloudViewer::utility::RotationMatrixX
Eigen::Matrix3d RotationMatrixX(double radians)
Definition: Eigen.cpp:248
cloudViewer::GenericTriangle::_getB
virtual const CCVector3 * _getB() const =0
Returns the second vertex (B)
cloudViewer::DgmOctree::m_cellCount
unsigned m_cellCount[MAX_OCTREE_LEVEL+1]
Number of cells per level of subdivision.
Definition: DgmOctree.h:1260
DelaunayLocalModel::m_tri
GenericMesh * m_tri
Associated triangulation.
Definition: LocalModel.cpp:100
Jacobi
Jacobi eigen vectors/values decomposition.
Definition: Jacobi.h:23
cloudViewer::FastMarching::Cell::state
STATE state
Cell state.
Definition: FastMarching.h:115
SimpleMesh.h
cloudViewer::utility::IntersectionTest::PointsCoplanar
static bool PointsCoplanar(const Eigen::Vector3d &p0, const Eigen::Vector3d &p1, const Eigen::Vector3d &p2, const Eigen::Vector3d &p3)
Tests if the given four points all lie on the same plane.
Definition: IntersectionTest.cpp:69
cloudViewer::WeibullDistribution::getOtherParameters
bool getOtherParameters(ScalarType &mu, ScalarType &sigma2) const
Returns the normal distribution equivalent parameters.
Definition: WeibullDistribution.cpp:104
cloudViewer::FastMarchingForPropagation::FastMarchingForPropagation
FastMarchingForPropagation()
Default constructor.
Definition: FastMarchingForPropagation.cpp:17
Edge::nearestPointSquareDist
float nearestPointSquareDist
Definition: PointProjectionTools.cpp:508
define_NormalDistribution
void define_NormalDistribution(py::module &cccorelib)
Definition: NormalDistribution.cpp:17
cloudViewer::GenericDistribution::ScalarContainer
std::vector< ScalarType > ScalarContainer
Scalar values container.
Definition: GenericDistribution.h:46
cloudViewer::utility::EstimateMaxThreads
int EstimateMaxThreads()
Estimate the maximum number of threads to be used in a parallel region.
Definition: Parallel.cpp:31
cloudViewer::ConjugateGradient::initConjugateGradient
void initConjugateGradient(const Scalar *X0)
Initializes the conjugate gradient.
Definition: ConjugateGradient.h:47
cloudViewer::DgmOctree::IndexAndCode::theIndex
unsigned theIndex
index
Definition: DgmOctree.h:303
cloudViewer::DgmOctree::octreeCell::parentOctree
const DgmOctree * parentOctree
Octree to which the cell belongs.
Definition: DgmOctree.h:359
Chi2Class::pi
double pi
Definition: StatisticalTestingTools.cpp:31
cloudViewer::FastMarchingForPropagation::extractPropagatedPoints
bool extractPropagatedPoints(ReferenceCloud *Zk)
Definition: FastMarchingForPropagation.cpp:141
Vector3Tpl< PointCoordinateType >
cloudViewer::DistanceComputationTools::Cloud2CloudDistancesComputationParams::useSphericalSearchForLocalModel
bool useSphericalSearchForLocalModel
Definition: DistanceComputationTools.h:66
cloudViewer::DistanceComputationTools::OUT_OF_MEMORY
@ OUT_OF_MEMORY
Definition: DistanceComputationTools.h:563
Edge::operator<
bool operator<(const Edge &e) const
Definition: PointProjectionTools.cpp:502
InsideOutsideIndexes
Definition: ManualSegmentationTools.cpp:339
s_lastProgressCount
static unsigned s_lastProgressCount
Definition: TrueKdTree.cpp:40
cloudViewer::GenericIndexedMesh::getNextTriangleVertIndexes
virtual VerticesIndexes * getNextTriangleVertIndexes()=0
cloudViewer::ScalarField::ValidValue
static bool ValidValue(ScalarType value)
Returns whether a scalar value is valid or not.
Definition: ScalarField.h:61
cloudViewer::utility::filesystem::IsFile
bool IsFile(const std::string &filename)
Definition: FileSystem.cpp:435
ComputeEdgePoint
bool ComputeEdgePoint(const CCVector3d &A, unsigned iA, const CCVector3d &B, unsigned iB, unsigned &iCoutside, unsigned &iCinside, double planeCoord, unsigned char planeDim, PointCloud *outsideVertices, PointCloud *insideVertices)
Definition: ManualSegmentationTools.cpp:362
cloudViewer::KDTree::m_associatedCloud
GenericIndexedCloud * m_associatedCloud
Associated cloud.
Definition: CVKdTree.h:173
QUADRIC
@ QUADRIC
Definition: CVConst.h:125
cloudViewer::FPCSRegistrationTools::Base::c
unsigned c
Definition: RegistrationTools.h:278
cloudViewer::ICPRegistrationTools::Parameters
ICP Parameters.
Definition: RegistrationTools.h:152
QuadricLocalModel::m_Z
unsigned char m_Z
Height function third dimension (0=X, 1=Y, 2=Z)
Definition: LocalModel.cpp:156
cloudViewer::ICPRegistrationTools::ICP_NOTHING_TO_DO
@ ICP_NOTHING_TO_DO
Definition: RegistrationTools.h:132
cloudViewer::core::AdvancedIndexPreprocessor::ShuffleIndexedDimsToFront
static std::pair< Tensor, std::vector< Tensor > > ShuffleIndexedDimsToFront(const Tensor &tensor, const std::vector< Tensor > &index_tensors)
Definition: AdvancedIndexing.cpp:41
WeibullDistribution.h
cloudViewer::utility::Timer::Start
void Start()
Definition: Timer.cpp:28
cloudViewer::ScalarField::getName
const char * getName() const
Returns scalar field name.
Definition: ScalarField.h:43
VertexIterator
std::list< Vertex2D * >::iterator VertexIterator
Definition: PointProjectionTools.cpp:488
cloudViewer::StatisticalTestingTools::testCloudWithStatisticalModel
static double testCloudWithStatisticalModel(const GenericDistribution *distrib, GenericIndexedCloudPersist *theCloud, unsigned numberOfNeighbours, double pTrust, GenericProgressCallback *progressCb=nullptr, DgmOctree *inputOctree=nullptr)
Definition: StatisticalTestingTools.cpp:251
TrianglesToTest::trianglesToTestCount
std::size_t trianglesToTestCount
Definition: DistanceComputationTools.cpp:1901
cloudViewer::utility::PhysicalConcurrency
static int PhysicalConcurrency()
Returns the number of physical CPU cores.
Definition: CPUInfo.cpp:36
GenericIndexedCloudPersist.h
cloudViewer::WeibullDistribution::computeMode
double computeMode() const
Returns the distribution 'mode'.
Definition: WeibullDistribution.cpp:420
cloudViewer::PointProjectionTools::Transformation::s
double s
Scale.
Definition: PointProjectionTools.h:46
TrianglesToTest::trianglesToTestCapacity
std::size_t trianglesToTestCapacity
Definition: DistanceComputationTools.cpp:1902
cloudViewer::DistanceComputationTools::Cloud2CloudDistancesComputationParams::kNNForLocalModel
unsigned kNNForLocalModel
Number of neighbours for nearest neighbours search (local model)
Definition: DistanceComputationTools.h:72
cloudViewer::utility::StringEndsWith
bool StringEndsWith(const std::string &str, const std::string &postfix)
Definition: Helper.cpp:163
cloudViewer::StatisticalTestingTools::computeChi2Probability
static double computeChi2Probability(double chi2result, int d)
Computes the Chi2 confidence probability.
Definition: StatisticalTestingTools.cpp:246
cloudViewer::DistanceComputationTools::Cloud2MeshDistancesComputationParams::octreeLevel
unsigned char octreeLevel
Definition: DistanceComputationTools.h:158
cloudViewer::t::geometry::path
static const std::string path
Definition: PointCloud.cpp:59
e
const double * e
Definition: essential_matrix_poly.h:10
Console.h
cloudViewer::DgmOctree::findNearestNeighborsStartingFromCell
unsigned findNearestNeighborsStartingFromCell(NearestNeighboursSearchStruct &nNSS, bool getOnlyPointsWithValidScalar=false) const
Definition: DgmOctree.cpp:1655
cloudViewer::GeometricalAnalysisTools::ComputeCharactersitic
static ErrorCode ComputeCharactersitic(GeomCharacteristic c, int subOption, GenericIndexedCloudPersist *cloud, PointCoordinateType kernelRadius, const CCVector3 *roughnessUpDir=nullptr, GenericProgressCallback *progressCb=nullptr, DgmOctree *inputOctree=nullptr)
Unified way to compute a geometric characteristic.
Definition: GeometricalAnalysisTools.cpp:29
ImportSourceVertices
bool ImportSourceVertices(GenericIndexedCloudPersist *srcVertices, SimpleMesh *newMesh, PointCloud *newVertices)
Definition: ManualSegmentationTools.cpp:558
define_StatisticalTestingTools
void define_StatisticalTestingTools(py::module &cccorelib)
Definition: StatisticalTestingTools.cpp:21
cloudViewer::SquareMatrix
SquareMatrixTpl< PointCoordinateType > SquareMatrix
Default CC square matrix type (PointCoordinateType)
Definition: SquareMatrix.h:1020
cloudViewer::OctreeAndMeshIntersection::distanceTransform
SaitoSquaredDistanceTransform * distanceTransform
Distance transform.
Definition: DistanceComputationTools.cpp:66
cloudViewer::Neighbourhood::computeCurvature
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
cloudViewer::TrueKdTree::BaseNode
Tree base node.
Definition: TrueKdTree.h:33
cloudViewer::GreaterThanEpsilon
bool GreaterThanEpsilon(float x)
Test a floating point number against our epsilon (a very small number).
Definition: CVMath.h:37
cloudViewer::KDTree::checkNearerPointInSubTree
int checkNearerPointInSubTree(const PointCoordinateType *queryPoint, ScalarType &maxSqrDist, KdCell *cell)
Definition: CVKdTree.cpp:502
cloudViewer::SimpleMesh::_getNextTriangle
GenericTriangle * _getNextTriangle() override
Returns the next triangle (relatively to the global iterator position)
Definition: SimpleMesh.cpp:45
cloudViewer::GeometricalAnalysisTools::ComputeWeightedCrossCovarianceMatrix
static SquareMatrixd ComputeWeightedCrossCovarianceMatrix(GenericCloud *P, GenericCloud *Q, const CCVector3 &pGravityCenter, const CCVector3 &qGravityCenter, ScalarField *coupleWeights=nullptr)
Definition: GeometricalAnalysisTools.cpp:650
define_DgmOctree
void define_DgmOctree(py::module &cccorelib)
Definition: DgmOctree.cpp:21
cloudViewer::TrueKdTree::m_maxError
double m_maxError
Max error for planarity-based split strategy (see m_errorMeasure)
Definition: TrueKdTree.h:159
cloudViewer::ICPRegistrationTools::ICP_ERROR_DIST_COMPUTATION
@ ICP_ERROR_DIST_COMPUTATION
Definition: RegistrationTools.h:137
cloudViewer::FastMarching::step
virtual int step()=0
Propagates the front (one step)
cloudViewer::GenericMesh::_getNextTriangle
virtual GenericTriangle * _getNextTriangle()=0
Returns the next triangle (relatively to the global iterator position)
cloudViewer::ReferenceCloud::forwardIterator
virtual void forwardIterator()
Forwards the local element iterator.
Definition: ReferenceCloud.h:133
cloudViewer::DgmOctree::NearestNeighboursSearchStruct::pointsInNeighbourhood
NeighboursSet pointsInNeighbourhood
Definition: DgmOctree.h:215
AXISTEST_Y02
#define AXISTEST_Y02(a, b, fa, fb)
Definition: CVMiscTools.cpp:57
cloudViewer::FastMarching::cleanLastPropagation
virtual void cleanLastPropagation()
Definition: FastMarching.cpp:143
ConjugateGradient.h
cloudViewer::SimpleMesh::m_bbox
BoundingBox m_bbox
Bounding-box.
Definition: SimpleMesh.h:118
cloudViewer::ScalarFieldTools::multiplyScalarFields
static void multiplyScalarFields(GenericIndexedCloud *firstCloud, GenericIndexedCloud *secondCloud, GenericProgressCallback *progressCb=nullptr)
Multiplies two scalar fields of the same size.
Definition: ScalarFieldTools.cpp:399
cloudViewer::ScalarField::countValidValues
std::size_t countValidValues() const
Returns the number of valid values in this scalar field.
Definition: ScalarField.cpp:29
cloudViewer::Delaunay2dMesh::m_numberOfTriangles
unsigned m_numberOfTriangles
The number of triangles.
Definition: Delaunay2dMesh.h:138
cloudViewer::GenericIndexedCloud::getNormal
virtual const CCVector3 * getNormal(unsigned index) const
If per-point normals are available, returns the one at a specific index.
Definition: GenericIndexedCloud.h:59
cloudViewer::GenericMesh::placeIteratorAtBeginning
virtual void placeIteratorAtBeginning()=0
Places the mesh iterator at the beginning.
cloudViewer::ICPRegistrationTools::Parameters::dataWeights
ScalarField * dataWeights
Weights for data points (optional)
Definition: RegistrationTools.h:200
POINT_FROZEN
@ POINT_FROZEN
Definition: PointProjectionTools.cpp:484
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
LogDebug
#define LogDebug(...)
Definition: Logging.h:90
cloudViewer::utility::RotationMatrixZ
Eigen::Matrix3d RotationMatrixZ(double radians)
Definition: Eigen.cpp:262
cloudViewer::DistanceComputationTools::computeCloud2RectangleEquation
static int computeCloud2RectangleEquation(GenericIndexedCloudPersist *cloud, PointCoordinateType widthX, PointCoordinateType widthY, const SquareMatrix &rotationTransform, const CCVector3 &center, bool signedDist=true, double *rms=nullptr)
Definition: DistanceComputationTools.cpp:3235
cloudViewer::ICPRegistrationTools::ICP_APPLY_TRANSFO
@ ICP_APPLY_TRANSFO
Definition: RegistrationTools.h:133
GetLeavesVisitor::visit
void visit(TrueKdTree::BaseNode *node)
Definition: TrueKdTree.cpp:304
POINT_NOT_USED
@ POINT_NOT_USED
Definition: PointProjectionTools.cpp:481
cloudViewer::ReferenceCloud::setPointIndex
virtual void setPointIndex(unsigned localIndex, unsigned globalIndex)
Sets global index for a given element.
Definition: ReferenceCloud.cpp:127
cloudViewer::SimpleMesh::vertices
const GenericIndexedCloud * vertices() const
Returns the vertices.
Definition: SimpleMesh.h:67
cloudViewer::DistanceComputationTools::EMPTY_CLOUD
@ EMPTY_CLOUD
Definition: DistanceComputationTools.h:563
cloudViewer::DistanceComputationTools::computeCellHausdorffDistanceWithLocalModel
static bool computeCellHausdorffDistanceWithLocalModel(const DgmOctree::octreeCell &cell, void **additionalParameters, NormalizedProgress *nProgress=nullptr)
Definition: DistanceComputationTools.cpp:466
define_RegistrationTools
void define_RegistrationTools(py::module &cccorelib)
Definition: RegistrationTools.cpp:17
dmat_solve
int dmat_solve(int n, int rhs_num, double a[])
Definition: GeometricalAnalysisTools.cpp:1184
MonoDimensionalCellCodes::VALUE_COUNT
static const int VALUE_COUNT
Total number of positions/values.
Definition: DgmOctree.cpp:70
cloudViewer::KMeanClass
A K-mean class position and boundaries.
Definition: ScalarFieldTools.h:22
CVTools::TimeStart
static void TimeStart()
Definition: CVTools.cpp:37
cloudViewer::core::AdvancedIndexPreprocessor::ExpandToCommonShapeExceptZeroDim
static std::pair< std::vector< Tensor >, SizeVector > ExpandToCommonShapeExceptZeroDim(const std::vector< Tensor > &index_tensors)
Definition: AdvancedIndexing.cpp:63
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
cloudViewer::PointCloud
Definition: CVPointCloud.h:18
cloudViewer::ScalarFieldTools::SetScalarValueToZero
static void SetScalarValueToZero(const CCVector3 &P, ScalarType &scalarValue)
Sets the distance value associated to a point to zero.
Definition: ScalarFieldTools.cpp:27
ScalarFieldView::applySlicing
void applySlicing(const py::slice &slice)
Definition: ScalarField.cpp:133
define_ErrorFunction
void define_ErrorFunction(py::module &cccorelib)
Definition: ErrorFunction.cpp:15
cloudViewer::FastMarching::addTrialCell
virtual void addTrialCell(unsigned index)
Add a cell to the TRIAL cells list.
Definition: FastMarching.cpp:191
cloudViewer::FastMarchingForPropagation::init
int init(GenericCloud *theCloud, DgmOctree *theOctree, unsigned char gridLevel, bool constantAcceleration=false)
Initializes the grid with a point cloud (and ist corresponding octree)
Definition: FastMarchingForPropagation.cpp:27
cloudViewer::ReferenceCloud::invalidateBoundingBox
void invalidateBoundingBox()
Invalidates the bounding-box.
Definition: ReferenceCloud.h:227
Timer.h
define_PointProjectionTools
void define_PointProjectionTools(py::module &cccorelib)
Definition: PointProjectionTools.cpp:22
cloudViewer::ManualSegmentationTools::MeshCutterParams::origTriIndexesMapOutside
std::vector< unsigned > origTriIndexesMapOutside
Definition: ManualSegmentationTools.h:134
cloudViewer::BoundingBoxTpl::isValid
bool isValid() const
Returns whether bounding box is valid or not.
Definition: BoundingBox.h:203
cloudViewer::PointCloudTpl::capacity
unsigned capacity() const
Returns cloud capacity (i.e. reserved size)
Definition: PointCloudTpl.h:540
cloudViewer::DgmOctree::octreeCell::octreeCell
octreeCell(const DgmOctree *parentOctree)
Default constructor.
Definition: DgmOctree.cpp:3482
cloudViewer::DistanceComputationTools::Cloud2MeshDistancesComputationParams::maxSearchDist
ScalarType maxSearchDist
Max search distance (acceleration)
Definition: DistanceComputationTools.h:164
cloudViewer::DistanceComputationTools::computeCloud2MeshDistances
static int computeCloud2MeshDistances(GenericIndexedCloudPersist *pointCloud, GenericIndexedMesh *mesh, Cloud2MeshDistancesComputationParams &params, GenericProgressCallback *progressCb=nullptr, DgmOctree *cloudOctree=nullptr)
Computes the distance between a point cloud and a mesh.
Definition: DistanceComputationTools.cpp:2498
cloudViewer::utility::Timer::GetDurationInMillisecond
double GetDurationInMillisecond() const
Definition: Timer.cpp:36
cloudViewer::utility::filesystem::EnsureTrailingSlash
std::string EnsureTrailingSlash(const std::string &str)
Definition: FileSystem.cpp:106
cloudViewer::FastMarching::getNearestTrialCell
virtual unsigned getNearestTrialCell()
Returns the TRIAL cell with the smallest front arrival time.
Definition: FastMarching.cpp:206
cloudViewer::CloudSamplingTools::subsampleCloudWithOctree
static ReferenceCloud * subsampleCloudWithOctree(GenericIndexedCloudPersist *cloud, int newNumberOfPoints, SUBSAMPLING_CELL_METHOD subsamplingMethod, GenericProgressCallback *progressCb=nullptr, DgmOctree *inputOctree=nullptr)
Subsamples a point cloud (process based on the octree)
Definition: CloudSamplingTools.cpp:99
CCShareable::link
virtual void link()
Increase counter.
Definition: CVShareable.cpp:33
cloudViewer::ReferenceCloud::setAssociatedCloud
virtual void setAssociatedCloud(GenericIndexedCloudPersist *cloud)
Sets the associated (source) cloud.
Definition: ReferenceCloud.cpp:161
BitShiftValues::values
unsigned char values[DgmOctree::MAX_OCTREE_LEVEL+1]
Values.
Definition: DgmOctree.cpp:59
cloudViewer::DistanceComputationTools::computeCloud2ConeEquation
static int computeCloud2ConeEquation(GenericIndexedCloudPersist *cloud, const CCVector3 &coneP1, const CCVector3 &coneP2, const PointCoordinateType coneR1, const PointCoordinateType coneR2, bool signedDistances=true, bool solutionType=false, double *rms=nullptr)
Computes the distance between each point in a cloud and a cone.
Definition: DistanceComputationTools.cpp:2899
cloudViewer::SimpleMesh::m_triIndexes
TriangleIndexesContainer m_triIndexes
The triangles indexes.
Definition: SimpleMesh.h:104
AtomicCounter::load
int load()
Definition: NormalizedProgress.cpp:30
cloudViewer::DistanceComputationTools::SYNCHRONIZED
@ SYNCHRONIZED
Definition: DistanceComputationTools.h:563
cloudViewer::VerticesIndexes::i3
unsigned i3
Definition: GenericIndexedMesh.h:19
cloudViewer::NormalizedProgress::m_percentAdd
float m_percentAdd
Percentage added to total progress value at each step.
Definition: GenericProgressCallback.h:116
cloudViewer::utility::filesystem::GetRegularizedDirectoryName
std::string GetRegularizedDirectoryName(const std::string &directory)
Definition: FileSystem.cpp:323
CVLog::VerbosityLevel
static int VerbosityLevel()
Returns the current verbosity level.
Definition: CVLog.cpp:57
cloudViewer::TrueKdTree::Node::leftChild
BaseNode * leftChild
Definition: TrueKdTree.h:58
ZERO_TOLERANCE_D
constexpr double ZERO_TOLERANCE_D
Definition: CVConst.h:49
cloudViewer::DgmOctree::findTheNearestNeighborStartingFromCell
double findTheNearestNeighborStartingFromCell(NearestNeighboursSearchStruct &nNSS) const
Definition: DgmOctree.cpp:1468
CVLog::EnableMessageBackup
static void EnableMessageBackup(bool state)
Enables the message backup system.
Definition: CVLog.cpp:55
cloudViewer::VerticesIndexes::i
unsigned i[3]
Definition: GenericIndexedMesh.h:21
cloudViewer::DgmOctree::m_dimMax
CCVector3 m_dimMax
Max coordinates of the octree bounding-box.
Definition: DgmOctree.h:1245
CCShareable::release
virtual void release()
Decrease counter and deletes object when 0.
Definition: CVShareable.cpp:35
cloudViewer::DgmOctreeReferenceCloud::forEach
void forEach(genericPointAction action) override
Fast iteration mechanism.
Definition: DgmOctreeReferenceCloud.cpp:65
cloudViewer::FastMarching::getTime
virtual float getTime(Tuple3i &pos, bool absoluteCoordinates=false) const
Returns the front arrival time at a given cell.
Definition: FastMarching.cpp:49
Vector2Tpl::x
Type x
Definition: CVGeom.h:36
cloudViewer::Delaunay2dMesh::m_triIndexes
int * m_triIndexes
Triangle vertex indexes.
Definition: Delaunay2dMesh.h:129
cloudViewer::RegistrationTools::SKIP_NONE
@ SKIP_NONE
Definition: RegistrationTools.h:30
cloudViewer::SimpleMesh::theVertices
GenericIndexedCloud * theVertices
The associated point cloud (vertices)
Definition: SimpleMesh.h:112
cloudViewer::FastMarching
Fast Marching algorithm (front propagation)
Definition: FastMarching.h:41
cloudViewer::SaitoSquaredDistanceTransform
Definition: SaitoSquaredDistanceTransform.h:25
define_ChamferDistanceTransform
void define_ChamferDistanceTransform(py::module &cccorelib)
Definition: ChamferDistanceTransform.cpp:15
cloudViewer::NormalDistribution::setChi2ClassesPositions
virtual bool setChi2ClassesPositions(unsigned numberOfClasses)
Compute each Chi2 class limits.
Definition: NormalDistribution.cpp:221
cloudViewer::DistanceComputationTools::ERROR_MEASURES
ERROR_MEASURES
Error estimators.
Definition: DistanceComputationTools.h:410
cloudViewer::ScalarFieldTools::countScalarFieldValidValues
static unsigned countScalarFieldValidValues(const GenericCloud *theCloud)
Count the number of valid values in a scalar field.
Definition: ScalarFieldTools.cpp:447
CVGeom.h
CVLog::ErrorDebug
static bool ErrorDebug(const char *format,...)
Same as Error, but works only in Debug mode.
Definition: CVLog.cpp:181
cloudViewer::ReferenceCloud::placeIteratorAtBeginning
void placeIteratorAtBeginning() override
Sets the cloud iterator at the beginning.
Definition: ReferenceCloud.h:50
cloudViewer::DistanceComputationTools::SOReturnCode
SOReturnCode
Return codes for DistanceComputationTools::synchronizeOctrees.
Definition: DistanceComputationTools.h:563
Vector3Tpl< PointCoordinateType >::vdistance2
static PointCoordinateType vdistance2(const PointCoordinateType p[], const PointCoordinateType q[])
Definition: CVGeom.h:581
AABB::intersects
bool intersects(const Ray< T > &r, T *t0=0, T *t1=0) const
Definition: RayAndBox.h:69
cloudViewer::FastMarching::initGridWithOctree
virtual int initGridWithOctree(DgmOctree *octree, unsigned char gridLevel)
Definition: FastMarching.cpp:78
cloudViewer::ErrorFunction::erf
static double erf(double x)
Computes erf(x)
Definition: ErrorFunction.cpp:22
IndexAndCodeExt::theCode
DgmOctree::CellCode theCode
cell code
Definition: DgmOctree.cpp:3077
cloudViewer::utility::filesystem::CFile::CurPos
int64_t CurPos()
Returns current position in the file (ftell).
Definition: FileSystem.cpp:760
cloudViewer::c_FastMarchingNeighbourPosShift
const int c_FastMarchingNeighbourPosShift[]
Grid neighboring cells positions.
Definition: FastMarching.h:29
cloudViewer::DistanceComputationTools::computeCloud2DiscEquation
static int computeCloud2DiscEquation(GenericIndexedCloudPersist *cloud, const CCVector3 &discCenter, const PointCoordinateType discRadius, const SquareMatrix &rotationTransform, bool signedDistances=true, double *rms=nullptr)
Computes the distance between each point in a cloud and a disc.
Definition: DistanceComputationTools.cpp:3413
cloudViewer::FastMarching::m_neighboursDistance
float m_neighboursDistance[26]
Neighbours distance weight.
Definition: FastMarching.h:251
cloudViewer::KDTree::~KDTree
virtual ~KDTree()
Destructor.
Definition: CVKdTree.cpp:21
cloudViewer::DgmOctree::extractCCs
int extractCCs(const cellCodesContainer &cellCodes, unsigned char level, bool sixConnexity, GenericProgressCallback *progressCb=nullptr) const
Definition: DgmOctree.cpp:3093
cloudViewer::FastMarching::pos2index
unsigned pos2index(const Tuple3i &pos) const
Definition: FastMarching.h:87
cloudViewer::KMeanClass::minValue
ScalarType minValue
K-mean class minimum value.
Definition: ScalarFieldTools.h:26
cloudViewer::ICPRegistrationTools::Parameters::filterOutFarthestPoints
bool filterOutFarthestPoints
Definition: RegistrationTools.h:185
cloudViewer::ScalarField::getMax
ScalarType getMax() const
Returns the maximum value.
Definition: ScalarField.h:74
Chi2Class
Definition: StatisticalTestingTools.cpp:30
AXISTEST_Y1
#define AXISTEST_Y1(a, b, fa, fb)
Definition: CVMiscTools.cpp:63
cloudViewer::GeometricalAnalysisTools::DetectCircle
static ErrorCode DetectCircle(GenericIndexedCloudPersist *cloud, CCVector3 &center, CCVector3 &normal, PointCoordinateType &radius, double &rms, GenericProgressCallback *progressCb=nullptr)
Detects a circle from a point cloud.
Definition: GeometricalAnalysisTools.cpp:975
cloudViewer::utility::filesystem::CopyDir
bool CopyDir(const std::string &from, const std::string &to)
Copy a directory.
Definition: FileSystem.cpp:202
cloudViewer::Neighbourhood
Definition: Neighbourhood.h:25
cloudViewer::FastMarching::Cell::T
float T
Front arrival time.
Definition: FastMarching.h:118
cloudViewer::core::AdvancedIndexPreprocessor
This class is based on PyTorch's aten/src/ATen/native/Indexing.cpp.
Definition: AdvancedIndexing.h:21
cloudViewer::NormalizedProgress::m_step
unsigned m_step
Definition: GenericProgressCallback.h:113
cloudViewer::utility::filesystem::DeleteDirectory
bool DeleteDirectory(const std::string &directory)
Definition: FileSystem.cpp:514
cloudViewer::ReferenceCloud::setPointScalarValue
void setPointScalarValue(unsigned pointIndex, ScalarType value) override
Sets the ith point associated scalar value.
Definition: ReferenceCloud.h:66
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
define_GeometricalAnalysisTools
void define_GeometricalAnalysisTools(py::module &cccorelib)
Definition: GeometricalAnalysisTools.cpp:19
cloudViewer::Neighbourhood::m_associatedCloud
GenericIndexedCloudPersist * m_associatedCloud
Associated cloud.
Definition: Neighbourhood.h:319
cloudViewer::CCMiscTools::EnlargeBox
static void EnlargeBox(CCVector3 &dimMin, CCVector3 &dimMax, double coef)
Proportionally enlarges a 3D box.
Definition: CVMiscTools.cpp:114
cloudViewer::PointCloudTpl::reset
void reset()
Clears the cloud database.
Definition: PointCloudTpl.h:233
cloudViewer::DgmOctree::getPointsInCellByCellIndex
bool getPointsInCellByCellIndex(ReferenceCloud *cloud, unsigned cellIndex, unsigned char level, bool clearOutputCloud=true) const
Returns the points lying in a specific cell.
Definition: DgmOctree.cpp:2879
cloudViewer::core::AdvancedIndexPreprocessor::index_tensors_
std::vector< Tensor > index_tensors_
The processed index tensors.
Definition: AdvancedIndexing.h:94
cloudViewer::GenericCloud::testVisibility
virtual unsigned char testVisibility(const CCVector3 &P) const
Definition: GenericCloud.h:65
cloudViewer::system::operator<<
std::ostream & operator<<(std::ostream &os, const MemoryInfo &infos)
Definition: MemoryInfo.cpp:146
cloudViewer::PointCloudTpl::reserve
virtual bool reserve(unsigned newCapacity)
Reserves memory for the point database.
Definition: PointCloudTpl.h:213
cloudViewer::NormalizedProgress::~NormalizedProgress
virtual ~NormalizedProgress()
Destructor.
Definition: NormalizedProgress.cpp:55
CHAMFER_DISTANCE_TYPE
CHAMFER_DISTANCE_TYPE
Chamfer distances types.
Definition: CVConst.h:114
cloudViewer::ICPRegistrationTools::ICP_ERROR_NOT_ENOUGH_MEMORY
@ ICP_ERROR_NOT_ENOUGH_MEMORY
Definition: RegistrationTools.h:138
CVTools::ToNativeSeparators
static QString ToNativeSeparators(const QString &path)
Definition: CVTools.cpp:45
cloudViewer::CloudSamplingTools::noiseFilter
static ReferenceCloud * noiseFilter(GenericIndexedCloudPersist *cloud, PointCoordinateType kernelRadius, double nSigma, bool removeIsolatedPoints=false, bool useKnn=false, int knn=6, bool useAbsoluteError=true, double absoluteError=0.0, DgmOctree *octree=nullptr, GenericProgressCallback *progressCb=nullptr)
Noise filter based on the distance to the approximate local surface.
Definition: CloudSamplingTools.cpp:563
cloudViewer::DgmOctree::getMinFillIndexes
const int * getMinFillIndexes(unsigned char level) const
Definition: DgmOctree.h:474
cloudViewer::DgmOctree::NearestNeighboursSearchStruct::maxSearchSquareDistd
double maxSearchSquareDistd
Maximum neihgbours distance.
Definition: DgmOctree.h:196
ScalarFieldView
Definition: ScalarField.cpp:19
DataCloud::rotatedCloud
PointCloud * rotatedCloud
Definition: RegistrationTools.cpp:139
cloudViewer::GenericDistribution::isValid
virtual bool isValid() const
Indicates if the distribution parameters are valid.
Definition: GenericDistribution.h:43
cloudViewer::DgmOctree::GenerateTruncatedCellCode
static CellCode GenerateTruncatedCellCode(const Tuple3i &cellPos, unsigned char level)
Definition: DgmOctree.cpp:120
core
cloudViewer::DgmOctree::octreeCell::truncatedCode
CellCode truncatedCode
Truncated cell code.
Definition: DgmOctree.h:361
cloudViewer::DistanceComputationTools::computeCellHausdorffDistance
static bool computeCellHausdorffDistance(const DgmOctree::octreeCell &cell, void **additionalParameters, NormalizedProgress *nProgress=nullptr)
Definition: DistanceComputationTools.cpp:370
cloudViewer::ICPRegistrationTools::ICP_ERROR_REGISTRATION_STEP
@ ICP_ERROR_REGISTRATION_STEP
Definition: RegistrationTools.h:136
cloudViewer::utility::IntersectionTest::AABBAABB
static bool AABBAABB(const Eigen::Vector3d &min0, const Eigen::Vector3d &max0, const Eigen::Vector3d &min1, const Eigen::Vector3d &max1)
Definition: IntersectionTest.cpp:16
cloudViewer::DgmOctree::getPointsInBoxNeighbourhood
std::size_t getPointsInBoxNeighbourhood(BoxNeighbourhood &params) const
Returns the points falling inside a box.
Definition: DgmOctree.cpp:1951
cloudViewer::core::Bool
const Dtype Bool
Definition: Dtype.cpp:52
cloudViewer::core::Dtype::ToString
std::string ToString() const
Definition: Dtype.h:65
cloudViewer::SquareMatrixTpl::setValue
void setValue(unsigned row, unsigned column, Scalar value)
Sets a particular matrix value.
Definition: SquareMatrix.h:163
cloudViewer::DgmOctree::getCellIndexes
bool getCellIndexes(unsigned char level, cellIndexesContainer &vec) const
Definition: DgmOctree.cpp:2850
cloudViewer::DgmOctree::NearestNeighboursSearchStruct::queryPoint
CCVector3 queryPoint
Query point.
Definition: DgmOctree.h:167
cloudViewer::DistanceComputationTools::Cloud2CloudDistancesComputationParams::splitDistances
ScalarField * splitDistances[3]
Split distances (one scalar field per dimension: X, Y and Z)
Definition: DistanceComputationTools.h:94
cloudViewer::DistanceComputationTools::computeGeodesicDistances
static bool computeGeodesicDistances(GenericIndexedCloudPersist *cloud, unsigned seedPointIndex, unsigned char octreeLevel, GenericProgressCallback *progressCb=nullptr)
Definition: DistanceComputationTools.cpp:3680
cloudViewer::ICPRegistrationTools::Parameters::convType
CONVERGENCE_TYPE convType
Convergence type.
Definition: RegistrationTools.h:169
Vector3Tpl< PointCoordinateType >::vsubstract
static void vsubstract(const PointCoordinateType p[], const PointCoordinateType q[], PointCoordinateType r[])
Definition: CVGeom.h:550
s_backupEnabled
static bool s_backupEnabled
Definition: CVLog.cpp:39
cloudViewer::DgmOctree
The octree structure used throughout the library.
Definition: DgmOctree.h:39
POINT_IGNORED
@ POINT_IGNORED
Definition: PointProjectionTools.cpp:483
cloudViewer::DgmOctree::NearestNeighboursSearchStruct
Container of in/out parameters for nearest neighbour(s) search.
Definition: DgmOctree.h:161
LOG_NAT_2
static const double LOG_NAT_2
Const value: ln(2)
Definition: DgmOctree.cpp:44
cloudViewer::GenericCloud::placeIteratorAtBeginning
virtual void placeIteratorAtBeginning()=0
Sets the cloud iterator at the beginning.
cloudViewer::WeibullDistribution::m_mu
ScalarType m_mu
Normal distribution equivalent parameter: mean.
Definition: WeibullDistribution.h:101
cloudViewer::ErrorFunction::erfc
static double erfc(double x)
Computes erfc(x)
Definition: ErrorFunction.cpp:49
Garbage
Garbage container (automatically deletes pointers when destroyed)
Definition: Garbage.h:15
cloudViewer::core::AdvancedIndexPreprocessor::RestrideTensor
static Tensor RestrideTensor(const Tensor &tensor, int64_t dims_before, int64_t dims_indexed, SizeVector replacement_shape)
Definition: AdvancedIndexing.cpp:85
cloudViewer::OrientedBoundingBox::color_
Eigen::Vector3d color_
The color of the bounding box in RGB.
Definition: OrientedBoundingBox.h:117
cloudViewer::utility::filesystem::FOpen
FILE * FOpen(const std::string &filename, const std::string &mode)
Definition: FileSystem.cpp:609
cloudViewer::Neighbourhood::EigenValue2
@ EigenValue2
Definition: Neighbourhood.h:174
cloudViewer::CloudSamplingTools::sorFilter
static ReferenceCloud * sorFilter(GenericIndexedCloudPersist *cloud, int knn=6, double nSigma=1.0, DgmOctree *octree=nullptr, GenericProgressCallback *progressCb=nullptr)
Statistical Outliers Removal (SOR) filter.
Definition: CloudSamplingTools.cpp:464
cloudViewer::Neighbourhood::EigenValuesSum
@ EigenValuesSum
Definition: Neighbourhood.h:162
cloudViewer::PointProjectionTools
Definition: PointProjectionTools.h:34
cloudViewer::FPCSRegistrationTools::Base::b
unsigned b
Definition: RegistrationTools.h:278
cloudViewer::RegistrationTools::RegistrationProcedure
static bool RegistrationProcedure(GenericCloud *P, GenericCloud *X, ScaledTransformation &trans, bool adjustScale=false, ScalarField *coupleWeights=nullptr, PointCoordinateType aPrioriScale=1.0f, CCVector3 *Gp=nullptr, CCVector3 *Gx=nullptr)
ICP Registration procedure with optional scale estimation.
Definition: RegistrationTools.cpp:849
define_SimpleMesh
void define_SimpleMesh(py::module &cccorelib)
Definition: SimpleMesh.cpp:18
cloudViewer::ICPRegistrationTools::Parameters::nbMaxIterations
unsigned nbMaxIterations
Definition: RegistrationTools.h:177
Vector3Tpl< PointCoordinateType >::vnorm
static PointCoordinateType vnorm(const PointCoordinateType p[])
Definition: CVGeom.h:594
cloudViewer::utility::GetCurrentTimeStamp
std::string GetCurrentTimeStamp()
Returns current time stamp.
Definition: Helper.cpp:286
cloudViewer::DgmOctree::findPointNeighbourhood
unsigned findPointNeighbourhood(const CCVector3 *_queryPoint, ReferenceCloud *Yk, unsigned maxNumberOfNeighbors, unsigned char level, double &maxSquareDist, double maxSearchDist=0, int *finalNeighbourhoodSize=nullptr) const
Finds the nearest neighbours around a query point.
Definition: DgmOctree.cpp:721
cloudViewer::DgmOctree::m_numberOfProjectedPoints
unsigned m_numberOfProjectedPoints
Number of points projected in the octree.
Definition: DgmOctree.h:1236
Vector3Tpl< PointCoordinateType >::vnorm2
static PointCoordinateType vnorm2(const PointCoordinateType p[])
Definition: CVGeom.h:573
cloudViewer::utility::filesystem::GetEnvVar
std::string GetEnvVar(const std::string &env_var)
Definition: FileSystem.cpp:66
cloudViewer::utility::ToLower
std::string ToLower(const std::string &s)
Convert string to the lower case.
Definition: Helper.cpp:242
cloudViewer::TrueKdTree::m_associatedCloud
GenericIndexedCloudPersist * m_associatedCloud
Associated cloud.
Definition: TrueKdTree.h:156
cloudViewer::ChamferDistanceTransform::propagateDistance
int propagateDistance(CHAMFER_DISTANCE_TYPE type, GenericProgressCallback *progressCb=nullptr)
Computes the Chamfer distance on the whole grid.
Definition: ChamferDistanceTransform.cpp:112
cloudViewer::Delaunay2dMesh::m_globalIteratorEnd
int * m_globalIteratorEnd
End position of global iterator.
Definition: Delaunay2dMesh.h:135
cloudViewer::DgmOctree::getCellIndex
unsigned getCellIndex(CellCode truncatedCellCode, unsigned char bitDec) const
Returns the index of a given cell represented by its code.
Definition: DgmOctree.cpp:559
cloudViewer::DgmOctree::CylindricalNeighbourhood::onlyPositiveDir
bool onlyPositiveDir
Definition: DgmOctree.h:673
cloudViewer::ReferenceCloud::m_bbox
BoundingBox m_bbox
Bounding-box.
Definition: ReferenceCloud.h:240
QtCompatTextCodec::toUnicode
QString toUnicode(const char *chars, int len=-1)
Definition: QtCompat.h:610
cloudViewer::utility::floor
MiniVec< float, N > floor(const MiniVec< float, N > &a)
Definition: MiniVec.h:75
cloudViewer::LocalModel::computeDistanceFromModelToPoint
virtual ScalarType computeDistanceFromModelToPoint(const CCVector3 *P, CCVector3 *nearestPoint=nullptr) const =0
Compute the (unsigned) distance between a 3D point and this model.
cloudViewer::DgmOctree::getNumberOfProjectedPoints
unsigned getNumberOfProjectedPoints() const
Returns the number of points projected into the octree.
Definition: DgmOctree.h:446
a
a[190]
Definition: essential_matrix_poly.h:19
Vector2Tpl::dot
Type dot(const Vector2Tpl &v) const
Dot product.
Definition: CVGeom.h:71
cloudViewer::Neighbourhood::computeFeature
double computeFeature(GeomFeature feature)
Computes the given feature on a set of point.
Definition: Neighbourhood.cpp:796
cloudViewer::PointCloudTpl::getPointScalarValue
ScalarType getPointScalarValue(unsigned pointIndex) const override
Definition: PointCloudTpl.h:134
cloudViewer::NormalizedProgress::m_counter
AtomicCounter * m_counter
Current number of calls to 'oneStep'.
Definition: GenericProgressCallback.h:121
cloudViewer::core::Tensor::GetDevice
Device GetDevice() const override
Definition: Tensor.cpp:1435
cloudViewer::utility::filesystem::CopyFile
bool CopyFile(const std::string &from, const std::string &to)
Copy a file.
Definition: FileSystem.cpp:163
cloudViewer::system::MemoryInfo::availableRam
std::size_t availableRam
Definition: MemoryInfo.h:22
cloudViewer::ScalarField::flagValueAsInvalid
void flagValueAsInvalid(std::size_t index)
Sets the value as 'invalid' (i.e. NAN_VALUE)
Definition: ScalarField.h:66
cloudViewer::ICPRegistrationTools::Parameters::maxThreadCount
int maxThreadCount
Maximum number of threads to use (0 = max)
Definition: RegistrationTools.h:207
cloudViewer::utility::filesystem::ListFilesInDirectory
bool ListFilesInDirectory(const std::string &directory, std::vector< std::string > &filenames)
Definition: FileSystem.cpp:561
cloudViewer::utility::IJsonConvertible::EigenVector3dFromJsonArray
static bool EigenVector3dFromJsonArray(Eigen::Vector3d &vec, const Json::Value &value)
Definition: IJsonConvertible.cpp:43
PointProjectionTools.h
cloudViewer::utility::RotationMatrixY
Eigen::Matrix3d RotationMatrixY(double radians)
Definition: Eigen.cpp:255
cloudViewer::OctreeAndMeshIntersection
Definition: DistanceComputationTools.cpp:59
cloudViewer::DistanceComputationTools::diff
static int diff(GenericIndexedCloudPersist *comparedCloud, GenericIndexedCloudPersist *referenceCloud, GenericProgressCallback *progressCb=nullptr)
Definition: DistanceComputationTools.cpp:3720
cloudViewer::SaitoSquaredDistanceTransform::EDT_1D
static bool EDT_1D(GridElement *slice, std::size_t r, std::size_t c)
1D Euclidean Distance Transform
Definition: SaitoSquaredDistanceTransform.cpp:19
cloudViewer::ICPRegistrationTools::Parameters::finalOverlapRatio
double finalOverlapRatio
Definition: RegistrationTools.h:193
CVPointCloud.h
callback
std::function< void(std::shared_ptr< core::Tensor >)> callback
Definition: FilamentRenderer.cpp:183
cloudViewer::KDTree::KdCell::gSon
struct KdCell * gSon
Definition: CVKdTree.h:146
cloudViewer::core::AdvancedIndexPreprocessor::GetIndexedStrides
SizeVector GetIndexedStrides() const
Definition: AdvancedIndexing.h:39
cloudViewer::DistanceComputationTools::RMS
@ RMS
Definition: DistanceComputationTools.h:411
cloudViewer::MeshSamplingTools::EdgeConnectivityStats::edgesCount
unsigned edgesCount
Total number of edges.
Definition: MeshSamplingTools.h:51
cloudViewer::PointProjectionTools::Transformation::T
CCVector3d T
Translation.
Definition: PointProjectionTools.h:44
cloudViewer::utility::filesystem::CFile::ReadData
size_t ReadData(T *data, size_t num_elems)
Definition: FileSystem.h:253
cloudViewer::utility::CPUInfo::GetInstance
static CPUInfo & GetInstance()
Definition: CPUInfo.cpp:174
cloudViewer::DgmOctree::CylindricalNeighbourhood::dir
CCVector3 dir
Cylinder axis (direction)
Definition: DgmOctree.h:662
cloudViewer::GenericCloud::forEach
virtual void forEach(genericPointAction action)=0
Fast iteration mechanism.
AXISTEST_X2
#define AXISTEST_X2(a, b, fa, fb)
Definition: CVMiscTools.cpp:49
cloudViewer::core::AdvancedIndexPreprocessor::RestrideIndexTensor
static Tensor RestrideIndexTensor(const Tensor &index_tensor, int64_t dims_before, int64_t dims_after)
Definition: AdvancedIndexing.cpp:100
AddTriangle
bool AddTriangle(unsigned iA, unsigned iB, unsigned iC, SimpleMesh *mesh, bool directOrder)
Definition: ManualSegmentationTools.cpp:410
cloudViewer::NormalDistribution::m_chi2ClassesPositions
std::vector< ScalarType > m_chi2ClassesPositions
Chi2 classes limits.
Definition: NormalDistribution.h:98
points
int points
Definition: FileIOFactory.cpp:144
DelaunayLocalModel::DelaunayLocalModel
DelaunayLocalModel(GenericMesh *tri, const CCVector3 &center, PointCoordinateType squaredRadius)
Constructor.
Definition: LocalModel.cpp:56
cloudViewer::NormalDistribution::m_Pi
std::vector< ScalarType > m_Pi
Structure used during the Chi2 distance computation.
Definition: NormalDistribution.h:101
cloudViewer::GenericIndexedMesh
A generic mesh with index-based vertex access.
Definition: GenericIndexedMesh.h:37
cloudViewer::utility::filesystem::GetFileParentDirectory
std::string GetFileParentDirectory(const std::string &filename)
Definition: FileSystem.cpp:314
cloudViewer::OrientedBoundingBox::Clear
OrientedBoundingBox & Clear()
Definition: OrientedBoundingBox.cpp:22
cloudViewer::utility::GetProgramOptionAsDouble
double GetProgramOptionAsDouble(int argc, char **argv, const std::string &option, const double default_value=0.0)
Definition: Console.cpp:52
cloudViewer::GenericProgressCallback::textCanBeEdited
virtual bool textCanBeEdited() const
Returns whether the dialog title and info can be updated or not.
Definition: GenericProgressCallback.h:70
POINT_VISIBLE
constexpr unsigned char POINT_VISIBLE
Definition: CVConst.h:92
cloudViewer::Neighbourhood::DUPLICATE_VERTICES
static constexpr bool DUPLICATE_VERTICES
Definition: Neighbourhood.h:29
cloudViewer::CloudSamplingTools::resampleCloudWithOctree
static GenericIndexedCloud * resampleCloudWithOctree(GenericIndexedCloudPersist *cloud, int newNumberOfPoints, RESAMPLING_CELL_METHOD resamplingMethod, GenericProgressCallback *progressCb=nullptr, DgmOctree *inputOctree=nullptr)
Resamples a point cloud (process based on the octree)
Definition: CloudSamplingTools.cpp:27
cloudViewer::DgmOctree::updateCellCountTable
void updateCellCountTable()
Definition: DgmOctree.cpp:416
Message::text
QString text
Definition: CVLog.cpp:34
cloudViewer::utility::Timer::Stop
void Stop()
Definition: Timer.cpp:32
cloudViewer::LocalModel::getType
virtual CV_LOCAL_MODEL_TYPES getType() const =0
Returns the model type.
cloudViewer::DgmOctree::m_cellSize
PointCoordinateType m_cellSize[MAX_OCTREE_LEVEL+2]
Cell dimensions for all subdivision levels.
Definition: DgmOctree.h:1255
MonoDimensionalCellCodes::values
cloudViewer::DgmOctree::CellCode values[VALUE_COUNT]
Mono-dimensional cell codes.
Definition: DgmOctree.cpp:101
cloudViewer::TrueKdTree::build
bool build(double maxError, DistanceComputationTools::ERROR_MEASURES errorMeasure=DistanceComputationTools::RMS, unsigned minPointCountPerCell=3, unsigned maxPointCountPerCell=0, GenericProgressCallback *progressCb=nullptr)
Builds KD-tree.
Definition: TrueKdTree.cpp:247
cloudViewer::SimpleMesh::clear
void clear()
Clears the mesh.
Definition: SimpleMesh.h:70
cloudViewer::utility::filesystem::FReadToBuffer
bool FReadToBuffer(const std::string &path, std::vector< char > &bytes, std::string *errorStr)
Definition: FileSystem.cpp:678
Tuple3Tpl::z
Type z
Definition: CVGeom.h:137
cloudViewer::ScalarFieldTools::computeMeanScalarValue
static ScalarType computeMeanScalarValue(GenericCloud *theCloud)
Computes the mean value of a scalar field associated to a cloud.
Definition: ScalarFieldTools.cpp:695
cloudViewer::utility::filesystem::CFile::~CFile
~CFile()
The destructor closes the file automatically.
Definition: FileSystem.cpp:737
cloudViewer::ICPRegistrationTools::Parameters::minRMSDecrease
double minRMSDecrease
Definition: RegistrationTools.h:173
cloudViewer::ICPRegistrationTools::ICP_ERROR_INVALID_INPUT
@ ICP_ERROR_INVALID_INPUT
Definition: RegistrationTools.h:140
InsideOutsideIndexes::insideIndex
unsigned insideIndex
Definition: ManualSegmentationTools.cpp:343
cloudViewer::Polyline::setClosed
void setClosed(bool state)
Sets whether the polyline is closed or not.
Definition: Polyline.h:29
cloudViewer::Grid3D< unsigned short >::pos2index
int64_t pos2index(int i, int j, int k) const
Converts a 3D position to an absolute index.
Definition: Grid3D.h:538
IndexAndCodeExt::theIndex
IndexType theIndex
index
Definition: DgmOctree.cpp:3074
cloudViewer::FastMarching::FastMarching
FastMarching()
Default constructor.
Definition: FastMarching.cpp:15
cloudViewer::ReferenceCloud::resize
virtual bool resize(unsigned n)
Presets the size of the vector used to store point references.
Definition: ReferenceCloud.cpp:64
cloudViewer::GenericMesh
Definition: GenericMesh.h:21
cloudViewer::core::SizeVector
Definition: SizeVector.h:70
Edge::Edge
Edge(const VertexIterator &A, unsigned _nearestPointIndex, float _nearestPointSquareDist)
Definition: PointProjectionTools.cpp:494
cloudViewer::DistanceComputationTools::MultiThreadSupport
static bool MultiThreadSupport()
Definition: DistanceComputationTools.cpp:104
cloudViewer::Neighbourhood::getLSPlaneNormal
const CCVector3 * getLSPlaneNormal()
Returns best interpolating plane (Least-square) normal vector.
Definition: Neighbourhood.cpp:102
DataCloud::CPSetRef
ReferenceCloud * CPSetRef
Definition: RegistrationTools.cpp:141
CVTools::FromQString
static std::string FromQString(const QString &qs)
Definition: CVTools.cpp:100
cloudViewer::DgmOctree::NearestNeighboursSearchStruct::minNumberOfNeighbors
unsigned minNumberOfNeighbors
Minimal number of neighbours to find.
Definition: DgmOctree.h:177
fgr::KDTree
flann::Index< flann::L2< float > > KDTree
Definition: FastGlobalRegistration.cpp:22
AXISTEST_Z0
#define AXISTEST_Z0(a, b, fa, fb)
Definition: CVMiscTools.cpp:77
cloudViewer::ManualSegmentationTools
Manual segmentation algorithms (inside/outside a polyline, etc.)
Definition: ManualSegmentationTools.h:24
cloudViewer::utility::IJsonConvertible::EigenVector3dToJsonArray
static bool EigenVector3dToJsonArray(const Eigen::Vector3d &vec, Json::Value &value)
Definition: IJsonConvertible.cpp:55
cloudViewer::WeibullDistribution::setValueShift
void setValueShift(ScalarType vs)
Sets the distribution value shift.
Definition: WeibullDistribution.cpp:414
cloudViewer::FastMarching::Cell::T_INF
static float T_INF()
Returns infinite time value.
Definition: FastMarching.h:98
cloudViewer::FPCSRegistrationTools::LinesIntersections
static bool LinesIntersections(const CCVector3 &p0, const CCVector3 &p1, const CCVector3 &p2, const CCVector3 &p3, CCVector3 &inter, PointCoordinateType &lambda, PointCoordinateType &mu)
Find the 3D pseudo intersection between two lines.
Definition: RegistrationTools.cpp:1595
cloudViewer::utility::ColorToDouble
Eigen::Vector3d ColorToDouble(uint8_t r, uint8_t g, uint8_t b)
Color conversion from uint8_t 0-255 to double [0,1].
Definition: Eigen.cpp:278
cloudViewer::Neighbourhood::getLSPlane
const PointCoordinateType * getLSPlane()
Returns best interpolating plane equation (Least-square)
Definition: Neighbourhood.cpp:69
CVTools::ExtractDigitAlpha
static std::string ExtractDigitAlpha(const std::string &str)
Definition: CVTools.cpp:80
cloudViewer::DgmOctreeReferenceCloud
A kind of ReferenceCloud based on the DgmOctree::NeighboursSet structure.
Definition: DgmOctreeReferenceCloud.h:17
CellToTest::pos
Tuple3i pos
Cell position.
Definition: DistanceComputationTools.cpp:732
origin
Eigen::Vector3d origin
Definition: VoxelGridIO.cpp:26
CVTools::GetFileName
static std::string GetFileName(const std::string file_name)
Definition: CVTools.cpp:29
RayAndBox.h
cloudViewer::CloudSamplingTools::SUBSAMPLING_CELL_METHOD
SUBSAMPLING_CELL_METHOD
Definition: CloudSamplingTools.h:33
Vector2Tpl::y
Type y
Definition: CVGeom.h:36
cloudViewer::FastMarching::Cell::ACTIVE_CELL
@ ACTIVE_CELL
Definition: FastMarching.h:105
cloudViewer::Neighbourhood::computeCovarianceMatrix
cloudViewer::SquareMatrixd computeCovarianceMatrix()
Computes the covariance matrix.
Definition: Neighbourhood.cpp:144
cloudViewer::DgmOctree::octreeCell::points
ReferenceCloud * points
Set of points lying inside this cell.
Definition: DgmOctree.h:365
ModelCloud::weights
ScalarField * weights
Definition: RegistrationTools.cpp:127
cloudViewer::FastMarching::initTrialCells
virtual void initTrialCells()
Initializes the TRIAL cells list.
Definition: FastMarching.cpp:168
cloudViewer::SimpleTriangle::B
CCVector3 B
B vertex.
Definition: SimpleTriangle.h:75
cloudViewer::NormalizedProgress::steps
bool steps(unsigned n)
Increments total progress value of more than a single unit.
Definition: NormalizedProgress.cpp:114
cloudViewer::DgmOctree::octreeCell::index
unsigned index
Cell index in octree structure (see m_thePointsAndTheirCellCodes)
Definition: DgmOctree.h:363
cloudViewer::GenericIndexedCloudPersist
A generic 3D point cloud with index-based and presistent access to points.
Definition: GenericIndexedCloudPersist.h:18
cloudViewer::ManualSegmentationTools::MeshCutterParams::insideMesh
SimpleMesh * insideMesh
Definition: ManualSegmentationTools.h:122
cloudViewer::Delaunay2dMesh
A class to compute and handle a Delaunay 2D mesh on a subset of points.
Definition: Delaunay2dMesh.h:24
cloudViewer::DgmOctree::ProgressiveCylindricalNeighbourhood
Definition: DgmOctree.h:699
cloudViewer::DegreesToRadians
float DegreesToRadians(int degrees)
Convert degrees to radians.
Definition: CVMath.h:98
cloudViewer::Neighbourhood::Neighbourhood
Neighbourhood(GenericIndexedCloudPersist *associatedCloud)
Default constructor.
Definition: Neighbourhood.cpp:46
cloudViewer::DgmOctree::MultiThreadSupport
static bool MultiThreadSupport()
Definition: DgmOctree.cpp:162
cloudViewer::utility::IJsonConvertible::EigenMatrix6dToJsonArray
static bool EigenMatrix6dToJsonArray(const Eigen::Matrix6d &mat, Json::Value &value)
Definition: IJsonConvertible.cpp:162
cloudViewer::ReferenceCloud::clear
virtual void clear(bool releaseMemory=false)
Clears the cloud.
Definition: ReferenceCloud.cpp:26
cloudViewer::OrientedBoundingBox::GetBoxPoints
std::vector< Eigen::Vector3d > GetBoxPoints() const
Definition: OrientedBoundingBox.cpp:34
cloudViewer::utility::filesystem::CFile::GetFileSize
int64_t GetFileSize()
Returns the file size in bytes.
Definition: FileSystem.cpp:772
cloudViewer::DgmOctree::BoxNeighbourhood::center
CCVector3 center
Box center.
Definition: DgmOctree.h:729
cloudViewer::ReferenceCloud::m_globalIterator
std::atomic< unsigned > m_globalIterator
Iterator on the point references container.
Definition: ReferenceCloud.h:237
cloudViewer::GenericIndexedMesh::getTriangleVertIndexes
virtual VerticesIndexes * getTriangleVertIndexes(unsigned triangleIndex)=0
Returns the indexes of the vertices of a given triangle.
cloudViewer::CloudSamplingTools::resampleCloudWithOctreeAtLevel
static PointCloud * resampleCloudWithOctreeAtLevel(GenericIndexedCloudPersist *cloud, unsigned char octreeLevel, RESAMPLING_CELL_METHOD resamplingMethod, GenericProgressCallback *progressCb=nullptr, DgmOctree *inputOctree=nullptr)
Resamples a point cloud (process based on the octree)
Definition: CloudSamplingTools.cpp:54
Vector3Tpl< PointCoordinateType >::fromArrayContainer
static std::vector< Eigen::Matrix< double, 3, 1 > > fromArrayContainer(const std::vector< Vector3Tpl< PointCoordinateType >> &container)
Definition: CVGeom.h:301
cloudViewer::utility::filesystem::GetFileBaseName
std::string GetFileBaseName(const std::string &filename)
Definition: FileSystem.cpp:310
LogError
#define LogError(...)
Definition: Logging.h:60
cloudViewer::utility::Timer::Print
void Print(const std::string &timer_info) const
Definition: Timer.cpp:52
cloudViewer::FastMarching::computeT
virtual float computeT(unsigned index)
Computes the front arrival time at a given cell.
Definition: FastMarching.cpp:234
cloudViewer::GenericCloud::enableScalarField
virtual bool enableScalarField()=0
Enables the scalar field associated to the cloud.
cloudViewer::FPCSRegistrationTools::Base
FCPS base.
Definition: RegistrationTools.h:277
cloudViewer::utility::ConsoleProgressBar
Definition: Logging.h:309
cloudViewer::GeometricalAnalysisTools::GeomCharacteristic
GeomCharacteristic
Definition: GeometricalAnalysisTools.h:24
cloudViewer::GenericCloud::genericPointAction
std::function< void(const CCVector3 &, ScalarType &)> genericPointAction
Generic function applied to a point (used by foreach)
Definition: GenericCloud.h:30
cloudViewer::GenericCloud::setPointScalarValue
virtual void setPointScalarValue(unsigned pointIndex, ScalarType value)=0
Sets the ith point associated scalar value.
cloudViewer::GeometricalAnalysisTools::ErrorCode
ErrorCode
Definition: GeometricalAnalysisTools.h:46
e3
double e3[36]
Definition: essential_matrix_poly.h:13
cloudViewer::SimpleMesh::verticesLinked
bool verticesLinked
Definition: SimpleMesh.h:115
define_Polyline
void define_Polyline(py::module &cccorelib)
Definition: Polyline.cpp:15
cloudViewer::Neighbourhood::projectPointsOn2DPlane
bool projectPointsOn2DPlane(std::vector< Vec2D > &points2D, const PointCoordinateType *planeEquation=nullptr, CCVector3 *O=nullptr, CCVector3 *X=nullptr, CCVector3 *Y=nullptr, InputVectorsUsage vectorsUsage=None)
Projects points on the best fitting LS plane.
Definition: Neighbourhood.h:89
define_ManualSegmentationTools
void define_ManualSegmentationTools(py::module &cccorelib)
Definition: ManualSegmentationTools.cpp:20
BitShiftValues
Pre-computed bit shift values (one for each level)
Definition: DgmOctree.cpp:47
cloudViewer::core::Indexer::GetOutputPtr
CLOUDVIEWER_HOST_DEVICE char * GetOutputPtr(int64_t workload_idx) const
Definition: Indexer.h:438
cloudViewer::WeibullDistribution::computeP
double computeP(ScalarType x) const override
Computes the probability of x.
Definition: WeibullDistribution.cpp:195
cloudViewer::core::AdvancedIndexer::GetOutputPtr
CLOUDVIEWER_HOST_DEVICE char * GetOutputPtr(int64_t workload_idx) const
Definition: AdvancedIndexing.h:175
cloudViewer::WeibullDistribution::computeChi2Dist
double computeChi2Dist(const GenericCloud *cloud, unsigned numberOfClasses, int *histo=nullptr) override
Computes the Chi2 distance (related to the Chi2 Test)
Definition: WeibullDistribution.cpp:328
cloudViewer::OctreeAndMeshIntersection::~OctreeAndMeshIntersection
~OctreeAndMeshIntersection()
Destructor.
Definition: DistanceComputationTools.cpp:85
AABB
Simple axis aligned box structure.
Definition: RayAndBox.h:50
cloudViewer::GenericMesh::getBoundingBox
virtual void getBoundingBox(CCVector3 &bbMin, CCVector3 &bbMax)=0
Returns the mesh bounding-box.
cloudViewer::ManualSegmentationTools::MeshCutterParams::origTriIndexesMapInside
std::vector< unsigned > origTriIndexesMapInside
Definition: ManualSegmentationTools.h:133
QtCompatTextCodec
Definition: QtCompat.h:584
cloudViewer::TriangleList::indexes
std::vector< unsigned > indexes
Triangles indexes.
Definition: DistanceComputationTools.cpp:42
Vector2Tpl::norm
Type norm() const
Returns vector norm.
Definition: CVGeom.h:63
Ray::radialSquareDistance
double radialSquareDistance(const Vector3Tpl< T > &P) const
Definition: RayAndBox.h:25
cloudViewer::utility::filesystem::GetPathComponents
std::vector< std::string > GetPathComponents(const std::string &path)
Definition: FileSystem.cpp:348
cloudViewer::DgmOctree::getBoundingBox
void getBoundingBox(CCVector3 &bbMin, CCVector3 &bbMax) const
Returns the octree bounding box.
Definition: DgmOctree.cpp:493
cloudViewer::OctreeAndMeshIntersection::perCellTriangleList
Grid3D< TriangleList * > perCellTriangleList
Array of FacesInCellPtr structures.
Definition: DistanceComputationTools.cpp:74
PC_ONE
constexpr PointCoordinateType PC_ONE
'1' as a PointCoordinateType value
Definition: CVConst.h:67
Vector3Tpl::dot
Type dot(const Vector3Tpl &v) const
Dot product.
Definition: CVGeom.h:408
Vector3Tpl< PointCoordinateType >::vdotd
static double vdotd(const PointCoordinateType p[], const PointCoordinateType q[])
Definition: CVGeom.h:523
cloudViewer::WeibullDistribution::computeSkewness
double computeSkewness() const
Returns the distribution 'skewness'.
Definition: WeibullDistribution.cpp:428
cloudViewer::Delaunay2dMesh::size
virtual unsigned size() const override
Returns the number of triangles.
Definition: Delaunay2dMesh.h:82
cloudViewer::DgmOctree::RC_NEAREST_POINT
@ RC_NEAREST_POINT
Definition: DgmOctree.h:1179
cloudViewer::DELAUNAY_2D_BEST_LS_PLANE
@ DELAUNAY_2D_BEST_LS_PLANE
Definition: PointProjectionTools.h:25
cloudViewer::utility::filesystem::MakeDirectory
bool MakeDirectory(const std::string &directory)
Definition: FileSystem.cpp:491
Gamma_cc
static double Gamma_cc(double x)
Definition: WeibullDistribution.cpp:24
cloudViewer::DistanceComputationTools::ComputeCloud2PlaneDistance
static ScalarType ComputeCloud2PlaneDistance(cloudViewer::GenericCloud *cloud, const PointCoordinateType *planeEquation, ERROR_MEASURES measureType)
Definition: DistanceComputationTools.cpp:3651
cloudViewer::FastMarching::Cell::EMPTY_CELL
@ EMPTY_CELL
Definition: FastMarching.h:102
cloudViewer::DistanceComputationTools::MAX_DIST_95_PERCENT
@ MAX_DIST_95_PERCENT
Definition: DistanceComputationTools.h:413
cloudViewer::ScalarFieldTools::applyScalarFieldGaussianFilter
static bool applyScalarFieldGaussianFilter(PointCoordinateType sigma, GenericIndexedCloudPersist *theCloud, PointCoordinateType sigmaSF, GenericProgressCallback *progressCb=nullptr, DgmOctree *theOctree=nullptr)
Definition: ScalarFieldTools.cpp:231
cloudViewer::GenericIndexedCloud::getPoint
virtual const CCVector3 * getPoint(unsigned index) const =0
Returns the ith point.
cloudViewer::Neighbourhood::reset
virtual void reset()
Resets structure (depreactes all associated geometrical fetaures)
Definition: Neighbourhood.cpp:56
CVLog::LOG_WARNING
@ LOG_WARNING
Definition: CVLog.h:46
cloudViewer::WeibullDistribution::ComputeG
static double ComputeG(const ScalarContainer &values, double a, ScalarType valueShift, double valueRange)
internal function for parameters evaluation from sample points
Definition: WeibullDistribution.cpp:222
cloudViewer::KDTree::getAssociatedCloud
GenericIndexedCloud * getAssociatedCloud() const
Gets the point cloud from which the tree has been build.
Definition: CVKdTree.h:40
cloudViewer::SimpleMesh::capacity
unsigned capacity() const
Returns the mesh capacity.
Definition: SimpleMesh.h:62
ForwardNeighbours345
const signed char ForwardNeighbours345[14 *4]
Forward mask shifts and weights (Chamfer 3-4-5)
Definition: ChamferDistanceTransform.cpp:18
cloudViewer::DgmOctree::computeCellLimits
void computeCellLimits(CellCode code, unsigned char level, CCVector3 &cellMin, CCVector3 &cellMax, bool isCodeTruncated=false) const
Returns the spatial limits of a given cell.
Definition: DgmOctree.cpp:520
octree
cloudViewer::DgmOctree * octree
Definition: qCanupoTools.cpp:37
cloudViewer::DistanceComputationTools::computeCloud2MeshDistancesWithOctree
static int computeCloud2MeshDistancesWithOctree(const DgmOctree *octree, OctreeAndMeshIntersection *intersection, Cloud2MeshDistancesComputationParams &params, GenericProgressCallback *progressCb=nullptr)
Definition: DistanceComputationTools.cpp:2252
cloudViewer::FastMarching::m_activeCells
std::vector< unsigned > m_activeCells
ACTIVE cells list.
Definition: FastMarching.h:212
cloudViewer::system::MemoryInfo::totalSwap
std::size_t totalSwap
Definition: MemoryInfo.h:25
cloudViewer::DgmOctree::getPointsInNeighbourCellsAround
void getPointsInNeighbourCellsAround(NearestNeighboursSearchStruct &nNSS, int neighbourhoodLength, bool getOnlyPointsWithValidScalar=false) const
Gets point in the neighbourhing cells of a specific cell.
Definition: DgmOctree.cpp:906
ModelCloud::ModelCloud
ModelCloud()
Definition: RegistrationTools.cpp:124
cloudViewer::GeometricalAnalysisTools::NoError
@ NoError
Definition: GeometricalAnalysisTools.h:47
cloudViewer::FPCSRegistrationTools::Base::getIndex
unsigned getIndex(unsigned i)
Definition: RegistrationTools.h:286
cloudViewer::utility::SolveJacobianSystemAndObtainExtrinsicMatrixArray
std::tuple< bool, std::vector< Eigen::Matrix4d, Matrix4d_allocator > > SolveJacobianSystemAndObtainExtrinsicMatrixArray(const Eigen::MatrixXd &JTJ, const Eigen::VectorXd &JTr)
Definition: Eigen.cpp:119
Message::Message
Message(const QString &t, int f)
Definition: CVLog.cpp:32
cloudViewer::DistanceComputationTools::Cloud2CloudDistancesComputationParams::reuseExistingLocalModels
bool reuseExistingLocalModels
Whether to use an approximation for local model computation.
Definition: DistanceComputationTools.h:84
cloudViewer::DgmOctree::octreeCell::level
unsigned char level
Cell level of subdivision.
Definition: DgmOctree.h:367
cloudViewer::FastMarching::m_initialized
bool m_initialized
Specifiies whether structure is initialized or not.
Definition: FastMarching.h:219
cloudViewer::DgmOctree::m_dimMin
CCVector3 m_dimMin
Min coordinates of the octree bounding-box.
Definition: DgmOctree.h:1243
cloudViewer::GenericProgressCallback::start
virtual void start()=0
cloudViewer::SimpleMesh::_getTriangle
GenericTriangle * _getTriangle(unsigned triangleIndex) override
Returns the ith triangle.
Definition: SimpleMesh.cpp:49
cloudViewer::Grid3D::setValue
void setValue(int i, int j, int k, GridElement value)
Sets the value of a given cell.
Definition: Grid3D.h:480
cloudViewer::DgmOctree::BoxNeighbourhood::neighbours
NeighboursSet neighbours
Neighbour points falling inside the box.
Definition: DgmOctree.h:735
cloudViewer::utility::GetProgramOptionAsInt
int GetProgramOptionAsInt(int argc, char **argv, const std::string &option, const int default_value=0)
Definition: Console.cpp:31
cloudViewer::ConjugateGradient::b
Scalar * b()
Returns b vector.
Definition: ConjugateGradient.h:42
CVLog::logMessage
virtual void logMessage(const QString &message, int level)=0
Generic message logging method.
cloudViewer::FastMarchingForPropagation::findPeaks
void findPeaks()
Find peaks of local acceleration values.
Definition: FastMarchingForPropagation.cpp:219
cloudViewer::KDTree::deleteSubTree
void deleteSubTree(KdCell *cell)
Deletes a sub tree.
Definition: CVKdTree.cpp:76
cloudViewer::core::Indexer::GetInputPtr
CLOUDVIEWER_HOST_DEVICE char * GetInputPtr(int64_t input_idx, int64_t workload_idx) const
Definition: Indexer.h:406
cloudViewer::RegistrationTools::SKIP_TX
@ SKIP_TX
Definition: RegistrationTools.h:35
CVTools.h
ModelCloud::cloud
GenericIndexedCloudPersist * cloud
Definition: RegistrationTools.cpp:126
cloudViewer::KDTree::KdCell::father
struct KdCell * father
To go up in the tree.
Definition: CVKdTree.h:148
cloudViewer::GeometricalAnalysisTools::FlagDuplicatePoints
static ErrorCode FlagDuplicatePoints(GenericIndexedCloudPersist *theCloud, double minDistanceBetweenPoints=std::numeric_limits< double >::epsilon(), GenericProgressCallback *progressCb=nullptr, DgmOctree *inputOctree=nullptr)
Flag duplicate points.
Definition: GeometricalAnalysisTools.cpp:300
cloudViewer::Neighbourhood::m_gravityCenter
CCVector3 m_gravityCenter
Gravity center.
Definition: Neighbourhood.h:306
cloudViewer::DgmOctree::NeighboursSet
std::vector< PointDescriptor > NeighboursSet
A set of neighbours.
Definition: DgmOctree.h:133
cloudViewer::Delaunay2dMesh::m_associatedCloud
GenericIndexedCloud * m_associatedCloud
Associated point cloud.
Definition: Delaunay2dMesh.h:126
cloudViewer::GeometricalAnalysisTools::ComputeGeomCharacteristicAtLevel
static bool ComputeGeomCharacteristicAtLevel(const DgmOctree::octreeCell &cell, void **additionalParameters, NormalizedProgress *nProgress=nullptr)
Computes geom characteristic inside a cell.
Definition: GeometricalAnalysisTools.cpp:154
Macro.h
AtomicCounter::m_value
int m_value
Definition: NormalizedProgress.cpp:37
cloudViewer::NormalDistribution::computeP
double computeP(ScalarType x) const override
Computes the probability of x.
Definition: NormalDistribution.cpp:64
cloudViewer::SimpleMesh::addTriangle
virtual void addTriangle(unsigned i1, unsigned i2, unsigned i3)
Adds a triangle to the mesh.
Definition: SimpleMesh.cpp:103
cloudViewer::DgmOctree::m_pointsMax
CCVector3 m_pointsMax
Definition: DgmOctree.h:1252
cloudViewer::utility::filesystem::SplitFileExtension
void SplitFileExtension(const std::string &path, std::string *root, std::string *ext)
Definition: FileSystem.cpp:137
cloudViewer::GenericTriangle::_getC
virtual const CCVector3 * _getC() const =0
Returns the third vertex (C)
cloudViewer::Universe::initialize
void initialize()
Initialize all elements to the default values.
Definition: Universe.cpp:18
IndexAndCodeExt::indexComp
static bool indexComp(const IndexAndCodeExt &a, const IndexAndCodeExt &b)
Compares two IndexAndCodeExt instances based on their index.
Definition: DgmOctree.cpp:3087
LogInfo
#define LogInfo(...)
Definition: Logging.h:81
CellToTest::level
unsigned char level
Subdivision level.
Definition: DistanceComputationTools.cpp:736
cloudViewer::CloudSamplingTools::RESAMPLING_CELL_METHOD
RESAMPLING_CELL_METHOD
Definition: CloudSamplingTools.h:29
Jacobi.h
cloudViewer::GeometricalAnalysisTools::RefineSphereLS
static bool RefineSphereLS(GenericIndexedCloudPersist *cloud, CCVector3 &center, PointCoordinateType &radius, double minReltaiveCenterShift=1.0e-3)
Refines the estimation of a sphere by (iterative) least-squares.
Definition: GeometricalAnalysisTools.cpp:710
cloudViewer::Neighbourhood::GeomFeature
GeomFeature
Geometric feature computed from eigen values/vectors.
Definition: Neighbourhood.h:161
cloudViewer::ReferenceCloudContainer
std::vector< ReferenceCloud * > ReferenceCloudContainer
A standard container to store several subsets of points.
Definition: AutoSegmentationTools.h:28
cloudViewer::Neighbourhood::m_quadricEquationDirections
Tuple3ub m_quadricEquationDirections
2.5D Quadric equation dimensions
Definition: Neighbourhood.h:290
count
int count
Definition: FileIOFactory.cpp:132
cloudViewer::c_erfRelativeError
static const double c_erfRelativeError
Relative error for Error Function computation.
Definition: ErrorFunction.h:21
cloudViewer::core::Tensor::GetStrides
SizeVector GetStrides() const
Definition: Tensor.h:1135
Vector3Tpl< PointCoordinateType >::vdot
static PointCoordinateType vdot(const PointCoordinateType p[], const PointCoordinateType q[])
Definition: CVGeom.h:520
GenericMesh.h
CVTools::ToQString
static QString ToQString(const std::string &s)
Definition: CVTools.cpp:92
IndexAndCodeExt::IndexAndCodeExt
IndexAndCodeExt()
Default constructor.
Definition: DgmOctree.cpp:3080
cloudViewer::DgmOctree::updateMinAndMaxTables
void updateMinAndMaxTables()
Updates the tables containing octree limits and boundaries.
Definition: DgmOctree.cpp:395
cloudViewer::KDTree::KdCell::boundsMask
unsigned char boundsMask
Mask to know if the outside box is bounded for a given dimmension.
Definition: CVKdTree.h:160
cloudViewer::SquareMatrixTpl::row
Scalar * row(unsigned index)
Returns pointer to matrix row.
Definition: SquareMatrix.h:160
CVLog::Warning
static bool Warning(const char *format,...)
Prints out a formatted warning message in console.
Definition: CVLog.cpp:133
CCShareable::~CCShareable
virtual ~CCShareable()
Destructor.
Definition: CVShareable.cpp:42
GetLeavesVisitor::m_leaves
TrueKdTree::LeafVector * m_leaves
Definition: TrueKdTree.cpp:318
cloudViewer::KDTree::KdCell::inbbmin
CCVector3 inbbmin
Inside bounding box min point.
Definition: CVKdTree.h:124
cloudViewer::TriangleList::push
bool push(unsigned index)
Adds a triangle index.
Definition: DistanceComputationTools.cpp:47
e2
double e2[36]
Definition: essential_matrix_poly.h:12
cloudViewer::SquareMatrixTpl::getValue
Scalar getValue(unsigned row, unsigned column) const
Returns a particular matrix value.
Definition: SquareMatrix.h:168
cloudViewer::DgmOctree::getMaxFillIndexes
const int * getMaxFillIndexes(unsigned char level) const
Definition: DgmOctree.h:485
cloudViewer::Neighbourhood::m_lsPlaneVectors
CCVector3 m_lsPlaneVectors[3]
Least-square best fitting plane base vectors.
Definition: Neighbourhood.h:301
cloudViewer::KDTree::KdCell::inbbmax
CCVector3 inbbmax
Inside bounding box max point.
Definition: CVKdTree.h:119
cloudViewer::system::MemoryInfo::freeSwap
std::size_t freeSwap
Definition: MemoryInfo.h:26
cloudViewer::utility::ProgramOptionExists
bool ProgramOptionExists(int argc, char **argv, const std::string &option)
Definition: Console.cpp:100
cloudViewer::ReferenceCloud
A very simple point cloud (no point duplication)
Definition: ReferenceCloud.h:29
QtCompatTextCodec::fromUnicode
QByteArray fromUnicode(const QString &str)
Definition: QtCompat.h:594
cloudViewer::KDTree::KdCell::leSon
struct KdCell * leSon
Definition: CVKdTree.h:143
GenericCloud.h
TrianglesToTest::processTriangles
std::vector< unsigned > processTriangles
Definition: DistanceComputationTools.cpp:1906
cloudViewer::FastMarchingForPropagation::setDetectionThreshold
void setDetectionThreshold(float value)
Sets the threshold for propagation stop.
Definition: FastMarchingForPropagation.h:63
AtomicCounter::fetchAndAddRelaxed
int fetchAndAddRelaxed(int add)
Definition: NormalizedProgress.cpp:32
cloudViewer::Delaunay2dMesh::getNextTriangleVertIndexes
VerticesIndexes * getNextTriangleVertIndexes() override
Definition: Delaunay2dMesh.cpp:335
cloudViewer::KDTree::KdCell::outbbmin
CCVector3 outbbmin
Outside bounding box min point.
Definition: CVKdTree.h:129
cloudViewer::GeometricalAnalysisTools::LocalDensity
@ LocalDensity
Definition: GeometricalAnalysisTools.h:27
cloudViewer::FPCSRegistrationTools::Base::init
void init(unsigned _a, unsigned _b, unsigned _c, unsigned _d)
Definition: RegistrationTools.h:279
ScalarFieldView::len
size_t len() const
Definition: ScalarField.cpp:128
cloudViewer::PointProjectionTools::computeTriangulation
static GenericIndexedMesh * computeTriangulation(GenericIndexedCloudPersist *cloud, TRIANGULATION_TYPES type, PointCoordinateType maxEdgeLength, unsigned char dim, std::string &outputErrorStr)
Applys a geometrical transformation to a single point.
Definition: PointProjectionTools.cpp:275
cloudViewer::FastMarching::Cell::FAR_CELL
@ FAR_CELL
Definition: FastMarching.h:103
cloudViewer::MeshSamplingTools::samplePointsOnMesh
static PointCloud * samplePointsOnMesh(GenericMesh *mesh, double samplingDensity, GenericProgressCallback *progressCb=nullptr, std::vector< unsigned > *triIndices=nullptr)
Samples points on a mesh.
Definition: MeshSamplingTools.cpp:230
cloudViewer::KDTree::findNearestNeighbourWithMaxDist
bool findNearestNeighbourWithMaxDist(const PointCoordinateType *queryPoint, ScalarType maxDist)
Optimized version of findNearestNeighbour with a maximum distance.
Definition: CVKdTree.cpp:235
std
Definition: Eigen.h:85
cloudViewer::TrueKdTree
Proper KD-tree implementation.
Definition: TrueKdTree.h:23
cloudViewer::KDTree::m_root
KdCell * m_root
Tree root.
Definition: CVKdTree.h:169
GetLeavesVisitor::GetLeavesVisitor
GetLeavesVisitor(TrueKdTree::LeafVector &leaves)
Definition: TrueKdTree.cpp:301
Chi2Helper::pochisq
static double pochisq(double x, int df)
Probability of chi-square value.
Definition: Chi2Helper.h:108
cloudViewer::DistanceComputationTools::DISJOINT
@ DISJOINT
Definition: DistanceComputationTools.h:563
cloudViewer::utility::filesystem::GetIOErrorString
std::string GetIOErrorString(const int errnoVal)
Definition: FileSystem.cpp:627
cloudViewer::DgmOctree::BoxNeighbourhood::axes
CCVector3 * axes
Box axes (optional)
Definition: DgmOctree.h:731
cloudViewer::MeshSamplingTools::DecodeEdgeKey
static void DecodeEdgeKey(unsigned long long key, unsigned &i1, unsigned &i2)
Computes the edge vertex indexes from its unique key.
Definition: MeshSamplingTools.cpp:97
RegistrationTools.h
cloudViewer::utility::IJsonConvertible::EigenMatrix4dFromJsonArray
static bool EigenMatrix4dFromJsonArray(Eigen::Matrix4d &mat, const Json::Value &value)
Definition: IJsonConvertible.cpp:108
cloudViewer::DistanceComputationTools::Cloud2MeshDistancesComputationParams::CPSet
PointCloud * CPSet
Cloud to store the Closest Point Set.
Definition: DistanceComputationTools.h:196
CellToTest::cellSize
int cellSize
Cell size.
Definition: DistanceComputationTools.cpp:734
cloudViewer::DgmOctreeReferenceCloud::m_bbMax
CCVector3 m_bbMax
Bounding-box max corner.
Definition: DgmOctreeReferenceCloud.h:87
cloudViewer::core::AdvancedIndexer::num_indices_
int64_t num_indices_
Definition: AdvancedIndexing.h:203
TrianglesToTest
Helper structure for triangles to test.
Definition: DistanceComputationTools.cpp:1886
cloudViewer::FastMarching::m_gridSize
unsigned m_gridSize
Grid size.
Definition: FastMarching.h:233
cloudViewer::OrientedBoundingBox::extent_
Eigen::Vector3d extent_
The extent of the bounding box in its frame of reference.
Definition: OrientedBoundingBox.h:115
CVLog::TheInstance
static CVLog * TheInstance()
Returns the static and unique instance.
Definition: CVLog.cpp:53
s_lastProgress
static unsigned s_lastProgress
Definition: TrueKdTree.cpp:42
cloudViewer::utility::ScopeTimer::ScopeTimer
ScopeTimer(const std::string &scope_timer_info="")
Definition: Timer.cpp:57
Vector2Tpl::norm2
Type norm2() const
Returns vector square norm.
Definition: CVGeom.h:61
cloudViewer::CloudSamplingTools::subsampleCloudWithOctreeAtLevel
static ReferenceCloud * subsampleCloudWithOctreeAtLevel(GenericIndexedCloudPersist *cloud, unsigned char octreeLevel, SUBSAMPLING_CELL_METHOD subsamplingMethod, GenericProgressCallback *progressCb=nullptr, DgmOctree *inputOctree=nullptr)
Subsamples a point cloud (process based on the octree)
Definition: CloudSamplingTools.cpp:126
Edge::Edge
Edge()
Definition: PointProjectionTools.cpp:492
cloudViewer::NormalDistribution
The Normal/Gaussian statistical distribution.
Definition: NormalDistribution.h:18
cloudViewer::CloudSamplingTools::applySORFilterAtLevel
static bool applySORFilterAtLevel(const DgmOctree::octreeCell &cell, void **additionalParameters, NormalizedProgress *nProgress=nullptr)
"Cellular" function to apply the SOR filter inside an octree cell
Definition: CloudSamplingTools.cpp:835
cloudViewer::utility::VerbosityLevel
VerbosityLevel
Definition: Logging.h:97
cloudViewer::RegistrationTools::SKIP_TZ
@ SKIP_TZ
Definition: RegistrationTools.h:37
cloudViewer::Neighbourhood::m_quadricEquation
PointCoordinateType m_quadricEquation[6]
2.5D Quadric equation
Definition: Neighbourhood.h:284
CVTools::Char2Wchar
static std::wstring Char2Wchar(const char *szStr)
Definition: CVTools.cpp:169
cloudViewer::Neighbourhood::FLAG_LS_PLANE
@ FLAG_LS_PLANE
Definition: Neighbourhood.h:37
cloudViewer::DgmOctree::PointDescriptor::distComp
static bool distComp(const PointDescriptor &a, const PointDescriptor &b)
Comparison operator.
Definition: DgmOctree.h:126
ReferenceCloud.h
cloudViewer::PointCloudTpl::setPointScalarValue
void setPointScalarValue(unsigned pointIndex, ScalarType value) override
Definition: PointCloudTpl.h:120
QuadricLocalModel::m_Y
unsigned char m_Y
Height function second dimension (0=X, 1=Y, 2=Z)
Definition: LocalModel.cpp:154
cloudViewer::DistanceComputationTools::Cloud2CloudDistancesComputationParams::radiusForLocalModel
ScalarType radiusForLocalModel
Radius for nearest neighbours search (local model)
Definition: DistanceComputationTools.h:78
cloudViewer::ScalarFieldTools::computeScalarFieldGradient
static int computeScalarFieldGradient(GenericIndexedCloudPersist *theCloud, PointCoordinateType radius, bool euclideanDistances, bool sameInAndOutScalarField=false, GenericProgressCallback *progressCb=nullptr, DgmOctree *theOctree=nullptr)
Definition: ScalarFieldTools.cpp:37
cloudViewer::WeibullDistribution::computePfromZero
double computePfromZero(ScalarType x) const override
Computes the cumulative probability between 0 and x.
Definition: WeibullDistribution.cpp:203
cloudViewer::CCMiscTools::ComputeBaseVectors
static void ComputeBaseVectors(const CCVector3 &N, CCVector3 &X, CCVector3 &Y)
Computes base vectors for a given 3D plane.
Definition: CVMiscTools.cpp:370
define_ReferenceCloud
void define_ReferenceCloud(py::module &cccorelib)
Definition: ReferenceCloud.cpp:19
Message::flags
int flags
Definition: CVLog.cpp:35
cloudViewer::core::AdvancedIndexer::AdvancedIndexer
AdvancedIndexer(const Tensor &src, const Tensor &dst, const std::vector< Tensor > &index_tensors, const SizeVector &indexed_shape, const SizeVector &indexed_strides, AdvancedIndexerMode mode)
Definition: AdvancedIndexing.h:121
PRE_COMPUTED_BIT_SHIFT_VALUES
static BitShiftValues PRE_COMPUTED_BIT_SHIFT_VALUES
Definition: DgmOctree.cpp:61
cloudViewer::TrueKdTree::BaseNode::isLeaf
bool isLeaf() const
Definition: TrueKdTree.h:39
cloudViewer::CloudSamplingTools::applyNoiseFilterAtLevel
static bool applyNoiseFilterAtLevel(const DgmOctree::octreeCell &cell, void **additionalParameters, NormalizedProgress *nProgress=nullptr)
"Cellular" function to apply the noise filter inside an octree cell
Definition: CloudSamplingTools.cpp:710
cloudViewer::FastMarching::m_gridLevel
unsigned char m_gridLevel
Equivalent octree subdivision level.
Definition: FastMarching.h:240
cloudViewer::DgmOctree::ProgressiveCylindricalNeighbourhood::currentHalfLength
PointCoordinateType currentHalfLength
Current search depth.
Definition: DgmOctree.h:701
cloudViewer::TriangleList
List of triangles (indexes)
Definition: DistanceComputationTools.cpp:40
cloudViewer::OctreeAndMeshIntersection::mesh
GenericIndexedMesh * mesh
Mesh.
Definition: DistanceComputationTools.cpp:64
cloudViewer::RegistrationTools::SKIP_ROTATION
@ SKIP_ROTATION
Definition: RegistrationTools.h:34
cloudViewer::Universe::addEdge
void addEdge(int x, int y)
Definition: Universe.cpp:53
cloudViewer::DgmOctree::CellCode
unsigned CellCode
Type of the code of an octree cell.
Definition: DgmOctree.h:78
IntersectionTest.h
cloudViewer::FastMarching::addIgnoredCell
virtual void addIgnoredCell(unsigned index)
Add a cell to the IGNORED cells list.
Definition: FastMarching.cpp:201
AddVertex
bool AddVertex(CCVector3d &P, PointCloud *vertices, unsigned &index)
Definition: ManualSegmentationTools.cpp:348
Tensor.h
DelaunayLocalModel::computeDistanceFromModelToPoint
ScalarType computeDistanceFromModelToPoint(const CCVector3 *P, CCVector3 *nearestPoint=nullptr) const override
Compute the (unsigned) distance between a 3D point and this model.
Definition: LocalModel.cpp:70
cloudViewer::core::AdvancedIndexer::NumWorkloads
int64_t NumWorkloads() const
Definition: AdvancedIndexing.h:198
NAN_VALUE
constexpr ScalarType NAN_VALUE
NaN as a ScalarType value.
Definition: CVConst.h:76
cloudViewer::utility::Sleep
void Sleep(int milliseconds)
Definition: Helper.cpp:278
cloudViewer::Neighbourhood::setLSPlane
void setLSPlane(const PointCoordinateType eq[4], const CCVector3 &X, const CCVector3 &Y, const CCVector3 &N)
Sets the best interpolating plane equation (Least-square)
Definition: Neighbourhood.cpp:76
cloudViewer::DistanceComputationTools::computePoint2TriangleDistance
static ScalarType computePoint2TriangleDistance(const CCVector3 *P, const GenericTriangle *theTriangle, bool signedDist, CCVector3 *nearestP=nullptr)
Computes the distance between a point and a triangle.
Definition: DistanceComputationTools.cpp:2668
TrianglesToTest::trianglesToTest
std::vector< unsigned > trianglesToTest
Definition: DistanceComputationTools.cpp:1900
cloudViewer::WeibullDistribution::m_b
ScalarType m_b
Weibull distribution parameter b (lambda)
Definition: WeibullDistribution.h:96
cloudViewer::DgmOctree::BoxNeighbourhood::dimensions
CCVector3 dimensions
Box dimensions.
Definition: DgmOctree.h:733
cloudViewer::DgmOctree::clear
virtual void clear()
Clears the octree.
Definition: DgmOctree.cpp:183
cloudViewer::BoundingBoxTpl::getDiagVec
Vector3Tpl< T > getDiagVec() const
Returns diagonal vector.
Definition: BoundingBox.h:169
Vector3Tpl::norm2d
double norm2d() const
Returns vector square norm (forces double precision output)
Definition: CVGeom.h:419
cloudViewer::DgmOctree::associatedCloud
GenericIndexedCloudPersist * associatedCloud() const
Returns the associated cloud.
Definition: DgmOctree.h:1191
cloudViewer::OctreeAndMeshIntersection::minFillIndexes
Tuple3i minFillIndexes
Grid occupancy of mesh (minimum indexes for each dimension)
Definition: DistanceComputationTools.cpp:69
cloudViewer::ICPRegistrationTools::MAX_ERROR_CONVERGENCE
@ MAX_ERROR_CONVERGENCE
Definition: RegistrationTools.h:126
cloudViewer::TrueKdTree::m_root
BaseNode * m_root
Root node.
Definition: TrueKdTree.h:153
cloudViewer::Neighbourhood::GAUSSIAN_CURV
@ GAUSSIAN_CURV
Definition: Neighbourhood.h:42
GetLeavesVisitor
Recursive visitor for TrueKdTree::getLeaves.
Definition: TrueKdTree.cpp:299
cloudViewer::FastMarchingForPropagation::PropagationCell::f
float f
Local front acceleration.
Definition: FastMarchingForPropagation.h:95
PC_NAN
constexpr PointCoordinateType PC_NAN
'NaN' as a PointCoordinateType value
Definition: CVConst.h:71
cloudViewer::ScalarFieldTools::computeMeanSquareScalarValue
static ScalarType computeMeanSquareScalarValue(GenericCloud *theCloud)
Computes the mean square value of a scalar field associated to a cloud.
Definition: ScalarFieldTools.cpp:716
cloudViewer::GeometricalAnalysisTools::MomentOrder1
@ MomentOrder1
Definition: GeometricalAnalysisTools.h:32
GenericDistribution.h
cloudViewer::Neighbourhood::compute3DQuadric
bool compute3DQuadric(double quadricEquation[10])
Computes the best interpolating quadric (Least-square)
Definition: Neighbourhood.cpp:524
cloudViewer::ReferenceCloud::m_theIndexes
ReferencesContainer m_theIndexes
Indexes of (some of) the associated cloud points.
Definition: ReferenceCloud.h:234
cloudViewer::FastMarching::m_ignoredCells
std::vector< unsigned > m_ignoredCells
IGNORED cells lits.
Definition: FastMarching.h:216
cloudViewer::DgmOctreeReferenceCloud::computeBB
virtual void computeBB()
Computes the cloud bounding-box (internal)
Definition: DgmOctreeReferenceCloud.cpp:22
cloudViewer::FPCSRegistrationTools::FindCongruentBases
static int FindCongruentBases(KDTree *tree, ScalarType delta, const CCVector3 *base[4], std::vector< Base > &results)
Definition: RegistrationTools.cpp:1430
cloudViewer::DgmOctreeReferenceCloud::m_bbMin
CCVector3 m_bbMin
Bounding-box min corner.
Definition: DgmOctreeReferenceCloud.h:85
cloudViewer::Neighbourhood::computeLeastSquareBestFittingPlane
bool computeLeastSquareBestFittingPlane()
Computes the least-square best fitting plane.
Definition: Neighbourhood.cpp:206
cloudViewer::DgmOctree::ProgressiveCylindricalNeighbourhood::prevMinCornerPos
Tuple3i prevMinCornerPos
Previous search box (min corner)
Definition: DgmOctree.h:708
cloudViewer::Polyline
A simple polyline class.
Definition: Polyline.h:20
LogWarning
#define LogWarning(...)
Definition: Logging.h:72
Tuple3Tpl::y
Type y
Definition: CVGeom.h:137
cloudViewer::Polyline::m_isClosed
bool m_isClosed
Closing state.
Definition: Polyline.h:36
cloudViewer::DgmOctree::RayCastProcess
RayCastProcess
Ray casting processes.
Definition: DgmOctree.h:1179
cloudViewer::utility::CPUInfo::NumCores
int NumCores() const
Definition: CPUInfo.cpp:179
cloudViewer::utility::ToUpper
std::string ToUpper(const std::string &s)
Convert string to the upper case.
Definition: Helper.cpp:249
Jacobi::GetMaxEigenValueAndVector
static bool GetMaxEigenValueAndVector(const SquareMatrix &eigenVectors, const EigenValues &eigenValues, Scalar &maxEigenValue, Scalar maxEigenVector[])
Returns the biggest eigenvalue and its associated eigenvector.
Definition: Jacobi.h:385
cloudViewer::MeshSamplingTools::EdgeConnectivityStats::edgesNotShared
unsigned edgesNotShared
Edges not shared (i.e. used by only one triangle)
Definition: MeshSamplingTools.h:53
cloudViewer::DgmOctree::BoxNeighbourhood::level
unsigned char level
subdivision level at which to apply the extraction process
Definition: DgmOctree.h:737
ParallelSort.h
cloudViewer::MeshSamplingTools::computeMeshArea
static double computeMeshArea(GenericMesh *mesh)
Computes the mesh area.
Definition: MeshSamplingTools.cpp:23
cloudViewer::DistanceComputationTools::Cloud2CloudDistancesComputationParams::localModel
CV_LOCAL_MODEL_TYPES localModel
Type of local 3D modeling to use.
Definition: DistanceComputationTools.h:60
cloudViewer::KDTree::findPointsLyingToDistance
unsigned findPointsLyingToDistance(const PointCoordinateType *queryPoint, ScalarType distance, ScalarType tolerance, std::vector< unsigned > &points)
Definition: CVKdTree.cpp:347
cloudViewer::BoundingBoxTpl::maxCorner
const Vector3Tpl< T > & maxCorner() const
Returns max corner (const)
Definition: BoundingBox.h:156
s_bufferMaxSize
static const size_t s_bufferMaxSize
Definition: CVLog.cpp:27
cloudViewer::Delaunay2dMesh::forEach
void forEach(genericTriangleAction action) override
Fast iteration mechanism.
Definition: Delaunay2dMesh.cpp:306
cloudViewer::TrueKdTree::BaseNode::parent
BaseNode * parent
Definition: TrueKdTree.h:44
cloudViewer::PointCloudTpl::getCurrentInScalarField
ScalarField * getCurrentInScalarField() const
Returns the scalar field currently associated to the cloud input.
Definition: PointCloudTpl.h:391
cloudViewer::ScalarField::setValue
void setValue(std::size_t index, ScalarType value)
Definition: ScalarField.h:96
cloudViewer::ManualSegmentationTools::segmentMeshWithAABox
static bool segmentMeshWithAABox(GenericIndexedMesh *mesh, GenericIndexedCloudPersist *vertices, MeshCutterParams &ioParams, GenericProgressCallback *progressCb=nullptr)
Definition: ManualSegmentationTools.cpp:887
cloudViewer::GenericDistribution::setValid
void setValid(bool state)
Sets distribution current validity.
Definition: GenericDistribution.h:93
cloudViewer::ReferenceCloud::ReferenceCloud
ReferenceCloud(GenericIndexedCloudPersist *associatedCloud)
Default constructor.
Definition: ReferenceCloud.cpp:15
Vector3Tpl::orthogonal
Vector3Tpl orthogonal() const
Returns a normalized vector which is orthogonal to this one.
Definition: CVGeom.h:433
cloudViewer::DistanceComputationTools::computeCloud2PlaneEquation
static int computeCloud2PlaneEquation(GenericIndexedCloudPersist *cloud, const PointCoordinateType *planeEquation, bool signedDistances=true, double *rms=nullptr)
Computes the distance between each point in a cloud and a plane.
Definition: DistanceComputationTools.cpp:3187
cloudViewer::BoundingBoxTpl< PointCoordinateType >
cloudViewer::Neighbourhood::getGravityCenter
const CCVector3 * getGravityCenter()
Returns gravity center.
Definition: Neighbourhood.cpp:58
cloudViewer::SimpleMesh
A simple mesh structure, with index-based vertex access.
Definition: SimpleMesh.h:26
cloudViewer::BoundingBoxTpl::clear
void clear()
Resets the bounding box.
Definition: BoundingBox.h:125
CLOUDVIEWER_ASSERT
#define CLOUDVIEWER_ASSERT(...)
Definition: Macro.h:51
cloudViewer::DgmOctree::CylindricalNeighbourhood::neighbours
NeighboursSet neighbours
Neighbour points falling inside the cylinder.
Definition: DgmOctree.h:668
CVTools::TranslateKeyCode
static int TranslateKeyCode(int key)
Definition: CVTools.cpp:119
cloudViewer::utility::Timer::Timer
Timer()
Definition: Timer.cpp:17
cloudViewer::Polyline::Polyline
Polyline(GenericIndexedCloudPersist *associatedCloud)
Polyline constructor.
Definition: Polyline.cpp:12
cloudViewer::DgmOctree::NearestNeighboursSphericalSearchStruct
Definition: DgmOctree.h:247
cloudViewer::DgmOctree::m_nearestPow2
unsigned m_nearestPow2
Definition: DgmOctree.h:1240
pybind11
Definition: ccGuiPythonInstance.h:15
cloudViewer::DgmOctree::BoxNeighbourhood
Input/output parameters structure for getPointsInBoxNeighbourhood.
Definition: DgmOctree.h:727
cloudViewer::utility::Logger
Logger class should be used as a global singleton object (GetInstance()).
Definition: Logging.h:129
cloudViewer::GeometricalAnalysisTools::ProcessFailed
@ ProcessFailed
Definition: GeometricalAnalysisTools.h:51
cloudViewer::GenericIndexedCloudPersist::getPointPersistentPtr
virtual const CCVector3 * getPointPersistentPtr(unsigned index)=0
Returns the ith point as a persistent pointer.
Eigen::Matrix4d_u
Eigen::Matrix< double, 4, 4, Eigen::DontAlign > Matrix4d_u
Definition: Eigen.h:113
AXISTEST_X01
#define AXISTEST_X01(a, b, fa, fb)
Definition: CVMiscTools.cpp:43
cloudViewer::DistanceComputationTools::MAX_DIST
@ MAX_DIST
Definition: DistanceComputationTools.h:415
Vector3Tpl::norm2
Type norm2() const
Returns vector square norm.
Definition: CVGeom.h:417
cloudViewer::DgmOctree::getCellCodesAndIndexes
bool getCellCodesAndIndexes(unsigned char level, cellsContainer &vec, bool truncatedCodes=false) const
Definition: DgmOctree.cpp:2794
cloudViewer::ReferenceCloud::removeCurrentPointGlobalIndex
virtual void removeCurrentPointGlobalIndex()
Removes current element.
Definition: ReferenceCloud.h:195
cloudViewer::SquareMatrixTpl::clear
void clear()
Sets all elements to 0.
Definition: SquareMatrix.h:319
cloudViewer::TrueKdTree::Y_DIM
static const uint8_t Y_DIM
Definition: TrueKdTree.h:27
cloudViewer::Neighbourhood::computeGravityCenter
void computeGravityCenter()
Computes the gravity center.
Definition: Neighbourhood.cpp:122
Universe.h
cloudViewer::NormalizedProgress::reset
void reset()
Resets progress state.
Definition: NormalizedProgress.cpp:91
cloudViewer::PointCloudTpl::addPoint
void addPoint(const CCVector3 &P)
Adds a 3D point to the database.
Definition: PointCloudTpl.h:246
cloudViewer::utility::SetVerbosityLevel
void SetVerbosityLevel(VerbosityLevel level)
Definition: Logging.cpp:89
CVLog::DEBUG_FLAG
@ DEBUG_FLAG
Definition: CVLog.h:49
cloudViewer::FPCSRegistrationTools::Base::a
unsigned a
Definition: RegistrationTools.h:278
CVLog::RegisterInstance
static void RegisterInstance(CVLog *logInstance)
Registers a unique instance.
Definition: CVLog.cpp:81
cloudViewer::DgmOctree::IndexAndCode::theCode
CellCode theCode
cell code
Definition: DgmOctree.h:305
cloudViewer::Neighbourhood::FLAG_QUADRIC
@ FLAG_QUADRIC
Definition: Neighbourhood.h:38
cloudViewer::DgmOctree::m_stdDevCellPopulation
double m_stdDevCellPopulation[MAX_OCTREE_LEVEL+1]
Std. dev. of cell population per level of subdivision.
Definition: DgmOctree.h:1266
ScalarFieldView::ScalarFieldView
ScalarFieldView(cloudViewer::ScalarField &field)
Definition: ScalarField.cpp:22
cloudViewer::PointProjectionTools::Transformation
A scaled geometrical transformation (scale + rotation + translation)
Definition: PointProjectionTools.h:40
cloudViewer::core::AdvancedIndexPreprocessor::indexed_shape_
SizeVector indexed_shape_
Definition: AdvancedIndexing.h:101
CVTools::FromUnicode
static std::string FromUnicode(const QString &qstr)
Definition: CVTools.cpp:56
LSLocalModel::LSLocalModel
LSLocalModel(const PointCoordinateType eq[4], const CCVector3 &center, PointCoordinateType squaredRadius)
Constructor.
Definition: LocalModel.cpp:22
cloudViewer::GeometricalAnalysisTools::ApproxLocalDensity
@ ApproxLocalDensity
Definition: GeometricalAnalysisTools.h:29
cloudViewer::DgmOctree::computeMeanOctreeDensity
double computeMeanOctreeDensity(unsigned char level) const
Definition: DgmOctree.cpp:2789
cloudViewer::core::AdvancedIndexPreprocessor::ExpandBoolTensors
static std::vector< Tensor > ExpandBoolTensors(const std::vector< Tensor > &index_tensors)
Expand boolean tensor to integer index.
Definition: AdvancedIndexing.cpp:230
cloudViewer::ScalarField::computeMeanAndVariance
void computeMeanAndVariance(ScalarType &mean, ScalarType *variance=nullptr) const
Definition: ScalarField.cpp:41
cloudViewer::Delaunay2dMesh::~Delaunay2dMesh
~Delaunay2dMesh() override
Delaunay2dMesh destructor.
Definition: Delaunay2dMesh.cpp:38
cloudViewer::core::Indexer::NumWorkloads
int64_t NumWorkloads() const
Definition: Indexer.cpp:406
cloudViewer::core::AdvancedIndexPreprocessor::AdvancedIndexPreprocessor
AdvancedIndexPreprocessor(const Tensor &tensor, const std::vector< Tensor > &index_tensors)
Definition: AdvancedIndexing.h:23
Value
static vtkPVTrivialProducerStaticInternal Value
Definition: vtkDistributedTrivialProducer.cxx:65
cloudViewer::utility::filesystem::ListFilesInDirectoryWithExtension
bool ListFilesInDirectoryWithExtension(const std::string &directory, const std::string &extname, std::vector< std::string > &filenames)
Definition: FileSystem.cpp:567
cloudViewer::KDTree::distanceScanTree
void distanceScanTree(const PointCoordinateType *queryPoint, ScalarType distance, ScalarType tolerance, KdCell *cell, std::vector< unsigned > &localArray)
Definition: CVKdTree.cpp:551
cloudViewer::utility::StringReplaceFirst
std::string StringReplaceFirst(const std::string &str, const std::string &old_str, const std::string &new_str)
Definition: Helper.cpp:134
QuadricLocalModel::QuadricLocalModel
QuadricLocalModel(const PointCoordinateType eq[6], unsigned char X, unsigned char Y, unsigned char Z, CCVector3 gravityCenter, const CCVector3 &center, PointCoordinateType squaredRadius)
Constructor.
Definition: LocalModel.cpp:109
cloudViewer::KDTree::findPointBelowDistance
bool findPointBelowDistance(const PointCoordinateType *queryPoint, ScalarType maxDist)
Optimized version of nearest point search method.
Definition: CVKdTree.cpp:301
Utils::module
static double module(T *vector)
Definition: utils.h:105
cloudViewer::utility::Timer::GetDurationInHMS
std::tuple< int, int, double > GetDurationInHMS() const
Definition: Timer.cpp:44
define_ScalarFieldTools
void define_ScalarFieldTools(py::module &cccorelib)
Definition: ScalarFieldTools.cpp:25
X
void * X
Definition: SmallVector.cpp:45
LS
@ LS
Definition: CVConst.h:123
cloudViewer::GeometricalAnalysisTools::UnhandledCharacteristic
@ UnhandledCharacteristic
Definition: GeometricalAnalysisTools.h:52
cloudViewer::core::Tensor::GetStride
int64_t GetStride(int64_t dim) const
Definition: Tensor.h:1139
define_WeibullDistribution
void define_WeibullDistribution(py::module &cccorelib)
Definition: WeibullDistribution.cpp:15
cloudViewer::NormalizedProgress
Definition: GenericProgressCallback.h:78
cloudViewer::KDTree::findNearestNeighbour
bool findNearestNeighbour(const PointCoordinateType *queryPoint, unsigned &nearestPointIndex, ScalarType maxDist)
Nearest point search.
Definition: CVKdTree.cpp:178
cloudViewer::CCMiscTools::TriBoxOverlapd
static bool TriBoxOverlapd(const CCVector3d &boxcenter, const CCVector3d &boxhalfsize, const CCVector3d triverts[3])
Ovelap test between a 3D box and a triangle (double version)
Definition: CVMiscTools.cpp:249
cloudViewer::Grid3D< unsigned short >
DelaunayLocalModel
Delaunay 2D1/2 "local modelization".
Definition: LocalModel.cpp:53
UpdateProgress
static void UpdateProgress(unsigned increment)
Definition: TrueKdTree.cpp:62
PointCoordinateType
float PointCoordinateType
Type of the coordinates of a (N-D) point.
Definition: CVTypes.h:16
cloudViewer::TrueKdTree::X_DIM
static const uint8_t X_DIM
Definition: TrueKdTree.h:26
z
normal_z z
Definition: my_point_types.h:165
cloudViewer::DistanceComputationTools::ComputeCloud2PlaneRobustMax
static ScalarType ComputeCloud2PlaneRobustMax(GenericCloud *cloud, const PointCoordinateType *planeEquation, float percent)
Computes the maximum distance between a point cloud and a plane.
Definition: DistanceComputationTools.cpp:3566
ConstVertexIterator
std::list< Vertex2D * >::const_iterator ConstVertexIterator
Definition: PointProjectionTools.cpp:489
cloudViewer::Neighbourhood::NORMAL_CHANGE_RATE
@ NORMAL_CHANGE_RATE
Definition: Neighbourhood.h:42
TrianglesToTest::TrianglesToTest
TrianglesToTest(const GenericIndexedMesh &mesh)
Definition: DistanceComputationTools.cpp:1887
cloudViewer::Delaunay2dMesh::getBoundingBox
void getBoundingBox(CCVector3 &bbMin, CCVector3 &bbMax) override
Returns the mesh bounding-box.
Definition: Delaunay2dMesh.cpp:389
cloudViewer::Neighbourhood::getQuadric
const PointCoordinateType * getQuadric(Tuple3ub *dims=nullptr)
Returns the best interpolating 2.5D quadric.
Definition: Neighbourhood.cpp:109
cloudViewer::DgmOctree::getPointsInCylindricalNeighbourhood
std::size_t getPointsInCylindricalNeighbourhood(CylindricalNeighbourhood &params) const
Returns the points falling inside a cylinder.
Definition: DgmOctree.cpp:2111
cloudViewer::WeibullDistribution::FindGRoot
static double FindGRoot(const ScalarContainer &values, ScalarType valueShift, double valueRange)
internal function for parameters evaluation from sample points
Definition: WeibullDistribution.cpp:275
cloudViewer::NormalizedProgress::scale
void scale(unsigned totalSteps, unsigned totalPercentage=100, bool updateCurrentProgress=false)
Definition: NormalizedProgress.cpp:61
cloudViewer::utility::StringPrintf
std::string StringPrintf(const char *format,...)
Definition: Helper.cpp:110
cloudViewer::utility::WordLength
size_t WordLength(const std::string &doc, size_t start_pos, const std::string &valid_chars="_")
Definition: Helper.cpp:257
ChamferDistanceTransform.h
cloudViewer::GeometricalAnalysisTools::NotEnoughMemory
@ NotEnoughMemory
Definition: GeometricalAnalysisTools.h:53
cloudViewer::ICPRegistrationTools::Register
static RESULT_TYPE Register(GenericIndexedCloudPersist *modelCloud, GenericIndexedMesh *modelMesh, GenericIndexedCloudPersist *dataCloud, const Parameters &params, ScaledTransformation &totalTrans, double &finalRMS, unsigned &finalPointCount, GenericProgressCallback *progressCb=nullptr)
Registers two clouds or a cloud and a mesh.
Definition: RegistrationTools.cpp:145
s_totalProgressCount
static unsigned s_totalProgressCount
Definition: TrueKdTree.cpp:41
cloudViewer::DgmOctree::getOctreeMins
const CCVector3 & getOctreeMins() const
Returns the lower boundaries of the octree.
Definition: DgmOctree.h:453
cloudViewer::utility::ProgramOptionExistsAny
bool ProgramOptionExistsAny(int argc, char **argv, const std::vector< std::string > &options)
Definition: Console.cpp:104
cloudViewer::Delaunay2dMesh::USE_ALL_POINTS
static constexpr int USE_ALL_POINTS
Definition: Delaunay2dMesh.h:26
CLOUDVIEWER_HOST_DEVICE
#define CLOUDVIEWER_HOST_DEVICE
Definition: CUDAUtils.h:44
cloudViewer::Neighbourhood::FLAG_GRAVITY_CENTER
@ FLAG_GRAVITY_CENTER
Definition: Neighbourhood.h:36
cloudViewer::RegistrationTools::FilterTransformation
static void FilterTransformation(const ScaledTransformation &inTrans, int transformationFilters, const CCVector3 &toBeAlignedGravityCenter, const CCVector3 &referenceGravityCenter, ScaledTransformation &outTrans)
Definition: RegistrationTools.cpp:31
cloudViewer::FastMarching::setExtendedConnectivity
virtual void setExtendedConnectivity(bool state)
Sets extended connectivity mode.
Definition: FastMarching.h:81
cloudViewer::MeshSamplingTools::EdgeConnectivityStats::edgesSharedByTwo
unsigned edgesSharedByTwo
Edges shared by exactly two triangles.
Definition: MeshSamplingTools.h:55
define_FastMarching
void define_FastMarching(py::module &cccorelib)
Definition: FastMarching.cpp:18
ScalarFieldTools.h
cloudViewer::DistanceComputationTools::computeCloud2CylinderEquation
static int computeCloud2CylinderEquation(GenericIndexedCloudPersist *cloud, const CCVector3 &cylinderP1, const CCVector3 &cylinderP2, const PointCoordinateType cylinderRadius, bool signedDistances=true, bool solutionType=false, double *rms=nullptr)
Computes the distance between each point in a cloud and a cylinder.
Definition: DistanceComputationTools.cpp:3061
Tuple3Tpl::u
Type u[3]
Definition: CVGeom.h:139
cloudViewer::GeometricalAnalysisTools::ComputeSphereFrom4
static ErrorCode ComputeSphereFrom4(const CCVector3 &A, const CCVector3 &B, const CCVector3 &C, const CCVector3 &D, CCVector3 &center, PointCoordinateType &radius)
Computes the center and radius of a sphere passing through 4 points.
Definition: GeometricalAnalysisTools.cpp:1228
cloudViewer::DgmOctree::build
int build(GenericProgressCallback *progressCb=nullptr)
Builds the structure.
Definition: DgmOctree.cpp:196
cloudViewer::ManualSegmentationTools::MeshCutterParams::bbMin
CCVector3d bbMin
Definition: ManualSegmentationTools.h:130
QuadricLocalModel::getType
CV_LOCAL_MODEL_TYPES getType() const override
Returns the model type.
Definition: LocalModel.cpp:125
cloudViewer::DgmOctree::m_averageCellPopulation
double m_averageCellPopulation[MAX_OCTREE_LEVEL+1]
Average cell population per level of subdivision.
Definition: DgmOctree.h:1264
Polyline.h
cloudViewer::FastMarching::computeTCoefApprox
virtual float computeTCoefApprox(Cell *currentCell, Cell *neighbourCell) const =0
Computes the front acceleration between two cells.
cloudViewer::Delaunay2dMesh::removeTrianglesWithEdgesLongerThan
bool removeTrianglesWithEdgesLongerThan(PointCoordinateType maxEdgeLength)
Filters out the triangles based on their edge length.
Definition: Delaunay2dMesh.cpp:265
Vector3Tpl< PointCoordinateType >::vcross
static void vcross(const PointCoordinateType p[], const PointCoordinateType q[], PointCoordinateType r[])
Definition: CVGeom.h:528
cloudViewer::CloudSamplingTools::SFModulationParams::a
double a
Modulation scheme: y = a.sf + b.
Definition: CloudSamplingTools.h:146
LSLocalModel::getType
CV_LOCAL_MODEL_TYPES getType() const override
Returns the model type.
Definition: LocalModel.cpp:30
cloudViewer::Neighbourhood::EigenValue1
@ EigenValue1
Definition: Neighbourhood.h:173
OrientedBoundingBox.h
cloudViewer::NormalDistribution::m_mu
ScalarType m_mu
Mean.
Definition: NormalDistribution.h:86
cloudViewer::FastMarching::initGrid
virtual int initGrid(float step, unsigned dim[3])
Intializes the grid with a given step and dimensions.
Definition: FastMarching.cpp:65
cloudViewer::RegistrationTools::ScaledTransformation
PointProjectionTools::Transformation ScaledTransformation
Shortcut to PointProjectionTools::ScaledTransformation.
Definition: RegistrationTools.h:26
CCShareable::m_linkCount
unsigned m_linkCount
Links counter.
Definition: CVShareable.h:54
cloudViewer::CloudSamplingTools::resampleCellAtLevel
static bool resampleCellAtLevel(const DgmOctree::octreeCell &cell, void **additionalParameters, NormalizedProgress *nProgress=nullptr)
Definition: CloudSamplingTools.cpp:638
cloudViewer::Neighbourhood::Sphericity
@ Sphericity
Definition: Neighbourhood.h:171
CHAMFER_345
@ CHAMFER_345
Definition: CVConst.h:116
cloudViewer::CloudSamplingTools::subsampleCellAtLevel
static bool subsampleCellAtLevel(const DgmOctree::octreeCell &cell, void **additionalParameters, NormalizedProgress *nProgress=nullptr)
"Cellular" function to select a unique point inside an octree cell
Definition: CloudSamplingTools.cpp:665
cloudViewer::FastMarching::Cell::TRIAL_CELL
@ TRIAL_CELL
Definition: FastMarching.h:104
ScalarFieldView::ScalarFieldView
ScalarFieldView(const ScalarFieldView view, const py::slice &slice)
Definition: ScalarField.cpp:27
define_AutoSegmentationTools
void define_AutoSegmentationTools(py::module &cccorelib)
Definition: AutoSegmentationTools.cpp:18
cloudViewer::utility::filesystem::AddIfExist
std::string AddIfExist(const std::string &path, const std::vector< std::string > &folder_names)
Definition: FileSystem.cpp:726
cloudViewer::DgmOctree::m_maxCellPopulation
unsigned m_maxCellPopulation[MAX_OCTREE_LEVEL+1]
Max cell population per level of subdivision.
Definition: DgmOctree.h:1262
cloudViewer::utility::IJsonConvertible::EigenMatrix3dFromJsonArray
static bool EigenMatrix3dFromJsonArray(Eigen::Matrix3d &mat, const Json::Value &value)
Definition: IJsonConvertible.cpp:87
cloudViewer::utility::IJsonConvertible::ConvertToJsonValue
virtual bool ConvertToJsonValue(Json::Value &value) const =0
cloudViewer::utility::FPSTimer::Signal
void Signal()
Definition: Timer.cpp:80
cloudViewer::WeibullDistribution::chi2ClassesPositions
std::vector< ScalarType > chi2ClassesPositions
Chi2 classes limits.
Definition: WeibullDistribution.h:89
cloudViewer::Neighbourhood::setGravityCenter
void setGravityCenter(const CCVector3 &G)
Sets gravity center.
Definition: Neighbourhood.cpp:64
cloudViewer::RegistrationTools::SKIP_TRANSLATION
@ SKIP_TRANSLATION
Definition: RegistrationTools.h:38
cloudViewer::KDTree::KDTree
KDTree()
Default constructor.
Definition: CVKdTree.cpp:18
cloudViewer::DgmOctree::m_thePointsAndTheirCellCodes
cellsContainer m_thePointsAndTheirCellCodes
The coded octree structure.
Definition: DgmOctree.h:1230
cloudViewer::utility::IJsonConvertible::EigenVector4dFromJsonArray
static bool EigenVector4dFromJsonArray(Eigen::Vector4d &vec, const Json::Value &value)
Definition: IJsonConvertible.cpp:64
Garbage::add
void add(C *item)
Puts an item in the trash.
Definition: Garbage.h:18
cloudViewer::DgmOctree::CylindricalNeighbourhood::maxHalfLength
PointCoordinateType maxHalfLength
Cylinder (half) length.
Definition: DgmOctree.h:666
DistanceComputationTools.h
cloudViewer::system::getMemoryInfo
MemoryInfo getMemoryInfo()
Definition: MemoryInfo.cpp:63
QuadricLocalModel::computeDistanceFromModelToPoint
ScalarType computeDistanceFromModelToPoint(const CCVector3 *_P, CCVector3 *nearestPoint=nullptr) const override
Compute the (unsigned) distance between a 3D point and this model.
Definition: LocalModel.cpp:128
cloudViewer::ICPRegistrationTools::ICP_ERROR
@ ICP_ERROR
Definition: RegistrationTools.h:134
cloudViewer::ScalarField::setName
void setName(const char *name)
Sets scalar field name.
Definition: ScalarField.cpp:22
cloudViewer::Neighbourhood::PCA2
@ PCA2
Definition: Neighbourhood.h:169
cloudViewer::NormalDistribution::m_qFactor
double m_qFactor
Exponential quotient.
Definition: NormalDistribution.h:90
c_srcIndexFlag
const unsigned c_srcIndexFlag
Definition: ManualSegmentationTools.cpp:333
cloudViewer::KDTree::KdCell
A KDTre cell struct.
Definition: CVKdTree.h:101
cloudViewer::DgmOctree::cellCodesContainer
std::vector< CellCode > cellCodesContainer
Octree cell codes container.
Definition: DgmOctree.h:92
cloudViewer::FastMarchingForPropagation::step
int step() override
Propagates the front (one step)
Definition: FastMarchingForPropagation.cpp:73
DataCloud::DataCloud
DataCloud()
Definition: RegistrationTools.cpp:131
cloudViewer::Delaunay2dMesh::m_dumpTriangle
SimpleTriangle m_dumpTriangle
Dump triangle structure to transmit temporary data.
Definition: Delaunay2dMesh.h:145
cloudViewer::MeshSamplingTools::EdgeUsageMap
std::map< unsigned long long, unsigned > EdgeUsageMap
Map used to count the number of triangles using each edge.
Definition: MeshSamplingTools.h:153
cloudViewer::PointCloud::reserveNormals
bool reserveNormals(unsigned newCount)
Reserves memory to store the normals.
Definition: CVPointCloud.h:28
cloudViewer::TRIANGULATION_TYPES
TRIANGULATION_TYPES
Triangulation types.
Definition: PointProjectionTools.h:22
cloudViewer::OrientedBoundingBox::center_
Eigen::Vector3d center_
The center point of the bounding box.
Definition: OrientedBoundingBox.h:110
s_buffer
static char s_buffer[s_bufferMaxSize]
Definition: CVLog.cpp:28
cloudViewer::DgmOctree::NearestNeighboursSphericalSearchStruct::prepare
void prepare(PointCoordinateType radius, PointCoordinateType cellSize)
Updates maxD2 and minD2 with search radius and cellSize.
Definition: DgmOctree.h:270
cloudViewer::FastMarching::m_octree
DgmOctree * m_octree
Associated octree.
Definition: FastMarching.h:238
cloudViewer::KDTree::buildFromCloud
bool buildFromCloud(GenericIndexedCloud *cloud, GenericProgressCallback *progressCb=nullptr)
Builds the KD-tree.
Definition: CVKdTree.cpp:23
cloudViewer::KDTree::buildSubTree
KdCell * buildSubTree(unsigned first, unsigned last, KdCell *father, unsigned &nbBuildCell, GenericProgressCallback *progressCb=nullptr)
Builds a sub tree.
Definition: CVKdTree.cpp:108
cloudViewer::Delaunay2dMesh::_getTriangle
GenericTriangle * _getTriangle(unsigned triangleIndex) override
Returns the ith triangle.
Definition: Delaunay2dMesh.cpp:347
DEFAULT_IO_BUFFER_SIZE
#define DEFAULT_IO_BUFFER_SIZE
Definition: Logging.h:31
cloudViewer::KDTree::updateInsideBoundingBox
void updateInsideBoundingBox(KdCell *cell)
Definition: CVKdTree.cpp:359
cloudViewer::PointProjectionTools::applyTransformation
static PointCloud * applyTransformation(GenericCloud *cloud, Transformation &trans, GenericProgressCallback *progressCb=nullptr)
Applys a geometrical transformation to a point cloud.
Definition: PointProjectionTools.cpp:165
CVTools::QMappingWriter
static bool QMappingWriter(const std::string &filename, const void *data, std::size_t length)
Definition: CVTools.cpp:331
CVLog::WarningDebug
static bool WarningDebug(const char *format,...)
Same as Warning, but works only in Debug mode.
Definition: CVLog.cpp:167
cloudViewer::FastMarchingForPropagation::propagate
int propagate() override
Propagates the front.
Definition: FastMarchingForPropagation.cpp:130
cloudViewer::Universe::join
void join(int x, int y)
Definition: Universe.cpp:40
cloudViewer::ReferenceCloud::getAssociatedCloud
virtual GenericIndexedCloudPersist * getAssociatedCloud()
Returns the associated (source) cloud.
Definition: ReferenceCloud.h:206
cloudViewer::OrientedBoundingBox::GetHalfExtent
Eigen::Vector3d GetHalfExtent() const
Returns the half extent of the bounding box in its frame of reference.
Definition: OrientedBoundingBox.h:55
cloudViewer::TrueKdTree::Node::rightChild
BaseNode * rightChild
Definition: TrueKdTree.h:59
cloudViewer::MeshSamplingTools::computeMeshVolume
static double computeMeshVolume(GenericMesh *mesh)
Computes the mesh volume.
Definition: MeshSamplingTools.cpp:50
cloudViewer::ReferenceCloud::forEach
void forEach(genericPointAction action) override
Fast iteration mechanism.
Definition: ReferenceCloud.cpp:133
CHAMFER_111
@ CHAMFER_111
Definition: CVConst.h:115
cloudViewer::GenericDistribution::getName
virtual const char * getName() const =0
Returns distribution name.
cloudViewer::utility::StringReplace
std::string StringReplace(const std::string &str, const std::string &old_str, const std::string &new_str)
Definition: Helper.cpp:119
Utils::distance
static double distance(T *pot1, T *pot2)
Definition: utils.h:111
Chi2Class::Chi2Class
Chi2Class(double _pi, int _n)
Constructor from parameters.
Definition: StatisticalTestingTools.cpp:37
cloudViewer::ScalarFieldTools::computeScalarFieldHistogram
static void computeScalarFieldHistogram(const GenericCloud *theCloud, unsigned numberOfClasses, std::vector< int > &histo)
Computes an histogram of the scalar field with a given number of classes.
Definition: ScalarFieldTools.cpp:464
cloudViewer::FastMarchingForPropagation
Fast Marching algorithm for surface front propagation.
Definition: FastMarchingForPropagation.h:22
IJsonConvertible.h
cloudViewer::core::AdvancedIndexPreprocessor::RunPreprocess
void RunPreprocess()
Preprocess tensor and index tensors.
Definition: AdvancedIndexing.cpp:110
cloudViewer::LessThanEpsilon
bool LessThanEpsilon(float x)
Test a floating point number against our epsilon (a very small number).
Definition: CVMath.h:23
cloudViewer::NormalDistribution::NormalDistribution
NormalDistribution()
NormalDistribution constructor.
Definition: NormalDistribution.cpp:24
NO_MODEL
@ NO_MODEL
Definition: CVConst.h:122
cloudViewer::utility::JsonToString
std::string JsonToString(const Json::Value &json)
Serialize a Json::Value to a string.
Definition: IJsonConvertible.cpp:33
cloudViewer::NormalizedProgress::m_percent
float m_percent
Total progress value (in percent)
Definition: GenericProgressCallback.h:109
Vector3Tpl< PointCoordinateType >::fromArray
static Vector3Tpl fromArray(const int a[3])
Constructor from an int array.
Definition: CVGeom.h:268
cloudViewer::DgmOctree::getPointsInCell
bool getPointsInCell(CellCode cellCode, unsigned char level, ReferenceCloud *subset, bool isCodeTruncated=false, bool clearOutputCloud=true) const
Returns the points lying in a specific cell.
Definition: DgmOctree.cpp:537
cloudViewer::utility::IntersectionTest::LineSegmentsMinimumDistance
static double LineSegmentsMinimumDistance(const Eigen::Vector3d &p0, const Eigen::Vector3d &p1, const Eigen::Vector3d &q0, const Eigen::Vector3d &q1)
Definition: IntersectionTest.cpp:117
colmap::GetFileSize
size_t GetFileSize(const std::string &path)
Definition: misc.cc:219
cloudViewer::core::Indexer
Definition: Indexer.h:262
cloudViewer::Neighbourhood::Omnivariance
@ Omnivariance
Definition: Neighbourhood.h:163
GenericIndexedCloud.h
cloudViewer::Delaunay2dMesh::getTriangleVertIndexes
VerticesIndexes * getTriangleVertIndexes(unsigned triangleIndex) override
Returns the indexes of the vertices of a given triangle.
Definition: Delaunay2dMesh.cpp:382
cloudViewer::DistanceComputationTools::Cloud2MeshDistancesComputationParams::maxThreadCount
int maxThreadCount
Maximum number of threads to use (0 = max)
Definition: DistanceComputationTools.h:189
cloudViewer::Grid3D< unsigned short >::m_grid
std::vector< GridElement > m_grid
Grid data.
Definition: Grid3D.h:544
cloudViewer::core::AdvancedIndexer
Definition: AdvancedIndexing.h:117
cloudViewer::MeshSamplingTools::VERTEX_NORMAL
@ VERTEX_NORMAL
Definition: MeshSamplingTools.h:74
cloudViewer::Neighbourhood::Planarity
@ Planarity
Definition: Neighbourhood.h:166
cloudViewer::DgmOctreeReferenceCloud::getBoundingBox
void getBoundingBox(CCVector3 &bbMin, CCVector3 &bbMax) override
Returns the cloud bounding box.
Definition: DgmOctreeReferenceCloud.cpp:57
cloudViewer::DgmOctree::m_pointsMin
CCVector3 m_pointsMin
Definition: DgmOctree.h:1249
cloudViewer::AutoSegmentationTools::frontPropagationBasedSegmentation
static bool frontPropagationBasedSegmentation(GenericIndexedCloudPersist *theCloud, ScalarType minSeedDist, PointCoordinateType radius, unsigned char octreeLevel, ReferenceCloudContainer &theSegmentedLists, cloudViewer::GenericProgressCallback *progressCb=nullptr, cloudViewer::DgmOctree *inputOctree=nullptr, bool applyGaussianFilter=false, float alpha=2.0f)
Definition: AutoSegmentationTools.cpp:109
cloudViewer::ml::contrib::EPS
constexpr float EPS
Definition: IoUImpl.h:20
CVTools::FileMappingWriter
static bool FileMappingWriter(const std::string &filename, const void *data, unsigned long size)
Definition: CVTools.cpp:234
cloudViewer::core::Int64
const Dtype Int64
Definition: Dtype.cpp:47
cloudViewer::ScalarFieldTools::SetScalarValueToNaN
static void SetScalarValueToNaN(const CCVector3 &P, ScalarType &scalarValue)
Sets the distance value associated to a point.
Definition: ScalarFieldTools.cpp:22
type
char type
Definition: FileIOFactory.cpp:131
cloudViewer::DgmOctree::getCellPos
void getCellPos(CellCode code, unsigned char level, Tuple3i &cellPos, bool isCodeTruncated) const
Definition: DgmOctree.cpp:498
cloudViewer::DgmOctree::getCellSize
const PointCoordinateType & getCellSize(unsigned char level) const
Returns the octree cells length for a given level of subdivision.
Definition: DgmOctree.h:494
ScalarFieldView::set_item
void set_item(const py::object &index, const py::object &value)
Definition: ScalarField.cpp:65
DataCloud::cloud
ReferenceCloud * cloud
Definition: RegistrationTools.cpp:138
cloudViewer::DgmOctree::PointDescriptor::point
const CCVector3 * point
Point.
Definition: DgmOctree.h:103
cloudViewer::DgmOctreeReferenceCloud::m_validBB
bool m_validBB
Bounding-box validity.
Definition: DgmOctreeReferenceCloud.h:89
PRE_COMPUTED_POS_CODES
static MonoDimensionalCellCodes PRE_COMPUTED_POS_CODES
Definition: DgmOctree.cpp:107
cloudViewer::StatisticalTestingTools::computeChi2Fractile
static double computeChi2Fractile(double p, int d)
Computes the Chi2 fractile.
Definition: StatisticalTestingTools.cpp:242
cloudViewer::utility::StripString
std::string & StripString(std::string &str, const std::string &chars="\t\n\v\f\r ")
Definition: Helper.cpp:238
cloudViewer::Delaunay2dMesh::m_globalIterator
int * m_globalIterator
Iterator on the list of triangle vertex indexes.
Definition: Delaunay2dMesh.h:132
cloudViewer::GeometricalAnalysisTools::ComputeWeightedGravityCenter
static CCVector3 ComputeWeightedGravityCenter(GenericCloud *theCloud, ScalarField *weights)
Computes the weighted gravity center of a point cloud.
Definition: GeometricalAnalysisTools.cpp:537
cloudViewer::DgmOctree::findBestLevelForAGivenNeighbourhoodSizeExtraction
unsigned char findBestLevelForAGivenNeighbourhoodSizeExtraction(PointCoordinateType radius) const
Definition: DgmOctree.cpp:2664
cloudViewer::GenericTriangle
A generic triangle interface.
Definition: GenericTriangle.h:18
cloudViewer::ReferenceCloud::getPointPersistentPtr
const CCVector3 * getPointPersistentPtr(unsigned index) override
Returns the ith point as a persistent pointer.
Definition: ReferenceCloud.h:93
cloudViewer::DgmOctree::NearestNeighboursSearchStruct::minimalCellsSetToVisit
cellIndexesContainer minimalCellsSetToVisit
Definition: DgmOctree.h:206
CVTools::JoinStrVec
static std::string JoinStrVec(const std::vector< std::string > &v, std::string splitor=" ")
Definition: CVTools.cpp:108
cloudViewer::FastMarchingForPropagation::setJumpCoef
void setJumpCoef(float value)
Sets the accceleration exageration factor.
Definition: FastMarchingForPropagation.h:72
cloudViewer::NormalDistribution::getParameters
bool getParameters(ScalarType &_mu, ScalarType &_sigma2) const
Returns the distribution parameters.
Definition: NormalDistribution.cpp:35
cloudViewer::ScalarField::currentSize
unsigned currentSize() const
Definition: ScalarField.h:100
cloudViewer::DgmOctree::executeFunctionForAllCellsStartingAtLevel
unsigned executeFunctionForAllCellsStartingAtLevel(unsigned char startingLevel, octreeCellFunc func, void **additionalParameters, unsigned minNumberOfPointsPerCell, unsigned maxNumberOfPointsPerCell, bool multiThread=true, GenericProgressCallback *progressCb=nullptr, const char *functionTitle=nullptr, int maxThreadCount=0)
Definition: DgmOctree.cpp:3820
cloudViewer::utility::filesystem::FindFilesRecursively
std::vector< std::string > FindFilesRecursively(const std::string &directory, std::function< bool(const std::string &)> is_match)
Definition: FileSystem.cpp:586
cloudViewer::DgmOctree::PointDescriptor
Structure used during nearest neighbour search.
Definition: DgmOctree.h:101
cloudViewer::GenericProgressCallback::update
virtual void update(float percent)=0
Notifies the algorithm progress.
cloudViewer::OrientedBoundingBox::CreateFromAxisAlignedBoundingBox
static OrientedBoundingBox CreateFromAxisAlignedBoundingBox(const BoundingBox &aabox)
Definition: OrientedBoundingBox.cpp:74
Vector3Tpl< PointCoordinateType >::vdistance
static PointCoordinateType vdistance(const PointCoordinateType p[], const PointCoordinateType q[])
Definition: CVGeom.h:598
cloudViewer::ChamferDistanceTransform::init
bool init(const Tuple3ui &gridSize)
Initializes the grid.
Definition: ChamferDistanceTransform.h:37
cloudViewer::TrueKdTree::~TrueKdTree
~TrueKdTree()
Destructor.
Definition: TrueKdTree.cpp:27
cloudViewer::SimpleMesh::placeIteratorAtBeginning
void placeIteratorAtBeginning() override
Places the mesh iterator at the beginning.
Definition: SimpleMesh.cpp:43
cloudViewer::utility::filesystem::CFile::GetError
std::string GetError()
Returns the last encountered error for this file.
Definition: FileSystem.cpp:748
cloudViewer::utility::ceil
MiniVec< float, N > ceil(const MiniVec< float, N > &a)
Definition: MiniVec.h:89
cloudViewer::DistanceComputationTools::Cloud2MeshDistancesComputationParams
Cloud-to-mes distances computation parameters.
Definition: DistanceComputationTools.h:155
IndexAndCodeExt
Definition: DgmOctree.cpp:3066
cloudViewer::ICPRegistrationTools::RESULT_TYPE
RESULT_TYPE
Errors.
Definition: RegistrationTools.h:131
cloudViewer::SquareMatrixd
SquareMatrixTpl< double > SquareMatrixd
Double square matrix type.
Definition: SquareMatrix.h:1026
cloudViewer::FastMarching::addActiveCell
virtual void addActiveCell(unsigned index)
Add a cell to the ACTIVE cells list.
Definition: FastMarching.cpp:196
cloudViewer::ReferenceCloud::getPointScalarValue
ScalarType getPointScalarValue(unsigned pointIndex) const override
Returns the ith point associated scalar value.
Definition: ReferenceCloud.h:72
ModelCloud
Definition: RegistrationTools.cpp:123
cloudViewer::geometry::PointCloud
::ccPointCloud PointCloud
Definition: PointCloud.h:19
cloudViewer::VerticesIndexes::i1
unsigned i1
Definition: GenericIndexedMesh.h:19
cloudViewer::utility::TransformMatrix4dToVector6d
Eigen::Vector6d TransformMatrix4dToVector6d(const Eigen::Matrix4d &input)
Definition: Eigen.cpp:88
cloudViewer::DgmOctree::getNeighborCellsAround
void getNeighborCellsAround(const Tuple3i &cellPos, cellIndexesContainer &neighborCellsIndexes, int neighbourhoodLength, unsigned char level) const
Definition: DgmOctree.cpp:825
cloudViewer::Neighbourhood::m_structuresValidity
unsigned char m_structuresValidity
Geometrical elements validity (flags)
Definition: Neighbourhood.h:309
Message
Message.
Definition: CVLog.cpp:31
cloudViewer::utility::filesystem::CFile::GetNumLines
int64_t GetNumLines()
Returns the number of lines in the file.
Definition: FileSystem.cpp:793
cloudViewer::DistanceComputationTools::computeCloud2CloudDistances
static int computeCloud2CloudDistances(GenericIndexedCloudPersist *comparedCloud, GenericIndexedCloudPersist *referenceCloud, Cloud2CloudDistancesComputationParams &params, GenericProgressCallback *progressCb=nullptr, DgmOctree *compOctree=nullptr, DgmOctree *refOctree=nullptr)
Definition: DistanceComputationTools.cpp:112
cloudViewer::TrueKdTree::split
BaseNode * split(ReferenceCloud *subset)
Recursive split process.
Definition: TrueKdTree.cpp:76
cloudViewer::FastMarchingForPropagation::m_jumpCoef
float m_jumpCoef
Accceleration exageration factor.
Definition: FastMarchingForPropagation.h:109
cloudViewer::DgmOctree::getPointsInSphericalNeighbourhood
int getPointsInSphericalNeighbourhood(const CCVector3 &sphereCenter, PointCoordinateType radius, NeighboursSet &neighbours, unsigned char level) const
Returns the points falling inside a sphere.
Definition: DgmOctree.cpp:1846
cloudViewer::Grid3D::data
GridElement * data()
Gives access to the internal grid data (with margin)
Definition: Grid3D.h:527
cloudViewer::utility::InParallel
bool InParallel()
Returns true if in an parallel section.
Definition: Parallel.cpp:48
define_DgmOctreeReferenceCloud
void define_DgmOctreeReferenceCloud(py::module &cccorelib)
Definition: DgmOctreeReferenceCloud.cpp:16
cloudViewer::utility::filesystem::CopyA
bool CopyA(const std::string &src_path, const std::string &dst_path)
Definition: FileSystem.cpp:236
CVTools::ToUnicode
static QString ToUnicode(const std::string &cstr)
Definition: CVTools.cpp:68
cloudViewer::KDTree::KdCell::cuttingDim
unsigned cuttingDim
Definition: CVKdTree.h:138
CCVector2
Vector2Tpl< PointCoordinateType > CCVector2
Default 2D Vector.
Definition: CVGeom.h:780
cloudViewer::DistanceComputationTools::intersectMeshWithOctree
static int intersectMeshWithOctree(OctreeAndMeshIntersection *theIntersection, unsigned char octreeLevel, GenericProgressCallback *progressCb=nullptr)
Intersects a mesh with a grid structure.
Definition: DistanceComputationTools.cpp:741
cloudViewer::DgmOctree::findBestLevelForComparisonWithOctree
unsigned char findBestLevelForComparisonWithOctree(const DgmOctree *theOtherOctree) const
Definition: DgmOctree.cpp:2691
cloudViewer::Neighbourhood::CurvatureType
CurvatureType
Curvature type.
Definition: Neighbourhood.h:42
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
cloudViewer::utility::filesystem::RemoveFile
bool RemoveFile(const std::string &filename)
Definition: FileSystem.cpp:528
cloudViewer::LocalModel::New
static LocalModel * New(CV_LOCAL_MODEL_TYPES type, Neighbourhood &subset, const CCVector3 &center, PointCoordinateType squaredRadius)
Factory.
Definition: LocalModel.cpp:165
cloudViewer::utility::IntersectionTest::LinesMinimumDistance
static double LinesMinimumDistance(const Eigen::Vector3d &p0, const Eigen::Vector3d &p1, const Eigen::Vector3d &q0, const Eigen::Vector3d &q1)
Definition: IntersectionTest.cpp:76
ComparisonY
static bool ComparisonY(const unsigned &a, const unsigned &b)
Compares Y coordinates of two points designated by their index.
Definition: CVKdTree.cpp:97
Vector3Tpl::normd
double normd() const
Returns vector norm (forces double precision output)
Definition: CVGeom.h:426
cloudViewer::KDTree::pointToCellDistances
void pointToCellDistances(const PointCoordinateType *queryPoint, KdCell *cell, ScalarType &min, ScalarType &max)
Definition: CVKdTree.cpp:446
cloudViewer::ReferenceCloud::add
bool add(const ReferenceCloud &cloud)
Add another reference cloud.
Definition: ReferenceCloud.cpp:166
cloudViewer::core::AdvancedIndexer::AdvancedIndexerMode::GET
@ GET
cloudViewer::BoundingBoxTpl::minCorner
const Vector3Tpl< T > & minCorner() const
Returns min corner (const)
Definition: BoundingBox.h:154
Ray::squareDistanceToOrigin
double squareDistanceToOrigin(const Vector3Tpl< T > &P) const
Definition: RayAndBox.h:30
cloudViewer::ConjugateGradient::iterConjugateGradient
Scalar iterConjugateGradient(Scalar *Xn)
Iterates the conjugate gradient.
Definition: ConjugateGradient.h:59
BackwardNeighbours111
const signed char BackwardNeighbours111[14 *4]
Backward masks shifts and weights (Chamfer 1-1-1)
Definition: ChamferDistanceTransform.cpp:36
name
std::string name
Definition: FileIOFactory.cpp:129
cloudViewer::DgmOctree::m_theAssociatedCloud
GenericIndexedCloudPersist * m_theAssociatedCloud
Associated cloud.
Definition: DgmOctree.h:1233
SQRT_3
constexpr double SQRT_3
Square root of 3.
Definition: CVConst.h:29
CVMath.h
SquareMatrix.h
s_comparisonCloud
static cloudViewer::GenericIndexedCloud * s_comparisonCloud
Definition: CVKdTree.cpp:88
cloudViewer::NormalDistribution::computeChi2Dist
double computeChi2Dist(const GenericCloud *Yk, unsigned numberOfClasses, int *histo=nullptr) override
Computes the Chi2 distance (related to the Chi2 Test)
Definition: NormalDistribution.cpp:164
CV_CORE_LIB_API
#define CV_CORE_LIB_API
Definition: CVCoreLibWin.h:15
cloudViewer::RegistrationTools::SKIP_RXY
@ SKIP_RXY
Definition: RegistrationTools.h:31
cloudViewer::TrueKdTree::m_minPointCountPerCell
unsigned m_minPointCountPerCell
Min number of points per cell (speed-up)
Definition: TrueKdTree.h:167
DelaunayLocalModel::getType
CV_LOCAL_MODEL_TYPES getType() const override
Returns the model type.
Definition: LocalModel.cpp:67
cloudViewer::Polyline::clear
void clear(bool unusedParam=true) override
Clears the cloud.
Definition: Polyline.cpp:15
BoundingBox.h
cloudViewer::Neighbourhood::computeQuadric
bool computeQuadric()
Computes best fitting 2.5D quadric.
Definition: Neighbourhood.cpp:302
cloudViewer::utility::StringSplit
std::vector< std::string > StringSplit(const std::string &str, const std::string &delimiters=" ", bool trim_empty_str=true)
Definition: Helper.cpp:180
cloudViewer::DgmOctree::genericBuild
int genericBuild(GenericProgressCallback *progressCb=nullptr)
Generic method to build the octree structure.
Definition: DgmOctree.cpp:221
cloudViewer::DgmOctree::getTheCellPosWhichIncludesThePoint
void getTheCellPosWhichIncludesThePoint(const CCVector3 *thePoint, Tuple3i &cellPos) const
Definition: DgmOctree.h:779
cloudViewer::WeibullDistribution::m_valueShift
ScalarType m_valueShift
Weibull distribution parameter 'value shift'.
Definition: WeibullDistribution.h:98
cloudViewer::ReferenceCloud::getBoundingBox
void getBoundingBox(CCVector3 &bbMin, CCVector3 &bbMax) override
Returns the cloud bounding box.
Definition: ReferenceCloud.cpp:37
DataCloud
Definition: RegistrationTools.cpp:130