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
 
 geometry
 
 gpu
 
 io
 
 ml
 
 pipelines
 
 ply_lineset_reader
 
 ply_pointcloud_reader
 
 ply_trianglemesh_reader
 
 ply_voxelgrid_reader
 
 system
 
 t
 
 utility
 
 visualization
 
 visualizer
 

Classes

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

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

void PrintCloudViewerVersion ()
 
std::string GetCloudViewerVersion ()
 
std::string GetBuildInfo ()
 
std::string GetCloudViewerBuildInfo ()
 
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<class T >
T InterpolateNumber (T start, T end, double interpolationFraction)
 
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)
 
int GraphicalUserInterface (const std::string &database_path, const std::string &image_path, const std::string &import_path)
 
int GenerateProject (const std::string &output_path, const std::string &quality)
 
int CleanDatabase (const std::string &database_path, const std::string &clean_type)
 
int CreateDatabase (const std::string &database_path)
 
int MergeDatabase (const std::string &database_path1, const std::string &database_path2, const std::string &merged_database_path)
 
int ExtractFeature (const std::string &database_path, const std::string &image_path, const std::string &image_list_path, int camera_mode, const colmap::ImageReaderOptions &image_reader_options, const colmap::SiftExtractionOptions &sift_extraction_options)
 
int ImportFeature (const std::string &database_path, const std::string &image_path, const std::string &import_path, const std::string &image_list_path, int camera_mode, const colmap::ImageReaderOptions &image_reader_options, const colmap::SiftExtractionOptions &sift_extraction_options)
 
int ImportMatches (const std::string &database_path, const std::string &match_list_path, const std::string &match_type, const colmap::SiftMatchingOptions &sift_matching_options)
 
int ExhaustiveMatch (const std::string &database_path, const colmap::SiftMatchingOptions &sift_matching_options, const colmap::ExhaustiveMatchingOptions &exhaustive_matching_options)
 
int SequentialMatch (const std::string &database_path, const colmap::SiftMatchingOptions &sift_matching_options, const colmap::SequentialMatchingOptions &sequential_matching_options)
 
int SpatialMatch (const std::string &database_path, const colmap::SiftMatchingOptions &sift_matching_options, const colmap::SpatialMatchingOptions &spatial_matching_options)
 
int TransitiveMatch (const std::string &database_path, const colmap::SiftMatchingOptions &sift_matching_options, const colmap::TransitiveMatchingOptions &transitive_matching_options)
 
int VocabTreeMatch (const std::string &database_path, const colmap::SiftMatchingOptions &sift_matching_options, const colmap::VocabTreeMatchingOptions &vocab_tree_matching_options)
 
int DeleteImage (const std::string &input_path, const std::string &output_path, const std::string &image_ids_path, const std::string &image_names_path)
 
int FilterImage (const std::string &input_path, const std::string &output_path, double min_focal_length_ratio, double max_focal_length_ratio, double max_extra_param, std::size_t min_num_observations)
 
int RectifyImage (const std::string &image_path, const std::string &input_path, const std::string &output_path, const std::string &stereo_pairs_list, double blank_pixels, double min_scale, double max_scale, int max_image_size)
 
int RegisterImage (const std::string &database_path, const std::string &input_path, const std::string &output_path, const colmap::IncrementalMapperOptions &incremental_mapper_options)
 
int UndistortImage (const std::string &image_path, const std::string &input_path, const std::string &output_path, const std::string &image_list_path, const std::string &output_type, const std::string &copy_policy, int num_patch_match_src_images, double blank_pixels, double min_scale, double max_scale, int max_image_size, double roi_min_x, double roi_min_y, double roi_max_x, double roi_max_y)
 
int UndistortImageStandalone (const std::string &image_path, const std::string &input_file, const std::string &output_path, double blank_pixels, double min_scale, double max_scale, int max_image_size, double roi_min_x, double roi_min_y, double roi_max_x, double roi_max_y)
 
int AlignModel (const std::string &input_path, const std::string &output_path, const std::string &database_path, const std::string &ref_images_path, const std::string &transform_path, const std::string &alignment_type, double max_error, int min_common_images, bool robust_alignment, bool estimate_scale)
 
