Point Cloud Library (PCL)
1.11.1-dev
|
40 #include <pcl/filters/filter_indices.h>
41 #include <pcl/ModelCoefficients.h>
44 #include <pcl/sample_consensus/model_types.h>
45 #include <pcl/sample_consensus/sac_model.h>
67 template <
typename Po
intT>
98 for (std::size_t i = 0; i < model_coefficients.
values.size (); i++)
111 for (std::size_t i = 0; i < mc.
values.size (); i++)
185 template <
typename T>
void
188 setThresholdFunction ([=, &instance] (
double threshold) {
return (instance.*thresh_function) (threshold); });
246 #ifdef PCL_NO_PRECOMPILE
247 #include <pcl/filters/impl/model_outlier_removal.hpp>
PointCloudNConstPtr getInputNormals() const
Get the normals cloud.
Eigen::VectorXf model_coefficients_
The model coefficients.
typename PointCloud::ConstPtr PointCloudConstPtr
void setModelCoefficients(const pcl::ModelCoefficients model_coefficients)
sets the models coefficients
typename PointCloud::Ptr PointCloudPtr
void setThresholdFunction(std::function< bool(double)> thresh)
Register a different threshold function.
pcl::ModelCoefficients getModelCoefficients() const
returns the models coefficients
void applyFilter(Indices &indices) override
Filtered results are indexed by an indices array.
double normals_distance_weight_
SampleConsensusModelPtr model_
The model used to calculate distances.
pcl::PointCloud< pcl::Normal >::Ptr PointCloudNPtr
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.
typename SampleConsensusModel< PointT >::Ptr SampleConsensusModelPtr
void setThreshold(float thresh)
Set the thresholdfunction.
void setNormalDistanceWeight(const double weight)
Set the normals distance weight.
PointCloudNConstPtr cloud_normals_
shared_ptr< SampleConsensusModel< PointT > > Ptr
FilterIndices represents the base class for filters that are about binary point removal.
Filter represents the base filter class.
IndicesAllocator<> Indices
Type used for indices in PCL.
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
std::string filter_name_
The filter name.
shared_ptr< PointCloud< PointT > > Ptr
float getThreshold() const
Get the thresholdfunction.
void applyFilterIndices(Indices &indices)
Filtered results are indexed by an indices array.
shared_ptr< const PointCloud< PointT > > ConstPtr
void setModelType(pcl::SacModel model)
Set the type of SAC model used.
std::function< bool(double)> threshold_function_
ModelOutlierRemoval(bool extract_removed_indices=false)
Constructor.
pcl::SacModel getModelType() const
Get the type of SAC model used.
void setInputNormals(const PointCloudNConstPtr normals_ptr)
Set the normals cloud.