ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
cccorelib.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 <pybind11/pybind11.h>
11 
12 #include <AutoSegmentationTools.h>
13 #include <DgmOctree.h>
14 #include <GenericDistribution.h>
15 #include <TrueKdTree.h>
16 
17 PYBIND11_MAKE_OPAQUE(std::vector<unsigned>)
19 
23 
cloudViewer::GenericIndexedCloud
A generic 3D point cloud with index-based point access.
Definition: GenericIndexedCloud.h:18
TRI
@ TRI
Definition: CVConst.h:124
define_GenericProgressCallback
void define_GenericProgressCallback(py::module &)
Definition: GenericProgressCallback.cpp:15
define_GenericDistribution
void define_GenericDistribution(py::module &)
Definition: GenericDistribution.cpp:20
PYBIND11_EMBEDDED_MODULE
PYBIND11_EMBEDDED_MODULE(ccinternals, m)
Definition: Runtime.cpp:117
cloudViewer::BoundingBoxTpl< PointCoordinateType >::add
void add(const Vector3Tpl< PointCoordinateType > &P)
'Enlarges' the bounding box with a point
Definition: BoundingBox.h:131
NumpyCloud::placeIteratorAtBeginning
void placeIteratorAtBeginning() override
Sets the cloud iterator at the beginning.
Definition: cccorelib.cpp:235
cloudViewer::BoundingBoxTpl< PointCoordinateType >::getMinBoxDim
PointCoordinateType getMinBoxDim() const
Returns minimal box dimension.
Definition: BoundingBox.h:178
cloudViewer::BoundingBoxTpl< PointCoordinateType >::getCenter
Vector3Tpl< PointCoordinateType > getCenter() const
Returns center.
Definition: BoundingBox.h:164
Tuple3Tpl::x
Type x
Definition: CVGeom.h:137
define_cccorelib
void define_cccorelib(py::module &m)
Definition: cccorelib.cpp:261
POINT_OUT_OF_FOV
constexpr unsigned char POINT_OUT_OF_FOV
Definition: CVConst.h:98
define_TrueKdTree
void define_TrueKdTree(py::module &)
Definition: TrueKdTree.cpp:22
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
define_GenericIndexedCloudPersist
void define_GenericIndexedCloudPersist(py::module &cccorelib)
Definition: GenericIndexedCloudPersist.cpp:16
define_PointCloud
void define_PointCloud(py::module &cccorelib)
Definition: PointCloud.cpp:14
CVConst.h
cloudViewer::BoundingBoxTpl< PointCoordinateType >::getDiagNorm
PointCoordinateType getDiagNorm() const
Returns diagonal length.
Definition: BoundingBox.h:172
define_CCConst
void define_CCConst(py::module &)
Definition: CCConst.cpp:15
define_PointProjectionTools
void define_PointProjectionTools(py::module &cccorelib)
Definition: PointProjectionTools.cpp:22
cloudViewer::BoundingBoxTpl< PointCoordinateType >::setValidity
void setValidity(bool state)
Sets bonding box validity.
Definition: BoundingBox.h:200
TrueKdTree.h
define_ManualSegmentationTools
void define_ManualSegmentationTools(py::module &)
Definition: ManualSegmentationTools.cpp:20
cloudViewer::TrueKdTree::LeafVector
std::vector< Leaf * > LeafVector
A vector of leaves.
Definition: TrueKdTree.h:105
AutoSegmentationTools.h
GenericProgressCallback.h
NumpyCloud::forEach
void forEach(genericPointAction action) override
Fast iteration mechanism.
Definition: cccorelib.cpp:204
NumpyCloud::NumpyCloud
NumpyCloud(const py::array &array)
Definition: cccorelib.cpp:134
define_ReferenceCloud
void define_ReferenceCloud(py::module &cccorelib)
Definition: ReferenceCloud.cpp:19
define_CCGeom
void define_CCGeom(py::module &)
Definition: CCGeom.cpp:138
NumpyCloud
Definition: cccorelib.cpp:131
DgmOctree.h
define_DgmOctree
void define_DgmOctree(py::module &)
Definition: DgmOctree.cpp:21
cloudViewer::BoundingBoxTpl< PointCoordinateType >::getDiagNormd
double getDiagNormd() const
Returns diagonal length (double precision)
Definition: BoundingBox.h:175
define_StatisticalTestingTools
void define_StatisticalTestingTools(py::module &)
Definition: StatisticalTestingTools.cpp:21
cccorelib.h
CCVector3
Vector3Tpl< PointCoordinateType > CCVector3
Default 3D Vector.
Definition: CVGeom.h:798
define_GenericIndexedMesh
void define_GenericIndexedMesh(py::module &)
Definition: GenericIndexedMesh.cpp:17
GeometricalAnalysisTools.h
ZERO_TOLERANCE_SCALAR
constexpr ScalarType ZERO_TOLERANCE_SCALAR
Definition: CVConst.h:57
define_CCShareable
void define_CCShareable(py::module &)
Definition: CCShareable.cpp:17
cloudViewer::BoundingBoxTpl< PointCoordinateType >::getMaxBoxDim
PointCoordinateType getMaxBoxDim() const
Returns maximal box dimension.
Definition: BoundingBox.h:185
define_LocalModel
void define_LocalModel(py::module &cccorelib)
Definition: LocalModel.cpp:15
size
int size
Definition: FileIOFactory.cpp:130
define_ErrorFunction
void define_ErrorFunction(py::module &)
Definition: ErrorFunction.cpp:15
define_BoundingBox
void define_BoundingBox(py::module &)
Definition: BoundingBox.cpp:16
cloudViewer::GenericDistribution::ScalarContainer
std::vector< ScalarType > ScalarContainer
Scalar values container.
Definition: GenericDistribution.h:46
Vector3Tpl< PointCoordinateType >
QUADRIC
@ QUADRIC
Definition: CVConst.h:125
NumpyCloud::getPoint
void getPoint(unsigned int index, CCVector3 &P) const override
Definition: cccorelib.cpp:191
define_CCMath
void define_CCMath(py::module &)
Definition: CCMath.cpp:15
define_GenericOctree
void define_GenericOctree(py::module &cccorelib)
Definition: GenericOctree.cpp:16
cloudViewer::BoundingBoxTpl< PointCoordinateType >::isValid
bool isValid() const
Returns whether bounding box is valid or not.
Definition: BoundingBox.h:203
define_DistanceComputationTools
void define_DistanceComputationTools(py::module &)
Definition: DistanceComputationTools.cpp:15
NumpyCloud::isScalarFieldEnabled
bool isScalarFieldEnabled() const override
Returns true if the scalar field is enabled, false otherwise.
Definition: cccorelib.cpp:244
ZERO_TOLERANCE_D
constexpr double ZERO_TOLERANCE_D
Definition: CVConst.h:49
define_GeometricalAnalysisTools
void define_GeometricalAnalysisTools(py::module &)
Definition: GeometricalAnalysisTools.cpp:19
POINT_OUT_OF_RANGE
constexpr unsigned char POINT_OUT_OF_RANGE
Definition: CVConst.h:96
CVGeom.h
cloudViewer::BoundingBoxTpl< PointCoordinateType >::minDistTo
PointCoordinateType minDistTo(const BoundingBoxTpl< PointCoordinateType > &bbox) const
Definition: BoundingBox.h:209
NumpyCloud::setPointScalarValue
void setPointScalarValue(unsigned int pointIndex, ScalarType value) override
Definition: cccorelib.cpp:248
CVPointCloud.h
POINT_VISIBLE
constexpr unsigned char POINT_VISIBLE
Definition: CVConst.h:92
define_RegistrationTools
void define_RegistrationTools(py::module &cccorelib)
Definition: RegistrationTools.cpp:17
define_ScalarField
void define_ScalarField(py::module &cccorelib)
Definition: ScalarField.cpp:155
Tuple3Tpl::z
Type z
Definition: CVGeom.h:137
define_GenericTriangle
void define_GenericTriangle(py::module &)
Definition: GenericTriangle.cpp:17
define_SimpleMesh
void define_SimpleMesh(py::module &cccorelib)
Definition: SimpleMesh.cpp:18
define_GenericMesh
void define_GenericMesh(py::module &)
Definition: GenericMesh.cpp:16
define_ScalarFieldTools
void define_ScalarFieldTools(py::module &cccorelib)
Definition: ScalarFieldTools.cpp:25
cloudViewer::GenericCloud::genericPointAction
std::function< void(const CCVector3 &, ScalarType &)> genericPointAction
Generic function applied to a point (used by foreach)
Definition: GenericCloud.h:30
PYBIND11_MODULE
PYBIND11_MODULE(cccorelib, m)
Definition: cccorelib.cpp:342
PC_ONE
constexpr PointCoordinateType PC_ONE
'1' as a PointCoordinateType value
Definition: CVConst.h:67
Grid3D.h
cloudViewer::BoundingBoxTpl< PointCoordinateType >::contains
bool contains(const Vector3Tpl< PointCoordinateType > &P) const
Returns whether a points is inside the box or not.
Definition: BoundingBox.h:231
cloudViewer::DgmOctree::NeighboursSet
std::vector< PointDescriptor > NeighboursSet
A set of neighbours.
Definition: DgmOctree.h:133
define_CloudSamplingTools
void define_CloudSamplingTools(py::module &)
Definition: CloudSamplingTools.cpp:21
cloudViewer::ReferenceCloudContainer
std::vector< ReferenceCloud * > ReferenceCloudContainer
A standard container to store several subsets of points.
Definition: AutoSegmentationTools.h:28
NumpyCloud::size
unsigned int size() const override
Returns the number of points.
Definition: cccorelib.cpp:197
define_BoundingBox
void define_BoundingBox(py::module &cccorelib)
Definition: BoundingBox.cpp:16
cloudViewer::DgmOctree::NeighbourCellsSet
std::vector< CellDescriptor > NeighbourCellsSet
A set of neighbour cells descriptors.
Definition: DgmOctree.h:150
ReferenceCloud.h
ZERO_TOLERANCE_POINT_COORDINATE
constexpr ScalarType ZERO_TOLERANCE_POINT_COORDINATE
Definition: CVConst.h:62
define_KdTree
void define_KdTree(py::module &cccorelib)
Definition: KdTree.cpp:20
NAN_VALUE
constexpr ScalarType NAN_VALUE
NaN as a ScalarType value.
Definition: CVConst.h:76
cloudViewer::BoundingBoxTpl< PointCoordinateType >::getDiagVec
Vector3Tpl< PointCoordinateType > getDiagVec() const
Returns diagonal vector.
Definition: BoundingBox.h:169
PC_NAN
constexpr PointCoordinateType PC_NAN
'NaN' as a PointCoordinateType value
Definition: CVConst.h:71
GenericDistribution.h
Tuple3Tpl::y
Type y
Definition: CVGeom.h:137
define_ChamferDistanceTransform
void define_ChamferDistanceTransform(py::module &)
Definition: ChamferDistanceTransform.cpp:15
cloudViewer::BoundingBoxTpl< PointCoordinateType >
cloudViewer::BoundingBoxTpl< PointCoordinateType >::clear
void clear()
Resets the bounding box.
Definition: BoundingBox.h:125
pybind11
Definition: ccGuiPythonInstance.h:15
NumpyCloud::getBoundingBox
void getBoundingBox(CCVector3 &bbMin, CCVector3 &bbMax) override
Returns the cloud bounding box.
Definition: cccorelib.cpp:221
define_CCMiscTools
void define_CCMiscTools(py::module &)
Definition: CCMiscTools.cpp:15
define_Delaunay2dMesh
void define_Delaunay2dMesh(py::module &)
Definition: Delaynay2dMesh.cpp:19
define_WeibullDistribution
void define_WeibullDistribution(py::module &)
Definition: WeibullDistribution.cpp:15
define_NormalDistribution
void define_NormalDistribution(py::module &)
Definition: NormalDistribution.cpp:17
Utils::module
static double module(T *vector)
Definition: utils.h:105
LS
@ LS
Definition: CVConst.h:123
define_Polyline
void define_Polyline(py::module &cccorelib)
Definition: Polyline.cpp:15
define_GenericIndexedCloud
void define_GenericIndexedCloud(py::module &)
Definition: GenericIndexedCloud.cpp:15
ChamferDistanceTransform.h
define_GenericCloud
void define_GenericCloud(py::module &)
Definition: GenericCloud.cpp:16
define_CCConst
void define_CCConst(py::module &cccorelib)
Definition: CCConst.cpp:15
define_DgmOctreeReferenceCloud
void define_DgmOctreeReferenceCloud(py::module &)
Definition: DgmOctreeReferenceCloud.cpp:16
cloudViewer::BoundingBox
BoundingBoxTpl< PointCoordinateType > BoundingBox
Default bounding-box type.
Definition: BoundingBox.h:304
NumpyCloud::enableScalarField
bool enableScalarField() override
Enables the scalar field associated to the cloud.
Definition: cccorelib.cpp:240
CHAMFER_345
@ CHAMFER_345
Definition: CVConst.h:116
NumpyCloud::getPoint
const CCVector3 * getPoint(unsigned int index) const override
Definition: cccorelib.cpp:184
NumpyCloud::getPointScalarValue
ScalarType getPointScalarValue(unsigned int pointIndex) const override
Definition: cccorelib.cpp:249
PYBIND11_MAKE_OPAQUE
PYBIND11_MAKE_OPAQUE(std::vector< CLCloudDesc >)
CHAMFER_111
@ CHAMFER_111
Definition: CVConst.h:115
NO_MODEL
@ NO_MODEL
Definition: CVConst.h:122
POINT_HIDDEN
constexpr unsigned char POINT_HIDDEN
Definition: CVConst.h:94
define_FastMarching
void define_FastMarching(py::module &)
Definition: FastMarching.cpp:18
define_AutoSegmentationTools
void define_AutoSegmentationTools(py::module &)
Definition: AutoSegmentationTools.cpp:18
NumpyCloud::getNextPoint
const CCVector3 * getNextPoint() override
Returns the next point (relatively to the global iterator position)
Definition: cccorelib.cpp:236
cloudViewer::BoundingBoxTpl< PointCoordinateType >::computeVolume
double computeVolume() const
Returns the bounding-box volume.
Definition: BoundingBox.h:192
SQRT_3
constexpr double SQRT_3
Square root of 3.
Definition: CVConst.h:29
define_SimpleTriangle
void define_SimpleTriangle(py::module &)
Definition: SimpleTriangle.cpp:17
ZERO_TOLERANCE_F
constexpr float ZERO_TOLERANCE_F
Definition: CVConst.h:43
BoundingBox.h