int AnalyzeModel (const std::string &input_path)
 
int CompareModel (const std::string &input_path1, const std::string &input_path2, const std::string &output_path, double min_inlier_observations, double max_reproj_error)
 
int ConvertModel (const std::string &input_path, const std::string &output_path, const std::string &output_type, bool skip_distortion)
 
int CropModel (const std::string &input_path, const std::string &output_path, const std::string &boundary, const std::string &gps_transform_path)
 
int MergeModel (const std::string &input_path1, const std::string &input_path2, const std::string &output_path, double max_reproj_error)
 
int AlignModelOrientation (const std::string &image_path, const std::string &input_path, const std::string &output_path, std::string method, int max_image_size)
 
int SplitModel (const std::string &input_path, const std::string &output_path, const std::string &split_type, const std::string &split_params, const std::string &gps_transform_path, std::size_t min_reg_images, std::size_t min_num_points, double overlap_ratio, double min_area_ratio, int num_threads)
 
int TransformModel (const std::string &input_path, const std::string &output_path, const std::string &transform_path, bool is_inverse)
 
int MeshDelaunay (const std::string &input_path, const std::string &output_path, const std::string &input_type, const colmap::mvs::DelaunayMeshingOptions &delaunay_meshing_options)
 
int StereoPatchMatch (const std::string &workspace_path, const std::string &config_path, const std::string &workspace_format, const std::string &pmvs_option_name, const colmap::mvs::PatchMatchOptions &patch_match_options)
 
int MeshPoisson (const std::string &input_path, const std::string &output_path, const colmap::mvs::PoissonMeshingOptions &poisson_meshing_options)
 
int StereoFuse (const std::string &workspace_path, const std::string &output_path, const std::string &bbox_path, const std::string &stereo_input_type, const std::string &output_type, const std::string &workspace_format, const std::string &pmvs_option_name, const colmap::mvs::StereoFusionOptions &stereo_fusion_options)
 
int AutomaticReconstruct (const std::string &workspace_path, const std::string &image_path, const std::string &mask_path, const std::string &vocab_tree_path, const std::string &data_type, const std::string &quality, const std::string &mesher, const std::string &camera_model, bool single_camera, bool sparse, bool dense, int num_threads, bool use_gpu, const std::string &gpu_index)
 
int BundleAdjustment (const std::string &input_path, const std::string &output_path, const colmap::BundleAdjustmentOptions &bundle_adjustment_options)
 
int ExtractColor (const std::string &image_path, const std::string &input_path, const std::string &output_path)
 
int NormalMapper (const std::string &database_path, const std::string &image_path, const std::string &input_path, const std::string &output_path, const std::string &image_list_path, const colmap::IncrementalMapperOptions &incremental_mapper_options)
 
int HierarchicalMapper (const std::string &database_path, const std::string &image_path, const std::string &output_path, int num_workers, int image_overlap, int leaf_max_num_images, const colmap::IncrementalMapperOptions &incremental_mapper_options)
 
int FilterPoints (const std::string &input_path, const std::string &output_path, std::size_t min_track_len, double max_reproj_error, double min_tri_angle)
 
int TriangulatePoints (const std::string &database_path, const std::string &image_path, const std::string &input_path, const std::string &output_path, bool clear_points, const colmap::IncrementalMapperOptions &incremental_mapper_options)
 
int RigBundleAdjust (const std::string &input_path, const std::string &output_path, const std::string &rig_config_path, bool estimate_rig_relative_poses, bool refine_relative_poses, const colmap::BundleAdjustmentOptions &bundle_adjustment_options)
 
int BuildVocabTree (const std::string &database_path, const std::string &vocab_tree_path, int num_visual_words, int num_checks, int branching, int num_iterations, int max_num_images)
 
int RetrieveVocabTree (const std::string &database_path, const std::string &vocab_tree_path, const std::string &output_index_path, const std::string &query_image_list_path, const std::string &database_image_list_path, int max_num_images, int num_neighbors, int num_checks, int num_images_after_verification, int max_num_features)
 

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.

