 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
19 class GenericIndexedCloudPersist;
20 class GenericProgressCallback;
26 static const uint8_t X_DIM = 0;
27 static const uint8_t Y_DIM = 1;
28 static const uint8_t Z_DIM = 2;
29 static const uint8_t NODE_TYPE = 0;
30 static const uint8_t LEAF_TYPE = 1;
35 explicit BaseNode(uint8_t nodeType) : parent(nullptr),
type(nodeType) {}
115 return m_associatedCloud;
127 bool build(
double maxError,
130 unsigned minPointCountPerCell = 3,
131 unsigned maxPointCountPerCell = 0,
142 return m_errorMeasure;
146 bool getLeaves(LeafVector& leaves)
const;
Generic file read and write utility for python interface.
Definition: CloudViewerConfig.cpp:12
~Node() override
Definition: TrueKdTree.h:72
unsigned m_maxPointCountPerCell
Max number of points per cell (speed-up)
Definition: TrueKdTree.h:172
bool isNode() const
Definition: TrueKdTree.h:38
Tree node.
Definition: TrueKdTree.h:53
DistanceComputationTools::ERROR_MEASURES m_errorMeasure
Error measurement.
Definition: TrueKdTree.h:162
uint8_t splitDim
Definition: TrueKdTree.h:60
int userData
Definition: TrueKdTree.h:86
DistanceComputationTools::ERROR_MEASURES getMaxErrorType() const
Returns max error estimator used for planarity-based split strategy.
Definition: TrueKdTree.h:141
std::vector< Leaf * > LeafVector
A vector of leaves.
Definition: TrueKdTree.h:105
Tree leaf.
Definition: TrueKdTree.h:79
Definition: GenericProgressCallback.h:20
Leaf(ReferenceCloud *set, const PointCoordinateType planeEquation[], ScalarType _error)
Constructor.
Definition: TrueKdTree.h:94
PointCoordinateType splitValue
Definition: TrueKdTree.h:57
ReferenceCloud * points
Definition: TrueKdTree.h:83
Tree base node.
Definition: TrueKdTree.h:33
double m_maxError
Max error for planarity-based split strategy (see m_errorMeasure)
Definition: TrueKdTree.h:159
BaseNode * leftChild
Definition: TrueKdTree.h:58
double getMaxError() const
Returns max error threshold used for planarity-based split strategy.
Definition: TrueKdTree.h:138
GenericIndexedCloudPersist * m_associatedCloud
Associated cloud.
Definition: TrueKdTree.h:156
GenericIndexedCloudPersist * associatedCloud() const
Returns the associated cloud.
Definition: TrueKdTree.h:114
int points
Definition: FileIOFactory.cpp:144
A generic 3D point cloud with index-based and presistent access to points.
Definition: GenericIndexedCloudPersist.h:18
~Leaf() override
Definition: TrueKdTree.h:101
A very simple point cloud (no point duplication)
Definition: ReferenceCloud.h:29
Proper KD-tree implementation.
Definition: TrueKdTree.h:23
const uint8_t type
Definition: TrueKdTree.h:47
bool isLeaf() const
Definition: TrueKdTree.h:39
BaseNode * m_root
Root node.
Definition: TrueKdTree.h:153
BaseNode * parent
Definition: TrueKdTree.h:44
float PointCoordinateType
Type of the coordinates of a (N-D) point.
Definition: CVTypes.h:16
Node()
Definition: TrueKdTree.h:65
BaseNode * rightChild
Definition: TrueKdTree.h:59
char type
Definition: FileIOFactory.cpp:131
ScalarType error
Definition: TrueKdTree.h:85
BaseNode(uint8_t nodeType)
Definition: TrueKdTree.h:35
#define CV_CORE_LIB_API
Definition: CVCoreLibWin.h:15
unsigned m_minPointCountPerCell
Min number of points per cell (speed-up)
Definition: TrueKdTree.h:167