ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
cloudViewer Namespace Reference

Generic file read and write utility for python interface. More...

Namespaces

 benchmarks
 
 camera
 
 core
 
 data
 
 docstring
 
 geometry
 
 gpu
 
 io
 
 ml
 
 pipelines
 
 ply_pointcloud_reader
 
 ply_trianglemesh_reader
 
 pybind_utils
 
 reconstruction
 
 system
 
 t
 
 utility
 
 visualization
 
 visualizer
 

Classes

class  AutoSegmentationTools
 
class  BoundingBoxTpl
 Bounding box structure. More...
 
class  ChamferDistanceTransform
 Class to compute a Chamfer distance field on a 3D grid. More...
 
class  CloudSamplingTools
 Several point cloud resampling algorithms (octree-based, random, etc.) More...
 
class  ConjugateGradient
 A class to perform a conjugate gradient optimization. More...
 
class  KDTree
 
class  CCMiscTools
 Miscellaneous useful functions (geometrical elements handling) More...
 
class  PointCloud
 
class  CVToolbox
 Empty class - for classification purpose only. More...
 
class  Delaunay2dMesh
 A class to compute and handle a Delaunay 2D mesh on a subset of points. More...
 
class  DgmOctree
 The octree structure used throughout the library. More...
 
class  DgmOctreeReferenceCloud
 A kind of ReferenceCloud based on the DgmOctree::NeighboursSet structure. More...
 
class  DistanceComputationTools
 
class  ErrorFunction
 A class to compute the Error function (erf) More...
 
class  FastMarching
 Fast Marching algorithm (front propagation) More...
 
class  FastMarchingForPropagation
 Fast Marching algorithm for surface front propagation. More...
 
class  GenericCloud
 
class  GenericDistribution
 A generic class to handle a probability distribution. More...
 
class  GenericIndexedCloud
 A generic 3D point cloud with index-based point access. More...
 
class  GenericIndexedCloudPersist
 A generic 3D point cloud with index-based and presistent access to points. More...
 
struct  VerticesIndexes
 Triangle described by the indexes of its 3 vertices. More...
 
class  GenericIndexedMesh
 A generic mesh with index-based vertex access. More...
 
class  GenericMesh
 
class  GenericOctree
 
class  GenericProgressCallback
 
class  NormalizedProgress
 
class  GenericTriangle
 A generic triangle interface. More...
 
class  GeometricalAnalysisTools
 
class  Grid3D
 Simple 3D grid structure. More...
 
class  LocalModel
 Local modelization (generic interface) More...
 
class  ManualSegmentationTools
 Manual segmentation algorithms (inside/outside a polyline, etc.) More...
 
class  MathTools
 Empty class - for classification purpose only. More...
 
class  MeshSamplingTools
 Mesh sampling algorithms. More...
 
class  Neighbourhood
 
class  NormalDistribution
 The Normal/Gaussian statistical distribution. More...
 
class  OrientedBoundingBox
 A bounding box oriented along an arbitrary frame of reference. More...
 
class  PointCloudTpl
 
class  PointProjectionTools
 
class  Polyline
 A simple polyline class. More...
 
class  ReferenceCloud
 A very simple point cloud (no point duplication) More...
 
class  RegistrationTools
 Common point cloud registration algorithms. More...
 
class  HornRegistrationTools
 Horn point cloud registration algorithm. More...
 
class  ICPRegistrationTools
 ICP point cloud registration algorithm (Besl et al.). More...
 
class  FPCSRegistrationTools
 
class  SaitoSquaredDistanceTransform
 
class  ScalarField
 A simple scalar field (to be associated to a point cloud) More...
 
struct  KMeanClass
 A K-mean class position and boundaries. More...
 
class  ScalarFieldTools
 Several scalar field treatment algorithms (gradient, classification, etc.) More...
 
class  SimpleMesh
 A simple mesh structure, with index-based vertex access. More...
 
class  SimpleRefTriangle
 A simple triangle class. More...
 
class  SimpleTriangle
 A simple triangle class. More...
 
class  SquareMatrixTpl
 Square matrix. More...
 
class  StaticVector
 
class  StatisticalTestingTools
 
class  TrueKdTree
 Proper KD-tree implementation. More...
 
struct  uni_elt
 
class  Universe
 Allows to perform labelling by creating node and connecting them. More...
 
class  WeibullDistribution
 The Weibull statistical parametric distribution. More...
 
struct  TriangleList
 List of triangles (indexes) More...
 
struct  OctreeAndMeshIntersection
 
class  AlignmentSession
 