◆ BundleAdjustmentController

◆ ImageColormapBase

◆ ImageColormapNameFilter

◆ IncrementalMapperController

◆ IncrementalMapperOptions

◆ OptionManager

◆ PointColormapBase

◆ 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.

◆ RenderOptions

◆ SquareMatrix

Default CC square matrix type (PointCoordinateType)

◆ SquareMatrixd

Double square matrix type.

◆ SquareMatrixf

Float square matrix type.

◆ StaticVectorBool

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

Function Documentation

◆ AlignModel()

int cloudViewer::AlignModel ( const std::string &  input_path,
const std::string &  output_path,
const std::string &  database_path,
const std::string &  ref_images_path,
const std::string &  transform_path,
const std::string &  alignment_type,
double  max_error,
int  min_common_images,
bool  robust_alignment,
bool  estimate_scale 
)

◆ AlignModelOrientation()

int cloudViewer::AlignModelOrientation ( const std::string &  image_path,
const std::string &  input_path,
const std::string &  output_path,
std::string  method,
int  max_image_size 
)

◆ AnalyzeModel()

◆ AutomaticReconstruct()

int cloudViewer::AutomaticReconstruct ( const std::string &  workspace_path,
const std::string &  image_path,
const std::string &  mask_path,
const std::string &  vocab_tree_path,
const std::string &  data_type,
const std::string &  quality,
const std::string &  mesher,
const std::string &  camera_model,
bool  single_camera,
bool  sparse,
bool  dense,
int  num_threads,
bool  use_gpu,
const std::string &  gpu_index 
)

◆ BuildVocabTree()

int cloudViewer::BuildVocabTree ( const std::string &  database_path,
const std::string &  vocab_tree_path,
int  num_visual_words,
int  num_checks,
int  branching,
int  num_iterations,
int  max_num_images 
)

◆ BundleAdjustment()

◆ CleanDatabase()

int cloudViewer::CleanDatabase ( const std::string &  database_path,
const std::string &  clean_type 
)

◆ cloneArrayOfArrays()

◆ CompareModel()

int cloudViewer::CompareModel ( const std::string &  input_path1,
const std::string &  input_path2,
const std::string &  output_path,
double  min_inlier_observations,
double  max_reproj_error 
)

◆ ConvertModel()

int cloudViewer::ConvertModel ( const std::string &  input_path,
const std::string &  output_path,
const std::string &  output_type,
bool  skip_distortion 
)

◆ CreateDatabase()

◆ CropModel()

int cloudViewer::CropModel ( const std::string &  input_path,
const std::string &  output_path,
const std::string &  boundary,
const std::string &  gps_transform_path 
)

◆ DegreesToRadians() [1/3]

double cloudViewer::DegreesToRadians ( double  degrees)
inline

Convert degrees to radians.

Parameters
degreesDegrees to convert
Returns
degrees represented as radians.

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.

References M_PI.

◆ DegreesToRadians() [3/3]

float cloudViewer::DegreesToRadians ( int  degrees)
inline

Convert degrees to radians.

Parameters
degreesDegrees to convert
Returns
degrees represented as radians.

References M_PI.

