ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
DONSegmentation.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 "BasePclModule.h"
11 
12 // QT
13 #include <QString>
14 
15 class DONSegmentationDlg;
16 
19 public:
21  virtual ~DONSegmentation();
22 
23  // inherited from BasePclModule
24  virtual int compute();
25 
26 protected:
27  // inherited from BasePclModule
28  virtual int checkSelected();
29  virtual int openInputDialog();
30  virtual void getParametersFromDialog();
31  virtual int checkParameters();
32  virtual QString getErrorMessage(int errorCode);
33 
35 
37  QStringList m_comparisonTypes;
38  float m_smallScale;
39  float m_largeScale;
42 
47 };
DONSegmentation::m_clusterTolerance
float m_clusterTolerance
Definition: DONSegmentation.h:45
ecvTools.h
PCLModules::ConditionalRemovalFilter< PointNT >
template int ConditionalRemovalFilter< PointNT >(const PointCloudNormal::ConstPtr inCloud, const ConditionParameters &params, PointCloudNormal::Ptr outCloud, bool keepOrganized)
PCLModules::ConditionParameters::ComparisonParam
Definition: PCLModules.h:941
DONSegmentation::m_largeScale
float m_largeScale
Definition: DONSegmentation.h:39
DONSegmentation::getParametersFromDialog
virtual void getParametersFromDialog()
Collects parameters from the filter dialog (if openDialog is successful)
Definition: DONSegmentation.cpp:71
PCLModules::ConditionParameters::ComparisonParam::min_threshold_
double min_threshold_
Definition: PCLModules.h:944
ecvMainAppInterface::dispToConsole
virtual void dispToConsole(QString message, ConsoleMessageLevel level=STD_CONSOLE_MESSAGE)=0
ccHObject::getParent
ccHObject * getParent() const
Returns parent object.
Definition: ecvHObject.h:245
DONSegmentation::m_minClusterSize
int m_minClusterSize
Definition: DONSegmentation.h:43
DONSegmentation::checkParameters
virtual int checkParameters()
Definition: DONSegmentation.cpp:92
DONSegmentationDlg::getComparisonField
const QString getComparisonField()
Definition: DONSegmentationDlg.cpp:20
ccObject::setName
virtual void setName(const QString &name)
Sets object name.
Definition: ecvObject.h:75
PclModuleDescription
PCL filter description.
Definition: BasePclModule.h:26
DONSegmentation::m_smallScale
float m_smallScale
Definition: DONSegmentation.h:38
DONSegmentation::checkSelected
virtual int checkSelected()
Checks if current selection is compliant with the filter.
Definition: DONSegmentation.cpp:53
ccPointCloud
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Definition: ecvPointCloud.h:146
PCLModules.h
ecvMainAppInterface.h
BasePclModule::isFirstSelectedCcPointCloud
int isFirstSelectedCcPointCloud()
Returns 1 if the first selected object is a ccPointCloud.
Definition: BasePclModule.cpp:358
PCLModules::ConditionParameters::condition_type_
ConditionType condition_type_
Definition: PCLModules.h:950
PCLModules::EuclideanCluster< PointNT >
template int EuclideanCluster< PointNT >(const PointCloudNormal::ConstPtr inCloud, std::vector< pcl::PointIndices > &cluster_indices, float clusterTolerance, int minClusterSize, int maxClusterSize)
cc2sm.h
PCLModules::ConditionParameters::condition_params_
std::vector< ComparisonParam > condition_params_
Definition: PCLModules.h:951
PCLModules::ConditionParameters
Definition: PCLModules.h:936
BasePclModule
Base abstract class for each implemented PCL filter.
Definition: BasePclModule.h:53
DONSegmentation::openInputDialog
virtual int openInputDialog()
Definition: DONSegmentation.cpp:61
DONSegmentation::m_dialog
DONSegmentationDlg * m_dialog
Definition: DONSegmentation.h:34
PCLModules::ComputeNormals< PointT, PointNT >
template int ComputeNormals< PointT, PointNT >(const PointCloudT::ConstPtr inCloud, PointCloudNormal::Ptr outcloud, const float radius, const bool useKnn, bool normalConsistency, int maxThreadCount)
DONSegmentation
SIFT keypoints extraction.
Definition: DONSegmentation.h:18
ecvMainAppInterface::ERR_CONSOLE_MESSAGE
@ ERR_CONSOLE_MESSAGE
Definition: ecvMainAppInterface.h:119
DONSegmentationDlg
Definition: DONSegmentationDlg.h:18
cc2smReader
CC to PCL cloud converter.
Definition: cc2sm.h:43
ecvMainAppInterface::getActiveWindow
virtual QWidget * getActiveWindow()=0
ecvTools::GetClousterGroup
static ccHObject * GetClousterGroup(const ccPointCloud *ccCloud, const PointCloudT::ConstPtr xyzCloud, const std::vector< pcl::PointIndices > &cluster_indices, unsigned minPointsPerComponent, bool randomColors, bool &error)
Definition: ecvTools.h:148
DONSegmentation::m_comparisonTypes
QStringList m_comparisonTypes
Definition: DONSegmentation.h:37
DONSegmentation::m_randomClusterColor
bool m_randomClusterColor
Definition: DONSegmentation.h:46
BasePclModule::newEntity
void newEntity(ccHObject *)
Signal emitted when a new entity is created by the filter.
DONSegmentation::m_minDonMagnitude
float m_minDonMagnitude
Definition: DONSegmentation.h:40
BasePclModule::m_app
ecvMainAppInterface * m_app
Associated application interface.
Definition: BasePclModule.h:296
DONSegmentation::DONSegmentation
DONSegmentation()
Definition: DONSegmentation.cpp:30
DONSegmentation::m_maxClusterSize
int m_maxClusterSize
Definition: DONSegmentation.h:44
DONSegmentationDlg.h
BasePclModule.h
PCLModules::ConditionParameters::ComparisonParam::fieldName_
std::string fieldName_
Definition: PCLModules.h:943
PCLModules::ConditionParameters::ComparisonParam::comparison_type_
ComparisonType comparison_type_
Definition: PCLModules.h:942
ccHObject::getChildrenNumber
unsigned getChildrenNumber() const
Returns the number of children.
Definition: ecvHObject.h:312
count
int count
Definition: FileIOFactory.cpp:132
DONSegmentation::m_comparisonField
QString m_comparisonField
Definition: DONSegmentation.h:36
ccHObject
Hierarchical CLOUDVIEWER Object.
Definition: ecvHObject.h:25
ccObject::getName
virtual QString getName() const
Returns object name.
Definition: ecvObject.h:72
DONSegmentation.h
BasePclModule::getSelectedEntityAsCCPointCloud
ccPointCloud * getSelectedEntityAsCCPointCloud() const
Returns the first selected entity as a ccPointCloud.
Definition: BasePclModule.cpp:256
PCLModules::DONEstimation< PointT, PointNT, PointNT >
template int DONEstimation< PointT, PointNT, PointNT >(const PointCloudT::ConstPtr inCloud, const PointCloudNormal::ConstPtr normalsLargeScale, const PointCloudNormal::ConstPtr normalsSmallScale, PointCloudNormal::Ptr outCloud)
ccHObject::addChild
virtual bool addChild(ccHObject *child, int dependencyFlags=DP_PARENT_OF_OTHER, int insertIndex=-1)
Adds a child.
Definition: ecvHObject.cpp:534
PointCloudNormal
pcl::PointCloud< PointNT > PointCloudNormal
Definition: PCLCloud.h:25
DONSegmentationDlg::getComparisonTypes
void getComparisonTypes(QStringList &types)
Definition: DONSegmentationDlg.cpp:24
ccObject::setEnabled
virtual void setEnabled(bool state)
Sets the "enabled" property.
Definition: ecvObject.h:102
DONSegmentation::~DONSegmentation
virtual ~DONSegmentation()
Definition: DONSegmentation.cpp:48
DONSegmentation::getErrorMessage
virtual QString getErrorMessage(int errorCode)
Returns the error message corresponding to a given error code.
Definition: DONSegmentation.cpp:253
type
char type
Definition: FileIOFactory.cpp:131
sm2cc.h
ecvPointCloud.h
BasePclModule::getErrorMessage
virtual QString getErrorMessage(int errorCode)
Returns the error message corresponding to a given error code.
Definition: BasePclModule.cpp:218
cc2smReader::getXYZ2
pcl::PointCloud< pcl::PointXYZ >::Ptr getXYZ2() const
Definition: cc2sm.cpp:218
PCLModules::ConditionParameters::ComparisonParam::max_threshold_
double max_threshold_
Definition: PCLModules.h:945
DONSegmentation::m_maxDonMagnitude
float m_maxDonMagnitude
Definition: DONSegmentation.h:41
DONSegmentation::compute
virtual int compute()
Performs the actual filter job.
Definition: DONSegmentation.cpp:101