class  VisualizerForAlignment
 
class  AutomaticReconstructionWidget
 
class  BundleAdjustmentWidget
 
class  AutomaticReconstructionController
 
class  ViewInterpolate
 The ViewInterpolate class. More...
 
class  TwoViewInfoTab
 
class  MatchesTab
 
class  TwoViewGeometriesTab
 
class  OverlappingImagesWidget
 
class  CameraTab
 
class  ImageTab
 
class  DatabaseManagementWidget
 
class  DenseReconstructionOptionsWidget
 
class  DenseReconstructionWidget
 
class  ExtractionWidget
 
class  SIFTExtractionWidget
 
class  ImportFeaturesWidget
 
class  FeatureExtractionWidget
 
class  FeatureMatchingTab
 
class  ExhaustiveMatchingTab
 
class  SequentialMatchingTab
 
class  VocabTreeMatchingTab
 
class  SpatialMatchingTab
 
class  TransitiveMatchingTab
 
class  CustomMatchingTab
 
class  FeatureMatchingWidget
 
class  ImageViewerGraphicsScene
 
class  ImageViewerWidget
 
class  FeatureImageViewerWidget
 
class  DatabaseImageViewerWidget
 
class  StandardOutputRedirector
 
class  LogWidget
 
class  MatchMatrixWidget
 
class  ModelViewerWidget
 
class  MovieGrabberWidget
 
class  PointViewerWidget
 
class  ProjectWidget
 
class  ReconstructionManagerWidget
 
class  MapperGeneralOptionsWidget
 
class  MapperTriangulationOptionsWidget
 
class  MapperRegistrationOptionsWidget
 
class  MapperInitializationOptionsWidget
 
class  MapperBundleAdjustmentOptionsWidget
 
class  MapperFilteringOptionsWidget
 
class  ReconstructionOptionsWidget
 
class  ReconstructionStatsWidget
 
class  ReconstructionWidget
 
class  RenderOptionsWidget
 
class  ThreadControlWidget
 
class  UndistortionWidget
 

Typedefs

using ReferenceCloudContainer = std::vector< ReferenceCloud * >
 A standard container to store several subsets of points. More...
 
using BoundingBox = BoundingBoxTpl< PointCoordinateType >
 Default bounding-box type. More...
 
using SquareMatrix = SquareMatrixTpl< PointCoordinateType >
 Default CC square matrix type (PointCoordinateType) More...
 
using SquareMatrixf = SquareMatrixTpl< float >
 Float square matrix type. More...
 
using SquareMatrixd = SquareMatrixTpl< double >
 Double square matrix type. More...
 
using StaticVectorBool = StaticVector< char >
 
using BundleAdjustmentController = colmap::BundleAdjustmentController
 
using OptionManager = colmap::OptionManager
 
using PointColormapBase = colmap::PointColormapBase
 
using ImageColormapBase = colmap::ImageColormapBase
 
using RenderOptions = colmap::RenderOptions
 
using IncrementalMapperController = colmap::IncrementalMapperController
 
using IncrementalMapperOptions = colmap::IncrementalMapperOptions
 
using ImageColormapNameFilter = colmap::ImageColormapNameFilter
 

Enumerations

enum  TRIANGULATION_TYPES { DELAUNAY_2D_AXIS_ALIGNED , DELAUNAY_2D_BEST_LS_PLANE = 2 }
 Triangulation types. More...
 

Functions

bool LessThanEpsilon (float x)
 Test a floating point number against our epsilon (a very small number). More...
 
bool LessThanEpsilon (double x)
 Test a floating point number against our epsilon (a very small number). More...
 
bool GreaterThanEpsilon (float x)
 Test a floating point number against our epsilon (a very small number). More...
 
bool GreaterThanEpsilon (double x)
 Test a floating point number against our epsilon (a very small number). More...
 
bool GreaterThanSquareEpsilon (double x)
 
bool LessThanSquareEpsilon (double x)
 
float RadiansToDegrees (int radians)
 Convert radians to degrees. More...
 
float RadiansToDegrees (float radians)
 Convert radians to degrees. More...
 
double RadiansToDegrees (double radians)
 Convert radians to degrees. More...
 
float DegreesToRadians (int degrees)
 Convert degrees to radians. More...
 
float DegreesToRadians (float degrees)
 Convert degrees to radians. More...
 
double DegreesToRadians (double degrees)
 Convert degrees to radians. More...
 
template<class T >
int sizeOfStaticVector (const StaticVector< T > *a)
 
