CloudCompare v2.9.1源码
点云处理类的开源代码CloudCompare v2.9.1版,有需要的可以下载!
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-11-03 11:30 CloudCompare
文件 483 2017-11-03 11:30 CloudCompare.gitattributes
目录 0 2017-11-03 11:30 CloudCompare.github
文件 929 2017-11-03 11:30 CloudCompare.githubISSUE_TEMPLATE.md
文件 1916 2017-11-03 11:30 CloudCompare.gitignore
文件 547 2017-11-03 11:30 CloudCompare.gitmodules
目录 0 2017-11-03 11:30 CloudCompare.snapcraft
文件 2400 2017-11-03 11:30 CloudCompare.snapcraft ravis_snapcraft.cfg
文件 1502 2017-11-03 11:30 CloudCompare.travis.yml
文件 14066 2017-11-03 11:30 CloudCompareBUILD.md
目录 0 2017-11-03 11:30 CloudCompareCC
文件 1197 2017-11-03 11:30 CloudCompareCCCGALSupport.cmake
文件 2341 2017-11-03 11:30 CloudCompareCCCMakeLists.txt
目录 0 2017-11-03 11:30 CloudCompareCCdoc
文件 7 2017-11-03 11:30 CloudCompareCCdoc.gitignore
文件 107584 2017-11-03 11:30 CloudCompareCCdocCCLib_doxygen_file
文件 1384 2017-11-03 11:30 CloudCompareCCdoccclib_logo.png
目录 0 2017-11-03 11:30 CloudCompareCCinclude
文件 6653 2017-11-03 11:30 CloudCompareCCincludeAutoSegmentationTools.h
文件 4029 2017-11-03 11:30 CloudCompareCCincludeCCConst.h
文件 2202 2017-11-03 11:30 CloudCompareCCincludeCCCoreLib.h
文件 14223 2017-11-03 11:30 CloudCompareCCincludeCCGeom.h
文件 4071 2017-11-03 11:30 CloudCompareCCincludeCCMiscTools.h
文件 1870 2017-11-03 11:30 CloudCompareCCincludeCCPlatform.h
文件 2371 2017-11-03 11:30 CloudCompareCCincludeCCShareable.h
文件 1550 2017-11-03 11:30 CloudCompareCCincludeCCToolbox.h
文件 1532 2017-11-03 11:30 CloudCompareCCincludeCCTypes.h
文件 2946 2017-11-03 11:30 CloudCompareCCincludeChamferDistanceTransform.h
文件 10585 2017-11-03 11:30 CloudCompareCCincludeChunkedPointCloud.h
文件 14149 2017-11-03 11:30 CloudCompareCCincludeCloudSamplingTools.h
文件 4125 2017-11-03 11:30 CloudCompareCCincludeConjugateGradient.h
............此处省略2075个文件信息
//##########################################################################
//# #
//# CCLIB #
//# #
//# This program is free software; you can redistribute it and/or modify #
//# it under the terms of the GNU Library General Public License as #
//# published by the Free Software Foundation; version 2 or later of the #
//# License. #
//# #
//# This program is distributed in the hope that it will be useful #
//# but WITHOUT ANY WARRANTY; without even the implied warranty of #
//# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
//# GNU General Public License for more details. #
//# #
//# COPYRIGHT: EDF R&D / TELECOM ParisTech (ENST-TSI) #
//# #
//##########################################################################
#include “AutoSegmentationTools.h“
//local
#include “GenericProgressCallback.h“
#include “ReferenceCloud.h“
#include “FastMarchingForPropagation.h“
#include “ScalarFieldTools.h“
#include “ScalarField.h“
using namespace CCLib;
int AutoSegmentationTools::labelConnectedComponents(GenericIndexedCloudPersist* theCloud
unsigned char level
bool sixConnexity/*=false*/
GenericProgressCallback* progressCb/*=0*/
DgmOctree* inputOctree/*=0*/)
{
if (!theCloud)
{
return -1;
}
//compute octree if none was provided
DgmOctree* theOctree = inputOctree;
if (!theOctree)
{
theOctree = new DgmOctree(theCloud);
if (theOctree->build(progressCb) < 1)
{
delete theOctree;
return -1;
}
}
//we use the default scalar field to store components labels
theCloud->enableScalarField();
int result = theOctree->extractCCs(level sixConnexity progressCb);
//remove octree if it was not provided as input
if (theOctree && !inputOctree)
{
delete theOctree;
}
return result;
}
bool AutoSegmentationTools::extractConnectedComponents(GenericIndexedCloudPersist* theCloud ReferenceCloudContainer& cc)
{
unsigned numberOfPoints = (theCloud ? theCloud->size() : 0);
if (numberOfPoints == 0)
{
return false;
}
//components should have already been labeled and labels should have been stored in the active scalar field!
if (!theCloud->isScalarFieldEnabled())
{
return false;
}
//empty the input vector if necessary
while (!cc.empty())
{
delete cc.back();
cc.pop_back();
}
for (unsigned i = 0; i < numberOfPoints; ++i)
{
ScalarType slabel = theCloud->getPointScalarValue(i);
if (slabel >= 1) //labe
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-11-03 11:30 CloudCompare
文件 483 2017-11-03 11:30 CloudCompare.gitattributes
目录 0 2017-11-03 11:30 CloudCompare.github
文件 929 2017-11-03 11:30 CloudCompare.githubISSUE_TEMPLATE.md
文件 1916 2017-11-03 11:30 CloudCompare.gitignore
文件 547 2017-11-03 11:30 CloudCompare.gitmodules
目录 0 2017-11-03 11:30 CloudCompare.snapcraft
文件 2400 2017-11-03 11:30 CloudCompare.snapcraft ravis_snapcraft.cfg
文件 1502 2017-11-03 11:30 CloudCompare.travis.yml
文件 14066 2017-11-03 11:30 CloudCompareBUILD.md
目录 0 2017-11-03 11:30 CloudCompareCC
文件 1197 2017-11-03 11:30 CloudCompareCCCGALSupport.cmake
文件 2341 2017-11-03 11:30 CloudCompareCCCMakeLists.txt
目录 0 2017-11-03 11:30 CloudCompareCCdoc
文件 7 2017-11-03 11:30 CloudCompareCCdoc.gitignore
文件 107584 2017-11-03 11:30 CloudCompareCCdocCCLib_doxygen_file
文件 1384 2017-11-03 11:30 CloudCompareCCdoccclib_logo.png
目录 0 2017-11-03 11:30 CloudCompareCCinclude
文件 6653 2017-11-03 11:30 CloudCompareCCincludeAutoSegmentationTools.h
文件 4029 2017-11-03 11:30 CloudCompareCCincludeCCConst.h
文件 2202 2017-11-03 11:30 CloudCompareCCincludeCCCoreLib.h
文件 14223 2017-11-03 11:30 CloudCompareCCincludeCCGeom.h
文件 4071 2017-11-03 11:30 CloudCompareCCincludeCCMiscTools.h
文件 1870 2017-11-03 11:30 CloudCompareCCincludeCCPlatform.h
文件 2371 2017-11-03 11:30 CloudCompareCCincludeCCShareable.h
文件 1550 2017-11-03 11:30 CloudCompareCCincludeCCToolbox.h
文件 1532 2017-11-03 11:30 CloudCompareCCincludeCCTypes.h
文件 2946 2017-11-03 11:30 CloudCompareCCincludeChamferDistanceTransform.h
文件 10585 2017-11-03 11:30 CloudCompareCCincludeChunkedPointCloud.h
文件 14149 2017-11-03 11:30 CloudCompareCCincludeCloudSamplingTools.h
文件 4125 2017-11-03 11:30 CloudCompareCCincludeConjugateGradient.h
............此处省略2075个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)