Referenced by PdmsTools::PdmsCommands::Orientation::axisFromCoords(), ecvDisplayTools::ComputeActualPixelSize(), ecvViewportParameters::computeDistanceToHalfWidthRatio(), ccPointCloud::computeNormalsWithGrids(), ecvDisplayTools::ComputePerspectiveZoom(), ConvertAngleToRad(), ccNormalVectors::ConvertDipAndDipDirToNormal(), ecvPrimitiveFactoryDlg::createPrimitive(), define_CCMath(), cloudViewer::PointProjectionTools::developCloudOnCone(), ccPolyline::drawMeOnly(), ccKdTreeForFacetExtraction::FuseCells(), ccRasterizeTool::generateHillshade(), PCLModules::GetBoundaryCloud(), PCLModules::GetGreedyTriangulation(), qHoughNormalsDialog::getParameters(), PdmsTools::PdmsCommands::NumericalValue::getValue(), ccCompassImport::importFoliations(), ccCompass::importFoliations(), ccCompass::importLineations(), ccCompassImport::importLineations(), StereogramWidget::init(), QVTKWidgetCustom::mouseMoveEvent(), ccApplyTransformationDlg::onEulerValueChanged(), ccApplyTransformationDlg::onRotAngleValueChanged(), StereogramWidget::paintEvent(), ecvGenericDisplayTools::Perspective(), ecvDisplayTools::SetCameraFovy(), ecvDisplayTools::SetPerspectiveState(), ecvDisplayTools::SetupProjectiveViewport(), ecvDisplayTools::SetViewportParameters(), ccPointCloud::triangulateGrid(), ccPointCloud::unroll(), ccApplyTransformationDlg::updateAll(), ccCamSensorProjectionDlg::updateCamSensor(), ccGBLSensorProjectionDlg::updateGBLSensor(), and ccPlaneEditDlg::updatePlane().

◆ deleteArrayOfArrays() [1/2]

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

◆ deleteArrayOfArrays() [2/2]

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

◆ DeleteImage()

int cloudViewer::DeleteImage ( const std::string &  input_path,
const std::string &  output_path,
const std::string &  image_ids_path,
const std::string &  image_names_path 
)

◆ ExhaustiveMatch()

◆ ExtractColor()

int cloudViewer::ExtractColor ( const std::string &  image_path,
const std::string &  input_path,
const std::string &  output_path 
)

◆ ExtractFeature()

int cloudViewer::ExtractFeature ( const std::string &  database_path,
const std::string &  image_path,
const std::string &  image_list_path,
int  camera_mode,
const colmap::ImageReaderOptions &  image_reader_options,
const colmap::SiftExtractionOptions &  sift_extraction_options 
)

◆ FilterImage()

int cloudViewer::FilterImage ( const std::string &  input_path,
const std::string &  output_path,
double  min_focal_length_ratio,
double  max_focal_length_ratio,
double  max_extra_param,
std::size_t  min_num_observations 
)

◆ FilterPoints()

int cloudViewer::FilterPoints ( const std::string &  input_path,
const std::string &  output_path,
std::size_t  min_track_len,
double  max_reproj_error,
double  min_tri_angle 
)

◆ GenerateProject()

int cloudViewer::GenerateProject ( const std::string &  output_path,
const std::string &  quality 
)

◆ getArrayLengthFromFile()

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

References CVLog::Warning().

◆ GetBuildInfo()

std::string cloudViewer::GetBuildInfo ( )

◆ GetCloudViewerBuildInfo()

std::string cloudViewer::GetCloudViewerBuildInfo ( )

◆ GetCloudViewerVersion()

std::string cloudViewer::GetCloudViewerVersion ( )

Referenced by GetCloudViewerBuildInfo().

◆ GraphicalUserInterface()

int cloudViewer::GraphicalUserInterface ( const std::string &  database_path,
const std::string &  image_path,
const std::string &  import_path 
)

◆ 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.

References x, and 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.

References x, and ZERO_SQUARED_TOLERANCE_D.

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

◆ HierarchicalMapper()

int cloudViewer::HierarchicalMapper ( const std::string &  database_path,
const std::string &  image_path,
const std::string &  output_path,
int  num_workers,
int  image_overlap,
int  leaf_max_num_images,
const colmap::IncrementalMapperOptions &  incremental_mapper_options 
)

◆ ImportFeature()

int cloudViewer::ImportFeature ( const std::string &  database_path,
const std::string &  image_path,
const std::string &  import_path,
const std::string &  image_list_path,
int  camera_mode,
const colmap::ImageReaderOptions &  image_reader_options,
const colmap::SiftExtractionOptions &  sift_extraction_options 
)

◆ ImportMatches()

int cloudViewer::ImportMatches ( const std::string &  database_path,
const std::string &  match_list_path,
const std::string &  match_type,
const colmap::SiftMatchingOptions &  sift_matching_options 
)

