ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
AutoSegmentationTools.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 // Local
13 #include "CVToolbox.h"
14 #include "CVTypes.h"
15 
16 namespace cloudViewer {
17 
18 class GenericIndexedCloudPersist;
19 class GenericProgressCallback;
20 class DgmOctree;
21 class ReferenceCloud;
22 
24 
28 using ReferenceCloudContainer = std::vector<ReferenceCloud*>;
29 
33 public:
35 
57  static int labelConnectedComponents(
59  unsigned char level,
60  bool sixConnexity = false,
61  cloudViewer::GenericProgressCallback* progressCb = nullptr,
62  cloudViewer::DgmOctree* inputOctree = nullptr);
63 
65 
73  static bool extractConnectedComponents(GenericIndexedCloudPersist* theCloud,
75 
78 
100  static bool frontPropagationBasedSegmentation(
101  GenericIndexedCloudPersist* theCloud,
102  ScalarType minSeedDist,
103  PointCoordinateType radius,
104  unsigned char octreeLevel,
105  ReferenceCloudContainer& theSegmentedLists,
106  cloudViewer::GenericProgressCallback* progressCb = nullptr,
107  cloudViewer::DgmOctree* inputOctree = nullptr,
108  bool applyGaussianFilter = false,
109  float alpha = 2.0f);
110 };
111 
112 } // namespace cloudViewer
cloudViewer
Generic file read and write utility for python interface.
Definition: CloudViewerConfig.cpp:12
octreeLevel
unsigned char octreeLevel
Definition: qCanupoTools.cpp:38
cloudViewer::GenericProgressCallback
Definition: GenericProgressCallback.h:20
cloudViewer::AutoSegmentationTools
Definition: AutoSegmentationTools.h:32
cloudViewer::CVToolbox
Empty class - for classification purpose only.
Definition: CVToolbox.h:15
cloudViewer::PrintCloudViewerVersion
void PrintCloudViewerVersion()
Definition: CloudViewerConfig.cpp:14
CVToolbox.h
cloudViewer::DgmOctree
The octree structure used throughout the library.
Definition: DgmOctree.h:39
CVTypes.h
cloudViewer::GenericIndexedCloudPersist
A generic 3D point cloud with index-based and presistent access to points.
Definition: GenericIndexedCloudPersist.h:18
cloudViewer::GetCloudViewerBuildInfo
std::string GetCloudViewerBuildInfo()
Definition: CloudViewerConfig.cpp:30
cloudViewer::GetCloudViewerVersion
std::string GetCloudViewerVersion()
Definition: CloudViewerConfig.cpp:18
cloudViewer::GetBuildInfo
std::string GetBuildInfo()
Definition: CloudViewerConfig.cpp:20
LogInfo
#define LogInfo(...)
Definition: Logging.h:81
cloudViewer::ReferenceCloudContainer
std::vector< ReferenceCloud * > ReferenceCloudContainer
A standard container to store several subsets of points.
Definition: AutoSegmentationTools.h:28
PointCoordinateType
float PointCoordinateType
Type of the coordinates of a (N-D) point.
Definition: CVTypes.h:16
CV_CORE_LIB_API
#define CV_CORE_LIB_API
Definition: CVCoreLibWin.h:15