ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ecvMinimumSpanningTreeForNormsDirection.cpp File Reference
#include "ecvMinimumSpanningTreeForNormsDirection.h"
#include <ReferenceCloud.h>
#include "CVLog.h"
#include "ecvOctree.h"
#include "ecvPointCloud.h"
#include "ecvProgressDialog.h"
#include "ecvScalarField.h"
#include <map>
#include <queue>
#include <set>
#include <vector>
Include dependency graph for ecvMinimumSpanningTreeForNormsDirection.cpp:

Go to the source code of this file.

Classes

class  Edge
 Weighted graph edge. More...
 
class  Graph
 Generic graph structure. More...
 

Functions

static bool ResolveNormalsWithMST (ccPointCloud *cloud, ccOctree::Shared &octree, unsigned char level, unsigned kNN, ecvProgressDialog *progressCb=0)
 
static bool ComputeMSTGraphAtLevel (const cloudViewer::DgmOctree::octreeCell &cell, void **additionalParameters, cloudViewer::NormalizedProgress *nProgress)
 

Function Documentation

◆ ComputeMSTGraphAtLevel()

◆ ResolveNormalsWithMST()

static bool ResolveNormalsWithMST ( ccPointCloud cloud,
ccOctree::Shared octree,
unsigned char  level,
unsigned  kNN,
ecvProgressDialog progressCb = 0 
)
static

Definition at line 130 of file ecvMinimumSpanningTreeForNormsDirection.cpp.

References ccPointCloud::addScalarField(), cloudViewer::DgmOctree::NearestNeighboursSearchStruct::alreadyVisitedNeighbourhoodSize, cloudViewer::DgmOctree::NearestNeighboursSearchStruct::cellCenter, cloudViewer::DgmOctree::NearestNeighboursSearchStruct::cellPos, cloudViewer::DgmOctree::computeCellCenter(), ccScalarField::computeMinAndMax(), Vector3Tpl< Type >::dot(), cloudViewer::ScalarField::fill(), cloudViewer::DgmOctree::findNearestNeighborsStartingFromCell(), cloudViewer::PointCloudTpl< T >::getPoint(), ccPointCloud::getPointNormal(), cloudViewer::PointCloudTpl< T >::getScalarField(), cloudViewer::PointCloudTpl< T >::getScalarFieldIndexByName(), cloudViewer::DgmOctree::getTheCellPosWhichIncludesThePoint(), ccPointCloud::hasNormals(), cloudViewer::DgmOctree::NearestNeighboursSearchStruct::level, cloudViewer::DgmOctree::NearestNeighboursSearchStruct::minNumberOfNeighbors, NAN_VALUE, nProgress, octree, cloudViewer::NormalizedProgress::oneStep(), cloudViewer::DgmOctree::NearestNeighboursSearchStruct::pointsInNeighbourhood, CVLog::Print(), cloudViewer::DgmOctree::NearestNeighboursSearchStruct::queryPoint, ecvColor::Generator::Random(), ecvColor::RgbTpl< Type >::rgb, ccPointCloud::setCurrentDisplayedScalarField(), ccPointCloud::setPointColor(), ccPointCloud::setPointNormal(), ccPointCloud::setRGBColor(), cloudViewer::ScalarField::setValue(), ccDrawableObject::showColors(), ccDrawableObject::showSF(), cloudViewer::PointCloudTpl< T >::size(), Edge::v1(), Edge::v2(), and ecvColor::white().

Referenced by ccMinimumSpanningTreeForNormsDirection::OrientNormals().