template<class T >
int sizeOfStaticVector (const StaticVector< T > &a)
 
template<class T >
int indexOf (T *arr, int n, const T &what)
 
template<class T >
void saveArrayOfArraysToFile (std::string fileName, StaticVector< StaticVector< T > * > *aa)
 
template<class T >
void saveArrayOfArraysToFile (const std::string fileName, StaticVector< StaticVector< T >> &aa)
 
template<class T >
StaticVector< StaticVector< T > * > * loadArrayOfArraysFromFile (const std::string &fileName)
 
template<class T >
void loadArrayOfArraysFromFile (StaticVector< StaticVector< T >> &out_aa, const std::string &fileName)
 
template<class T >
void saveArrayToFile (const std::string &fileName, const StaticVector< T > &a, bool docompress=true)
 
template<class T >
void saveArrayToFile (const std::string &fileName, const StaticVector< T > *a, bool docompress=true)
 
template<class T >
StaticVector< T > * loadArrayFromFile (const std::string &fileName, bool printfWarning=false)
 
template<class T >
bool loadArrayFromFile (StaticVector< T > &out, const std::string &fileName, bool printfWarning=false)
 
template<class T >
void loadArrayFromFileIntoArray (StaticVector< T > *a, const std::string &fileName, bool printfWarning=false)
 
int getArrayLengthFromFile (std::string fileName)
 
template<class T >
void deleteArrayOfArrays (StaticVector< StaticVector< T > * > **aa)
 
template<class T >
void deleteArrayOfArrays (StaticVector< StaticVector< T > * > &aa)
 
template<class T >
StaticVector< StaticVector< T > * > * cloneArrayOfArrays (StaticVector< StaticVector< T > * > *inAOA)
 
template<typename scalar_t , typename T >
CLOUDVIEWER_HOST_DEVICE bool IsClose (const scalar_t &x, const T &y, const double rtol=1e-4)
 
template<typename scalar_t >
CLOUDVIEWER_HOST_DEVICE scalar_t Square (const scalar_t &x)
 
 PYBIND11_MODULE (pybind, m)
 
template<class T >
InterpolateNumber (T start, T end, double interpolationFraction)
 

Variables

static const double c_erfRelativeError = 1e-12
 Relative error for Error Function computation. More...
 
const int c_FastMarchingNeighbourPosShift []
 Grid neighboring cells positions. More...
 

Detailed Description

Generic file read and write utility for python interface.

Gives static access to file loader and writer

Typedef Documentation

◆ BoundingBox

Default bounding-box type.

Definition at line 304 of file BoundingBox.h.

◆ BundleAdjustmentController

using cloudViewer::BundleAdjustmentController = typedef colmap::BundleAdjustmentController

Definition at line 17 of file BundleAdjustmentWidget.cpp.

◆ ImageColormapBase

using cloudViewer::ImageColormapBase = typedef colmap::ImageColormapBase

Definition at line 33 of file ModelViewerWidget.h.

◆ ImageColormapNameFilter

using cloudViewer::ImageColormapNameFilter = typedef colmap::ImageColormapNameFilter

Definition at line 22 of file RenderOptionsWidget.h.

◆ IncrementalMapperController

using cloudViewer::IncrementalMapperController = typedef colmap::IncrementalMapperController

Definition at line 38 of file ReconstructionWidget.h.

◆ IncrementalMapperOptions

using cloudViewer::IncrementalMapperOptions = typedef colmap::IncrementalMapperOptions

Definition at line 39 of file ReconstructionWidget.h.

◆ OptionManager

typedef colmap::OptionManager cloudViewer::OptionManager

Definition at line 19 of file BundleAdjustmentWidget.h.

◆ PointColormapBase

using cloudViewer::PointColormapBase = typedef colmap::PointColormapBase

Definition at line 32 of file ModelViewerWidget.h.

◆ ReferenceCloudContainer

A standard container to store several subsets of points.

Several algorithms of the AutoSegmentationTools toolbox return a collection of subsets of points corresponding to each segmented part. Such a collection is generally stored in this type of container.

Definition at line 28 of file AutoSegmentationTools.h.

◆ RenderOptions

typedef colmap::RenderOptions cloudViewer::RenderOptions

Definition at line 35 of file ModelViewerWidget.h.

◆ SquareMatrix

Default CC square matrix type (PointCoordinateType)

Definition at line 1020 of file SquareMatrix.h.

◆ SquareMatrixd

Double square matrix type.

Definition at line 1026 of file SquareMatrix.h.

◆ SquareMatrixf

Float square matrix type.

