ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
MLSSmoothingUpsampling.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 class MLSDialog;
13 
14 namespace PCLModules {
15 struct MLSParameters;
16 }
17 
19 public:
21  virtual ~MLSSmoothingUpsampling();
22 
23 protected:
24  // inherited from BasePclModule
25  int openInputDialog();
26  int compute();
28 
32  m_parameters; // We directly store all the parameters here
33 };
PCLModules::MLSParameters::UpsamplingMethod
UpsamplingMethod
NOTE: DISTINCT CLOUD METHOD NOT IMPLEMENTED.
Definition: PCLModules.h:1017
FROM_PCL_CLOUD
#define FROM_PCL_CLOUD
Definition: PCLConv.h:11
PCLModules::MLSParameters::upsampling_step_
double upsampling_step_
Definition: PCLModules.h:1044
MLSSmoothingUpsampling::~MLSSmoothingUpsampling
virtual ~MLSSmoothingUpsampling()
Definition: MLSSmoothingUpsampling.cpp:42
ccHObject::getParent
ccHObject * getParent() const
Returns parent object.
Definition: ecvHObject.h:245
MLSSmoothingUpsampling::getParametersFromDialog
void getParametersFromDialog()
Collects parameters from the filter dialog (if openDialog is successful)
Definition: MLSSmoothingUpsampling.cpp:62
copyScalarFields
void copyScalarFields(const ccPointCloud *inCloud, ccPointCloud *outCloud, pcl::PointIndicesPtr &in2outMapping, bool overwrite)
Makes a copy of all scalar fields from one cloud to another.
Definition: copy.cpp:14
ecvMainAppInterface::getMainWindow
virtual QMainWindow * getMainWindow()=0
Returns main window.
ccObject::setName
virtual void setName(const QString &name)
Sets object name.
Definition: ecvObject.h:75
MLSSmoothingUpsampling.h
ccShiftedObject::setGlobalScale
virtual void setGlobalScale(double scale)
Definition: ecvShiftedObject.cpp:33
PclModuleDescription
PCL filter description.
Definition: BasePclModule.h:26
MLSSmoothingUpsampling::MLSSmoothingUpsampling
MLSSmoothingUpsampling()
Definition: MLSSmoothingUpsampling.cpp:31
ccPointCloud
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Definition: ecvPointCloud.h:146
PCLModules::MLSParameters::dilation_voxel_size_
double dilation_voxel_size_
Definition: PCLModules.h:1046
PCLModules::MLSParameters
Definition: PCLModules.h:1015
PCLModules.h
ecvMainAppInterface.h
PCLModules::MLSParameters::compute_normals_
bool compute_normals_
Definition: PCLModules.h:1041
MLSDialog.h
copy.h
cc2sm.h
PCLCloud
pcl::PCLPointCloud2 PCLCloud
Definition: PCLCloud.h:34
normals
double normals[3]
Definition: TriangleMeshIO.cpp:54
PCLModules::MLSParameters::sqr_gauss_param_
double sqr_gauss_param_
Definition: PCLModules.h:1040
ccShiftedObject::getGlobalShift
virtual const CCVector3d & getGlobalShift() const
Returns the shift applied to original coordinates.
Definition: ecvShiftedObject.h:46
BasePclModule
Base abstract class for each implemented PCL filter.
Definition: BasePclModule.h:53
copyRGBColors
void copyRGBColors(const ccPointCloud *inCloud, ccPointCloud *outCloud, pcl::PointIndicesPtr &in2outMapping, bool overwrite)
Makes a copy of RGB colors from one cloud to another.
Definition: copy.cpp:72
PCLModules::MLSParameters::upsample_method_
UpsamplingMethod upsample_method_
Definition: PCLModules.h:1042
pcl2cc::Convert
static ccMesh * Convert(PCLTextureMesh::ConstPtr textureMesh)
Converts a PCL point cloud to a ccPointCloud.
cloudViewer::ScalarField::getName
const char * getName() const
Returns scalar field name.
Definition: ScalarField.h:43
cc2smReader::GetSimplifiedSFName
static std::string GetSimplifiedSFName(const std::string &ccSfName)
Definition: cc2sm.cpp:432
MLSSmoothingUpsampling::openInputDialog
int openInputDialog()
Definition: MLSSmoothingUpsampling.cpp:53
cc2smReader
CC to PCL cloud converter.
Definition: cc2sm.h:43
ecvScalarField.h
PCLModules::MLSParameters::step_point_density_
int step_point_density_
Definition: PCLModules.h:1045
BasePclModule::newEntity
void newEntity(ccHObject *)
Signal emitted when a new entity is created by the filter.
MLSSmoothingUpsampling::m_dialogHasParent
bool m_dialogHasParent
Definition: MLSSmoothingUpsampling.h:30
BasePclModule::m_app
ecvMainAppInterface * m_app
Associated application interface.
Definition: BasePclModule.h:296
MLSSmoothingUpsampling::m_dialog
MLSDialog * m_dialog
Definition: MLSSmoothingUpsampling.h:29
BasePclModule.h
PCLModules::MLSParameters::search_radius_
double search_radius_
Definition: PCLModules.h:1039
MLSSmoothingUpsampling::compute
int compute()
Performs the actual filter job.
Definition: MLSSmoothingUpsampling.cpp:84
MLSSmoothingUpsampling
Definition: MLSSmoothingUpsampling.h:18
ccPointCloud::getCurrentDisplayedScalarField
ccScalarField * getCurrentDisplayedScalarField() const
Returns the currently displayed scalar (or 0 if none)
Definition: ecvPointCloud.cpp:3218
PCLModules::MLSParameters::polynomial_fit_
bool polynomial_fit_
Definition: PCLModules.h:1038
PCLModules
Definition: PCLModules.cpp:42
ccShiftedObject::getGlobalScale
virtual double getGlobalScale() const
Returns the scale applied to original coordinates.
Definition: ecvShiftedObject.h:53
ccShiftedObject::setGlobalShift
virtual void setGlobalShift(double x, double y, double z)
Sets shift applied to original coordinates (information storage only)
Definition: ecvShiftedObject.h:33
MLSDialog
Definition: MLSDialog.h:15
MLSSmoothingUpsampling::m_parameters
PCLModules::MLSParameters * m_parameters
Definition: MLSSmoothingUpsampling.h:32
ccObject::getName
virtual QString getName() const
Returns object name.
Definition: ecvObject.h:72
PCLModules::MLSParameters::upsampling_radius_
double upsampling_radius_
Definition: PCLModules.h:1043
TO_PCL_CLOUD
#define TO_PCL_CLOUD
Definition: PCLConv.h:12
PCLModules::MLSParameters::order_
int order_
Definition: PCLModules.h:1037
BasePclModule::getSelectedEntityAsCCPointCloud
ccPointCloud * getSelectedEntityAsCCPointCloud() const
Returns the first selected entity as a ccPointCloud.
Definition: BasePclModule.cpp:256
ccHObject::addChild
virtual bool addChild(ccHObject *child, int dependencyFlags=DP_PARENT_OF_OTHER, int insertIndex=-1)
Adds a child.
Definition: ecvHObject.cpp:534
ccObject::setEnabled
virtual void setEnabled(bool state)
Sets the "enabled" property.
Definition: ecvObject.h:102
sm2cc.h
ecvPointCloud.h
cc2smReader::getAsSM
PCLCloud::Ptr getAsSM(std::list< std::string > &requested_fields) const
Definition: cc2sm.cpp:607