ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
NormalEstimation.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 
13 
15 public:
17  virtual ~NormalEstimation();
18 
19  // inherited from BasePclModule
20  virtual int compute();
21 
22 protected:
23  // inherited from BasePclModule
24  virtual int openInputDialog();
25  virtual void getParametersFromDialog();
26 
29  float m_radius;
30  bool m_useKnn;
32 };
cloudViewer::BoundingBoxTpl::getDiagNorm
T getDiagNorm() const
Returns diagonal length.
Definition: BoundingBox.h:172
ccBBox
Bounding box structure.
Definition: ecvBBox.h:25
PclModuleDescription
PCL filter description.
Definition: BasePclModule.h:26
ccPointCloud
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Definition: ecvPointCloud.h:146
PCLModules.h
ecvMainAppInterface.h
NormalEstimation::m_useKnn
bool m_useKnn
Definition: NormalEstimation.h:30
pcl2cc::CopyNormals
static bool CopyNormals(const PCLCloud &pclCloud, ccPointCloud &ccCloud)
Definition: sm2cc.cpp:124
cc2sm.h
PCLCloud
pcl::PCLPointCloud2 PCLCloud
Definition: PCLCloud.h:34
normals
double normals[3]
Definition: TriangleMeshIO.cpp:54
result
core::Tensor result
Definition: VtkUtils.cpp:76
NormalEstimationDlg.h
BasePclModule
Base abstract class for each implemented PCL filter.
Definition: BasePclModule.h:53
NormalEstimation::getParametersFromDialog
virtual void getParametersFromDialog()
Collects parameters from the filter dialog (if openDialog is successful)
Definition: NormalEstimation.cpp:66
NormalEstimation::m_dialog
NormalEstimationDialog * m_dialog
Definition: NormalEstimation.h:27
NormalEstimation::NormalEstimation
NormalEstimation()
Definition: NormalEstimation.cpp:27
cc2smReader
CC to PCL cloud converter.
Definition: cc2sm.h:43
cloudViewer::BoundingBoxTpl::isValid
bool isValid() const
Returns whether bounding box is valid or not.
Definition: BoundingBox.h:203
NormalEstimation::m_knn_radius
int m_knn_radius
Definition: NormalEstimation.h:28
ecvMainAppInterface::getActiveWindow
virtual QWidget * getActiveWindow()=0
ccPointCloud::hasNormals
bool hasNormals() const override
Returns whether normals are enabled or not.
Definition: ecvPointCloud.cpp:1693
NormalEstimation::compute
virtual int compute()
Performs the actual filter job.
Definition: NormalEstimation.cpp:77
BasePclModule::m_app
ecvMainAppInterface * m_app
Associated application interface.
Definition: BasePclModule.h:296
BasePclModule.h
ccPointCloud::unallocateNorms
void unallocateNorms()
Erases the cloud normals.
Definition: ecvPointCloud.cpp:1159
NormalEstimation::openInputDialog
virtual int openInputDialog()
Definition: NormalEstimation.cpp:46
BasePclModule::entityHasChanged
void entityHasChanged(ccHObject *)
Signal emitted when an entity is (visually) modified.
pcl2cc::CopyScalarField
static bool CopyScalarField(const PCLCloud &pclCloud, const std::string &sfName, ccPointCloud &ccCloud, bool overwriteIfExist=true)
Definition: sm2cc.cpp:170
NormalEstimation.h
ccGenericPointCloud::getOwnBB
ccBBox getOwnBB(bool withGLFeatures=false) override
Returns the entity's own bounding-box.
Definition: ecvGenericPointCloud.cpp:139
TO_PCL_CLOUD
#define TO_PCL_CLOUD
Definition: PCLConv.h:12
BasePclModule::getSelectedEntityAsCCPointCloud
ccPointCloud * getSelectedEntityAsCCPointCloud() const
Returns the first selected entity as a ccPointCloud.
Definition: BasePclModule.cpp:256
PointCloudNormal
pcl::PointCloud< PointNT > PointCloudNormal
Definition: PCLCloud.h:25
NormalEstimation
Definition: NormalEstimation.h:14
sm2cc.h
NormalEstimation::m_overwrite_curvature
bool m_overwrite_curvature
Definition: NormalEstimation.h:31
ecvPointCloud.h
NormalEstimationDialog
Definition: NormalEstimationDlg.h:15
cc2smReader::getXYZ2
pcl::PointCloud< pcl::PointXYZ >::Ptr getXYZ2() const
Definition: cc2sm.cpp:218
NormalEstimation::m_radius
float m_radius
Definition: NormalEstimation.h:29
NormalEstimation::~NormalEstimation
virtual ~NormalEstimation()
Definition: NormalEstimation.cpp:41