Definition at line 1023 of file SquareMatrix.h.

◆ StaticVectorBool

Definition at line 145 of file StaticVector.h.

Enumeration Type Documentation

◆ TRIANGULATION_TYPES

Triangulation types.

Enumerator
DELAUNAY_2D_AXIS_ALIGNED 

Delaunay 2D triangulation in an axis-aligned plane

DELAUNAY_2D_BEST_LS_PLANE 

Delaunay 2D with points projected on the best least square fitting plane

Definition at line 22 of file PointProjectionTools.h.

Function Documentation

◆ cloneArrayOfArrays()

template<class T >
StaticVector<StaticVector<T>*>* cloudViewer::cloneArrayOfArrays ( StaticVector< StaticVector< T > * > *  inAOA)

◆ DegreesToRadians() [1/3]

double cloudViewer::DegreesToRadians ( double  degrees)
inline

Convert degrees to radians.

Parameters
degreesDegrees to convert
Returns
degrees represented as radians.

Definition at line 116 of file CVMath.h.

References M_PI.

◆ DegreesToRadians() [2/3]

float cloudViewer::DegreesToRadians ( float  degrees)
inline

Convert degrees to radians.

Parameters
degreesDegrees to convert
Returns
degrees represented as radians.

Definition at line 107 of file CVMath.h.

References M_PI.

◆ DegreesToRadians() [3/3]

◆ deleteArrayOfArrays() [1/2]

template<class T >
void cloudViewer::deleteArrayOfArrays ( StaticVector< StaticVector< T > * > &  aa)

Definition at line 703 of file StaticVector.h.

◆ deleteArrayOfArrays() [2/2]

template<class T >
void cloudViewer::deleteArrayOfArrays ( StaticVector< StaticVector< T > * > **  aa)

Definition at line 692 of file StaticVector.h.

◆ getArrayLengthFromFile()

int cloudViewer::getArrayLengthFromFile ( std::string  fileName)

Definition at line 14 of file StaticVector.cpp.

References CVLog::Warning().

◆ GreaterThanEpsilon() [1/2]

bool cloudViewer::GreaterThanEpsilon ( double  x)
inline

Test a floating point number against our epsilon (a very small number).

Parameters
xThe number to test
Returns
True if the number is greater than epsilon.

Definition at line 44 of file CVMath.h.

References ZERO_TOLERANCE_D.

◆ GreaterThanEpsilon() [2/2]

◆ GreaterThanSquareEpsilon()

bool cloudViewer::GreaterThanSquareEpsilon ( double  x)
inline

Test a (squared) floating point number against our epsilon (a very small number).

Parameters
xThe number to test
Returns
True if the number is greater than epsilon.

Definition at line 52 of file CVMath.h.

References ZERO_SQUARED_TOLERANCE_D.

Referenced by cloudViewer::Grid3D< Type >::intersectWith().

◆ indexOf()

template<class T >
int cloudViewer::indexOf ( T *  arr,
int  n,
const T &  what 
)

◆ InterpolateNumber()

template<class T >
T cloudViewer::InterpolateNumber ( start,
end,
double  interpolationFraction 
)

Definition at line 46 of file ViewInterpolate.cpp.

Referenced by cloudViewer::ViewInterpolate::interpolate().

◆ IsClose()

template<typename scalar_t , typename T >
CLOUDVIEWER_HOST_DEVICE bool cloudViewer::IsClose ( const scalar_t &  x,
const T &  y,
const double  rtol = 1e-4 
)

Definition at line 49 of file GeometryMacros.h.

◆ LessThanEpsilon() [1/2]

bool cloudViewer::LessThanEpsilon ( double  x)
inline

Test a floating point number against our epsilon (a very small number).

Parameters
xThe number to test
Returns
True if the number is less than epsilon.

Definition at line 30 of file CVMath.h.

References ZERO_TOLERANCE_D.

◆ LessThanEpsilon() [2/2]

◆ LessThanSquareEpsilon()

bool cloudViewer::LessThanSquareEpsilon ( double  x)
inline

Test a (squared) floating point number against our epsilon (a very small number).

Parameters
xThe (squared) number to test
Returns
True if the number is less than epsilon.

Definition at line 62 of file CVMath.h.

References ZERO_SQUARED_TOLERANCE_D.

◆ loadArrayFromFile() [1/2]

template<class T >
StaticVector<T>* cloudViewer::loadArrayFromFile ( const std::string &  fileName,
bool  printfWarning = false 
)

◆ loadArrayFromFile() [2/2]

