ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
masc::Tools Class Reference

#include <q3DMASCTools.h>

Public Types

typedef QMap< QString, ccPointCloud * > NamedClouds
 

Static Public Member Functions

static bool LoadTrainingFile (QString filename, Feature::Set &rawFeatures, std::vector< double > &scales, NamedClouds &loadedClouds, TrainParameters &parameters, CorePoints *corePoints=nullptr, QWidget *parent=nullptr)
 
static bool LoadClassifierCloudLabels (QString filename, QList< QString > &labels, QString &corePointsLabel, bool &filenamesSpecified, QMap< QString, QString > &rolesAndNames)
 
static bool LoadClassifier (QString filename, NamedClouds &clouds, Feature::Set &rawFeatures, masc::Classifier &classifier, QWidget *parent=nullptr)
 
static bool LoadFile (const QString &filename, Tools::NamedClouds *clouds, bool cloudsAreProvided, std::vector< Feature::Shared > *rawFeatures=nullptr, std::vector< double > *rawScales=nullptr, masc::CorePoints *corePoints=nullptr, masc::Classifier *classifier=nullptr, TrainParameters *parameters=nullptr, QWidget *parent=nullptr)
 
static bool SaveClassifier (QString filename, const Feature::Set &features, const QString corePointsRole, const masc::Classifier &classifier, QWidget *parent=nullptr)
 
static bool PrepareFeatures (const CorePoints &corePoints, Feature::Set &features, QString &error, cloudViewer::GenericProgressCallback *progressCb=nullptr, SFCollector *generatedScalarFields=nullptr)
 
static bool RandomSubset (ccPointCloud *cloud, float ratio, cloudViewer::ReferenceCloud *inRatioSubset, cloudViewer::ReferenceCloud *outRatioSubset)
 
static cloudViewer::ScalarFieldRetrieveSF (const ccPointCloud *cloud, const QString &sfName, bool caseSensitive=true)
 
static cloudViewer::ScalarFieldGetClassificationSF (const ccPointCloud *cloud)
 Helper: returns the classification SF associated to a cloud (if any) More...
 

Detailed Description

Definition at line 41 of file q3DMASCTools.h.

Member Typedef Documentation

◆ NamedClouds

typedef QMap<QString, ccPointCloud*> masc::Tools::NamedClouds

Definition at line 43 of file q3DMASCTools.h.

Member Function Documentation

◆ GetClassificationSF()

◆ LoadClassifier()

bool Tools::LoadClassifier ( QString  filename,
NamedClouds clouds,
Feature::Set rawFeatures,
masc::Classifier classifier,
QWidget *  parent = nullptr 
)
static

Definition at line 962 of file q3DMASCTools.cpp.

References filename, and LoadFile().

Referenced by q3DMASCPlugin::doClassifyAction().

◆ LoadClassifierCloudLabels()

bool Tools::LoadClassifierCloudLabels ( QString  filename,
QList< QString > &  labels,
QString &  corePointsLabel,
bool &  filenamesSpecified,
QMap< QString, QString > &  rolesAndNames 
)
static

◆ LoadFile()

◆ LoadTrainingFile()

bool Tools::LoadTrainingFile ( QString  filename,
Feature::Set rawFeatures,
std::vector< double > &  scales,
NamedClouds loadedClouds,
TrainParameters parameters,
CorePoints corePoints = nullptr,
QWidget *  parent = nullptr 
)
static

Definition at line 971 of file q3DMASCTools.cpp.

References corePoints, filename, and LoadFile().

Referenced by q3DMASCPlugin::doTrainAction().

◆ PrepareFeatures()

bool Tools::PrepareFeatures ( const CorePoints corePoints,
Feature::Set features,
QString &  error,
cloudViewer::GenericProgressCallback progressCb = nullptr,
SFCollector generatedScalarFields = nullptr 
)
static

Definition at line 1031 of file q3DMASCTools.cpp.

References cloudViewer::DgmOctree::NearestNeighboursSearchStruct::cellCenter, cloudViewer::DgmOctree::NearestNeighboursSearchStruct::cellPos, cloudViewer::DgmOctree::computeCellCenter(), ccGenericPointCloud::computeOctree(), masc::Feature::ContextBasedFeature, FeaturesAndScales::contextBasedFeaturesPerScale, corePoints, CVLog::Error(), FeaturesAndScales::featureCount, cloudViewer::DgmOctree::findBestLevelForAGivenNeighbourhoodSizeExtraction(), cloudViewer::DgmOctree::findNeighborsInASphereStartingFromCell(), ccObject::getName(), ccGenericPointCloud::getOctree(), cloudViewer::GenericIndexedCloud::getPoint(), cloudViewer::DgmOctree::getTheCellPosWhichIncludesThePoint(), cloudViewer::DgmOctree::NearestNeighboursSearchStruct::level, masc::Feature::NeighborhoodFeature, FeaturesAndScales::neighborhoodFeaturesPerScale, masc::Feature::NO_OPERATION, nProgress, octree, octreeLevel, cloudViewer::NormalizedProgress::oneStep(), masc::Feature::PointFeature, FeaturesAndScales::pointFeaturesPerScale, cloudViewer::DgmOctree::NearestNeighboursSearchStruct::pointsInNeighbourhood, CVLog::Print(), cloudViewer::DgmOctree::NearestNeighboursSearchStruct::queryPoint, FeaturesAndScales::scales, cloudViewer::GenericProgressCallback::setInfo(), cloudViewer::GenericProgressCallback::setMethodTitle(), cloudViewer::GenericCloud::size(), sourceCloud, cloudViewer::GenericProgressCallback::start(), and CVLog::Warning().

Referenced by q3DMASCPlugin::doClassifyAction(), q3DMASCPlugin::doTrainAction(), and Command3DMASCClassif::process().

◆ RandomSubset()

◆ RetrieveSF()

◆ SaveClassifier()

bool Tools::SaveClassifier ( QString  filename,
const Feature::Set features,
const QString  corePointsRole,
const masc::Classifier classifier,
QWidget *  parent = nullptr 
)
static

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