◆ indexOf()

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

◆ InterpolateNumber()

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

◆ 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 
)

References x, and y.

◆ 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.

References x, and ZERO_TOLERANCE_D.

◆ LessThanEpsilon() [2/2]

bool cloudViewer::LessThanEpsilon ( float  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.

References x, and ZERO_TOLERANCE_F.

Referenced by ccPointPairRegistrationDlg::addAlignedPoint(), ccPointPairRegistrationDlg::addReferencePoint(), ccScalarFieldArithmeticsDlg::Apply(), ccCameraSensor::applyViewport(), ccDisc::buildUp(), ccTorus::buildUp(), ccCone::buildUp(), ccPlane::buildUp(), ccPolyline::ccPolyline(), cloudViewer::DistanceComputationTools::computeCloud2PlaneDistanceRMS(), cloudViewer::DistanceComputationTools::computeCloud2PlaneEquation(), cloudViewer::DistanceComputationTools::ComputeCloud2PlaneMaxDistance(), cloudViewer::DistanceComputationTools::ComputeCloud2PlaneRobustMax(), cloudViewer::Neighbourhood::computeLeastSquareBestFittingPlane(), ecvDisplayTools::ComputePerspectiveZoom(), vtk2cc::ConvertToPolyline(), ccCropTool::Crop(), define_CCMath(), cloudViewer::WeibullDistribution::FindGRoot(), ccCameraSensor::fromImageCoordToGlobalCoord(), ccGLMatrixTpl< float >::FromToRotation(), ccRasterizeTool::generateImage(), GetConeProfile(), cvContourTool::getOutput(), qAnimationDlg::onAutoStepsDurationToggled(), qAnimationDlg::onTotalTimeChanged(), CommandCrossSection::process(), cloudViewer::ICPRegistrationTools::Register(), cloudViewer::RegistrationTools::RegistrationProcedure(), cloudViewer::MeshSamplingTools::samplePointsOnMesh(), ccPointCloud::SegmentPlane(), ecvDisplayTools::SetFov(), ccPointCloud::setRGBColorByHeight(), ccRenderingTools::ShowDepthBuffer(), ccMesh::subdivide(), PdmsTools::PdmsObjects::Dish::surface(), ccPointCloud::Translate(), ccGenericMesh::trianglePicking(), cloudViewer::Neighbourhood::triangulateOnPlane(), and ecvDisplayTools::UpdateConstellationCenterAndZoom().

◆ 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.

References x, and 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 
)

◆ 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 
)

◆ MergeDatabase()

int cloudViewer::MergeDatabase ( const std::string &  database_path1,
const std::string &  database_path2,
const std::string &  merged_database_path 
)

◆ MergeModel()

int cloudViewer::MergeModel ( const std::string &  input_path1,
const std::string &  input_path2,
const std::string &  output_path,
double  max_reproj_error 
)

◆ MeshDelaunay()

int cloudViewer::MeshDelaunay ( const std::string &  input_path,
const std::string &  output_path,
const std::string &  input_type,
const colmap::mvs::DelaunayMeshingOptions &  delaunay_meshing_options 
)

◆ MeshPoisson()

◆ NormalMapper()

int cloudViewer::NormalMapper ( const std::string &  database_path,
const std::string &  image_path,
const std::string &  input_path,
const std::string &  output_path,
const std::string &  image_list_path,
const colmap::IncrementalMapperOptions &  incremental_mapper_options 
)

◆ PrintCloudViewerVersion()

void cloudViewer::PrintCloudViewerVersion ( )

References LogInfo.

Referenced by PrintHelp().

◆ RadiansToDegrees() [1/3]

double cloudViewer::RadiansToDegrees ( double  radians)
inline

Convert radians to degrees.

Parameters
radiansRadians to convert
Returns
radians represented as degrees.

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.

References M_PI.

◆ RadiansToDegrees() [3/3]

◆ RectifyImage()

int cloudViewer::RectifyImage ( const std::string &  image_path,
const std::string &  input_path,
const std::string &  output_path,
const std::string &  stereo_pairs_list,
double  blank_pixels,
double  min_scale,
double  max_scale,
int  max_image_size 
)

