ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
G3Point::G3PointAction Class Reference

#include <G3PointAction.h>

Inheritance diagram for G3Point::G3PointAction:
Collaboration diagram for G3Point::G3PointAction:

Classes

struct  CloudAdaptor
 

Public Types

using KDTree = nanoflann::KDTreeSingleIndexAdaptor< nanoflann::L2_Simple_Adaptor< float, CloudAdaptor >, CloudAdaptor, 3 >
 

Public Member Functions

 G3PointAction (ccPointCloud *cloud, ecvMainAppInterface *app=nullptr)
 
 ~G3PointAction ()
 
void segment ()
 
void clusterAndOrClean ()
 
void getBorders ()
 
bool cluster ()
 
void fit ()
 
void exportResults ()
 
void plots ()
 
void showWolman (const Eigen::ArrayXf &d_sample, const Eigen::Array3d &dq_final, const Eigen::Array3d &edq)
 
bool wolman ()
 
bool angles ()
 
bool processNewStacks (std::vector< std::vector< int >> &newStacks, int pointCount)
 
bool buildStacksFromG3PointLabelSF (cloudViewer::ScalarField *g3PointLabel)
 
bool merge (XXb &condition)
 
bool keep (Xb &condition)
 
bool cleanLabels ()
 
void clean ()
 

Static Public Member Functions

static void createAction (ecvMainAppInterface *appInterface)
 
static void GetG3PointAction (ccPointCloud *cloud, ecvMainAppInterface *app=nullptr)
 
template<typename T >
static bool EigenArrayToFile (QString name, T array)
 

Detailed Description

Definition at line 29 of file G3PointAction.h.

Member Typedef Documentation

◆ KDTree

using G3Point::G3PointAction::KDTree = nanoflann::KDTreeSingleIndexAdaptor< nanoflann::L2_Simple_Adaptor<float, CloudAdaptor>, CloudAdaptor, 3 >

Definition at line 93 of file G3PointAction.h.

Constructor & Destructor Documentation

◆ G3PointAction()

G3Point::G3PointAction::G3PointAction ( ccPointCloud cloud,
ecvMainAppInterface app = nullptr 
)
explicit

Definition at line 56 of file G3PointAction.cpp.

Referenced by GetG3PointAction().

◆ ~G3PointAction()

G3Point::G3PointAction::~G3PointAction ( )

Definition at line 62 of file G3PointAction.cpp.

Member Function Documentation

◆ angles()

bool G3Point::G3PointAction::angles ( )

◆ buildStacksFromG3PointLabelSF()

bool G3Point::G3PointAction::buildStacksFromG3PointLabelSF ( cloudViewer::ScalarField g3PointLabel)

◆ clean()

void G3Point::G3PointAction::clean ( )

Definition at line 2094 of file G3PointAction.cpp.

◆ cleanLabels()

◆ cluster()

◆ clusterAndOrClean()

void G3Point::G3PointAction::clusterAndOrClean ( )

◆ createAction()

◆ EigenArrayToFile()

template<typename T >
bool G3Point::G3PointAction::EigenArrayToFile ( QString  name,
array 
)
static

Definition at line 787 of file G3PointAction.cpp.

References name.

◆ exportResults()

void G3Point::G3PointAction::exportResults ( )

Definition at line 1033 of file G3PointAction.cpp.

References GrainsAsEllipsoids::exportResultsAsCloud().

◆ fit()

◆ getBorders()

◆ GetG3PointAction()

void G3Point::G3PointAction::GetG3PointAction ( ccPointCloud cloud,
ecvMainAppInterface app = nullptr 
)
static

◆ keep()

bool G3Point::G3PointAction::keep ( Xb &  condition)

Definition at line 761 of file G3PointAction.cpp.

References CVLog::Error(), CVLog::Print(), and processNewStacks().

Referenced by cleanLabels().

◆ merge()

bool G3Point::G3PointAction::merge ( XXb &  condition)

◆ plots()

void G3Point::G3PointAction::plots ( )

Definition at line 1082 of file G3PointAction.cpp.

References angles().

◆ processNewStacks()

bool G3Point::G3PointAction::processNewStacks ( std::vector< std::vector< int >> &  newStacks,
int  pointCount 
)

Definition at line 609 of file G3PointAction.cpp.

References CVLog::Error().

Referenced by buildStacksFromG3PointLabelSF(), keep(), and merge().

◆ segment()

◆ showWolman()

void G3Point::G3PointAction::showWolman ( const Eigen::ArrayXf &  d_sample,
const Eigen::Array3d &  dq_final,
const Eigen::Array3d &  edq 
)

Definition at line 1084 of file G3PointAction.cpp.

References ccObject::getName().

Referenced by wolman().

◆ wolman()


The documentation for this class was generated from the following files: