Point Cloud Library (PCL)
1.9.1
|
38 #ifndef PCL_FILTERS_MODEL_OUTLIER_REMOVAL_H_
39 #define PCL_FILTERS_MODEL_OUTLIER_REMOVAL_H_
41 #include <pcl/filters/filter_indices.h>
42 #include <pcl/ModelCoefficients.h>
45 #include <pcl/sample_consensus/model_types.h>
46 #include <pcl/sample_consensus/sac_model.h>
68 template <
typename Po
intT>
99 for (
unsigned int i = 0; i < model_coefficients.
values.size (); i++)
112 for (
unsigned int i = 0; i < mc.
values.size (); i++)
186 template <
typename T>
void
253 #ifdef PCL_NO_PRECOMPILE
254 #include <pcl/filters/impl/model_outlier_removal.hpp>
257 #endif // PCL_FILTERS_MODEL_OUTLIER_REMOVAL_H_
PointCloudNConstPtr getInputNormals() const
Get the normals cloud.
pcl::PointCloud< pcl::Normal >::Ptr PointCloudNPtr
This file defines compatibility wrappers for low level I/O functions.
boost::shared_ptr< PointCloud< PointT > > Ptr
Eigen::VectorXf model_coefficients_
The model coefficients.
boost::shared_ptr< SampleConsensusModel > Ptr
void applyFilterIndices(std::vector< int > &indices)
Filtered results are indexed by an indices array.
void setModelCoefficients(const pcl::ModelCoefficients model_coefficients)
sets the models coefficients
pcl::ModelCoefficients getModelCoefficients() const
returns the models coefficients
boost::function< bool(double)> threshold_function_
double normals_distance_weight_
SampleConsensusModelPtr model_
The model used to calculate distances.
FilterIndices< PointT >::PointCloud PointCloud
PointCloud represents the base class in PCL for storing collections of 3D points.
void setThresholdFunction(bool(T::*thresh_function)(double), T &instance)
Register a different threshold function.
std::vector< float > values
A point structure representing Euclidean xyz coordinates, and the RGB color.
float thresh_
The threshold used to separate outliers (removed_indices) from inliers (indices)
ModelOutlierRemoval filters points in a cloud based on the distance between model and point.
void setThreshold(float thresh)
Set the thresholdfunction.
void setNormalDistanceWeight(const double weight)
Set the normals distance weight.
void setThresholdFunction(boost::function< bool(double)> thresh)
Register a different threshold function.
void applyFilter(PointCloud &output)
Filtered results are stored in a separate point cloud.
PointCloudNConstPtr cloud_normals_
FilterIndices represents the base class for filters that are about binary point removal.
Filter represents the base filter class.
pcl::SacModel model_type_
The type of model to use (user given parameter).
double getNormalDistanceWeight() const
get the normal distance weight
bool checkSingleThreshold(double value)
pcl::PointCloud< pcl::Normal >::ConstPtr PointCloudNConstPtr
PointCloud::Ptr PointCloudPtr
std::string filter_name_
The filter name.
boost::shared_ptr< const PointCloud< PointT > > ConstPtr
float getThreshold() const
Get the thresholdfunction.
SampleConsensusModel< PointT >::Ptr SampleConsensusModelPtr
void setModelType(pcl::SacModel model)
Set the type of SAC model used.
ModelOutlierRemoval(bool extract_removed_indices=false)
Constructor.
PointCloud::ConstPtr PointCloudConstPtr
void applyFilter(std::vector< int > &indices)
Filtered results are indexed by an indices array.
pcl::SacModel getModelType() const
Get the type of SAC model used.
void setInputNormals(const PointCloudNConstPtr normals_ptr)
Set the normals cloud.