template<class T >
bool cloudViewer::loadArrayFromFile ( StaticVector< T > &  out,
const std::string &  fileName,
bool  printfWarning = false 
)

Definition at line 555 of file StaticVector.h.

◆ loadArrayFromFileIntoArray()

template<class T >
void cloudViewer::loadArrayFromFileIntoArray ( StaticVector< T > *  a,
const std::string &  fileName,
bool  printfWarning = false 
)

◆ loadArrayOfArraysFromFile() [1/2]

template<class T >
StaticVector<StaticVector<T>*>* cloudViewer::loadArrayOfArraysFromFile ( const std::string &  fileName)

◆ loadArrayOfArraysFromFile() [2/2]

template<class T >
void cloudViewer::loadArrayOfArraysFromFile ( StaticVector< StaticVector< T >> &  out_aa,
const std::string &  fileName 
)

◆ PYBIND11_MODULE()

◆ RadiansToDegrees() [1/3]

double cloudViewer::RadiansToDegrees ( double  radians)
inline

Convert radians to degrees.

Parameters
radiansRadians to convert
Returns
radians represented as degrees.

Definition at line 89 of file CVMath.h.

References M_PI.

◆ RadiansToDegrees() [2/3]

float cloudViewer::RadiansToDegrees ( float  radians)
inline

Convert radians to degrees.

Parameters
radiansRadians to convert
Returns
radians represented as degrees.

Definition at line 80 of file CVMath.h.

References M_PI.

◆ RadiansToDegrees() [3/3]

◆ saveArrayOfArraysToFile() [1/2]

template<class T >
void cloudViewer::saveArrayOfArraysToFile ( const std::string  fileName,
StaticVector< StaticVector< T >> &  aa 
)

◆ saveArrayOfArraysToFile() [2/2]

template<class T >
void cloudViewer::saveArrayOfArraysToFile ( std::string  fileName,
StaticVector< StaticVector< T > * > *  aa 
)

Definition at line 175 of file StaticVector.h.

References NULL, CVLog::PrintDebug(), and cloudViewer::StaticVector< T >::size().

◆ saveArrayToFile() [1/2]

template<class T >
void cloudViewer::saveArrayToFile ( const std::string &  fileName,
const StaticVector< T > &  a,
bool  docompress = true 
)

Definition at line 312 of file StaticVector.h.

◆ saveArrayToFile() [2/2]

template<class T >
void cloudViewer::saveArrayToFile ( const std::string &  fileName,
const StaticVector< T > *  a,
bool  docompress = true 
)

◆ sizeOfStaticVector() [1/2]

template<class T >
int cloudViewer::sizeOfStaticVector ( const StaticVector< T > &  a)

◆ sizeOfStaticVector() [2/2]

template<class T >
int cloudViewer::sizeOfStaticVector ( const StaticVector< T > *  a)

Definition at line 148 of file StaticVector.h.

References cloudViewer::StaticVector< T >::size().

◆ Square()

template<typename scalar_t >
CLOUDVIEWER_HOST_DEVICE scalar_t cloudViewer::Square ( const scalar_t &  x)

Definition at line 56 of file GeometryMacros.h.

Variable Documentation

◆ c_erfRelativeError

const double cloudViewer::c_erfRelativeError = 1e-12
static

Relative error for Error Function computation.

You can adjust it to trade off between accuracy and speed but don't ask for more than 15 figures (assuming usual 52 bit mantissa in a double). Example: 1E-12 <--> calculate 12 significant figures

Definition at line 21 of file ErrorFunction.h.

Referenced by define_ErrorFunction(), and cloudViewer::ErrorFunction::erfc().

◆ c_FastMarchingNeighbourPosShift

const int cloudViewer::c_FastMarchingNeighbourPosShift[]
Initial value:
= {
0, -1, 0, 1, 0, 0, 0, 1, 0, -1, 0, 0, 0, 0, -1, 0, 0, 1,
-1, -1, -1, -1, -1, 0, -1, -1, 1, -1, 0, -1, -1, 0, 1, -1, 1, -1, -1, 1,
0, -1, 1, 1, 0, -1, -1, 0, -1, 1, 0, 1, -1, 0, 1, 1, 1, -1, -1, 1, -1,
0, 1, -1, 1, 1, 0, -1, 1, 0, 1, 1, 1, -1, 1, 1, 0, 1, 1, 1}

Grid neighboring cells positions.

Definition at line 29 of file FastMarching.h.

Referenced by cloudViewer::FastMarching::computeT(), define_FastMarching(), and cloudViewer::FastMarching::initOther().