24 #include <QMainWindow>
28 tr(
"Statistical Outlier Removal"),
29 tr(
"Filter outlier data based on point neighborhood statistics"),
30 tr(
"Filter the points that are farther of their neighbors than "
31 "the average (plus a number of times the standard deviation)"),
32 ":/toolbar/PclAlgorithms/icons/sor_outlier_remover.png")),
61 if (!cloud)
return -1;
65 if (!tmp_cloud)
return -1;
67 PCLCloud::Ptr outcloud(
new PCLCloud);
74 if (!final_cloud)
return -1;
pcl::PCLPointCloud2 PCLCloud
Base abstract class for each implemented PCL filter.
void newEntity(ccHObject *)
Signal emitted when a new entity is created by the filter.
ecvMainAppInterface * m_app
Associated application interface.
ccPointCloud * getSelectedEntityAsCCPointCloud() const
Returns the first selected entity as a ccPointCloud.
void getParametersFromDialog()
Collects parameters from the filter dialog (if openDialog is successful)
StatisticalOutliersRemover()
virtual ~StatisticalOutliersRemover()
int compute()
Performs the actual filter job.
CC to PCL cloud converter.
PCLCloud::Ptr getAsSM(std::list< std::string > &requested_fields) const
ccHObject * getParent() const
Returns parent object.
virtual bool addChild(ccHObject *child, int dependencyFlags=DP_PARENT_OF_OTHER, int insertIndex=-1)
Adds a child.
virtual QString getName() const
Returns object name.
virtual void setName(const QString &name)
Sets object name.
virtual void setEnabled(bool state)
Sets the "enabled" property.
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
virtual void setGlobalShift(double x, double y, double z)
Sets shift applied to original coordinates (information storage only)
virtual const CCVector3d & getGlobalShift() const
Returns the shift applied to original coordinates.
virtual void setGlobalScale(double scale)
virtual double getGlobalScale() const
Returns the scale applied to original coordinates.
virtual QMainWindow * getMainWindow()=0
Returns main window.
static ccMesh * Convert(PCLTextureMesh::ConstPtr textureMesh)
Converts a PCL point cloud to a ccPointCloud.
template int RemoveOutliersStatistical< PCLCloud >(const PCLCloud::ConstPtr inCloud, PCLCloud::Ptr outCloud, int knn, double nSigma)