◆ RegisterImage()

int cloudViewer::RegisterImage ( const std::string &  database_path,
const std::string &  input_path,
const std::string &  output_path,
const colmap::IncrementalMapperOptions &  incremental_mapper_options 
)

◆ RetrieveVocabTree()

int cloudViewer::RetrieveVocabTree ( const std::string &  database_path,
const std::string &  vocab_tree_path,
const std::string &  output_index_path,
const std::string &  query_image_list_path,
const std::string &  database_image_list_path,
int  max_num_images,
int  num_neighbors,
int  num_checks,
int  num_images_after_verification,
int  max_num_features 
)

◆ RigBundleAdjust()

int cloudViewer::RigBundleAdjust ( const std::string &  input_path,
const std::string &  output_path,
const std::string &  rig_config_path,
bool  estimate_rig_relative_poses,
bool  refine_relative_poses,
const colmap::BundleAdjustmentOptions &  bundle_adjustment_options 
)

◆ saveArrayOfArraysToFile() [1/2]

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

References a, and CVLog::PrintDebug().

◆ saveArrayOfArraysToFile() [2/2]

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

References a, NULL, and CVLog::PrintDebug().

◆ saveArrayToFile() [1/2]

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

References a.

◆ saveArrayToFile() [2/2]

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

◆ SequentialMatch()

◆ sizeOfStaticVector() [1/2]

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

References a.

◆ sizeOfStaticVector() [2/2]

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

References a.

◆ SpatialMatch()

◆ SplitModel()

int cloudViewer::SplitModel ( const std::string &  input_path,
const std::string &  output_path,
const std::string &  split_type,
const std::string &  split_params,
const std::string &  gps_transform_path,
std::size_t  min_reg_images,
std::size_t  min_num_points,
double  overlap_ratio,
double  min_area_ratio,
int  num_threads 
)

◆ Square()

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

References x.

◆ StereoFuse()

int cloudViewer::StereoFuse ( const std::string &  workspace_path,
const std::string &  output_path,
const std::string &  bbox_path,
const std::string &  stereo_input_type,
const std::string &  output_type,
const std::string &  workspace_format,
const std::string &  pmvs_option_name,
const colmap::mvs::StereoFusionOptions &  stereo_fusion_options 
)

◆ StereoPatchMatch()

int cloudViewer::StereoPatchMatch ( const std::string &  workspace_path,
const std::string &  config_path,
const std::string &  workspace_format,
const std::string &  pmvs_option_name,
const colmap::mvs::PatchMatchOptions &  patch_match_options 
)

◆ TransformModel()

int cloudViewer::TransformModel ( const std::string &  input_path,
const std::string &  output_path,
const std::string &  transform_path,
bool  is_inverse 
)

◆ TransitiveMatch()

◆ TriangulatePoints()

int cloudViewer::TriangulatePoints ( const std::string &  database_path,
const std::string &  image_path,
const std::string &  input_path,
const std::string &  output_path,
bool  clear_points,
const colmap::IncrementalMapperOptions &  incremental_mapper_options 
)

◆ UndistortImage()

int cloudViewer::UndistortImage ( const std::string &  image_path,
const std::string &  input_path,
const std::string &  output_path,
const std::string &  image_list_path,
const std::string &  output_type,
const std::string &  copy_policy,
int  num_patch_match_src_images,
double  blank_pixels,
double  min_scale,
double  max_scale,
int  max_image_size,
double  roi_min_x,
double  roi_min_y,
double  roi_max_x,
double  roi_max_y 
)

◆ UndistortImageStandalone()

int cloudViewer::UndistortImageStandalone ( const std::string &  image_path,
const std::string &  input_file,
const std::string &  output_path,
double  blank_pixels,
double  min_scale,
double  max_scale,
int  max_image_size,
double  roi_min_x,
double  roi_min_y,
double  roi_max_x,
double  roi_max_y 
)

◆ VocabTreeMatch()

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

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.

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