40 #include <pcl/point_types.h>
41 #include <pcl/filters/filter.h>
42 #include <pcl/ModelCoefficients.h>
44 #include <pcl/sample_consensus/sac_model.h>
54 template<
typename Po
intT>
69 using Ptr = shared_ptr<ProjectInliers<PointT> >;
70 using ConstPtr = shared_ptr<const ProjectInliers<PointT> >;
120 copy_all_data_ = val;
127 return (copy_all_data_);
142 SampleConsensusModelPtr sacmodel_;
148 bool copy_all_data_{
false};
154 initSACModel (
int model_type);
179 filter_name_ =
"ProjectInliers";
198 return (model_type_);
223 copy_all_fields_ = val;
230 return (copy_all_fields_);
239 copy_all_data_ = val;
246 return (copy_all_data_);
253 bool copy_all_data_{
false};
256 bool copy_all_fields_{
true};
266 SampleConsensusModelPtr sacmodel_;
269 initSACModel (
int model_type);
273 #ifdef PCL_NO_PRECOMPILE
274 #include <pcl/filters/impl/project_inliers.hpp>
shared_ptr< ::pcl::PCLPointCloud2 > Ptr
ProjectInliers()
Empty constructor.
bool getCopyAllFields() const
Get whether all fields are being copied (true), or only XYZ (false).
shared_ptr< PointCloud< PointT > > Ptr
void setModelCoefficients(const ModelCoefficientsConstPtr &model)
Provide a pointer to the model coefficients.
~ProjectInliers() override=default
Empty destructor.
bool getCopyAllData() const
Get whether all data is being copied (true), or only the projected inliers (false).
bool getCopyAllData()
Get whether all data is being copied (true), or only the projected inliers (false).
ProjectInliers()
Empty constructor.
ProjectInliers uses a model and a set of inlier indices from a PointCloud to project them into a sepa...
shared_ptr< const ::pcl::PCLPointCloud2 > ConstPtr
SampleConsensusModel represents the base model class.
Filter represents the base filter class.
shared_ptr< Filter< PointT > > Ptr
void setModelType(int model)
The type of model to use (user given parameter).
typename PointCloud::Ptr PointCloudPtr
void setModelCoefficients(const ModelCoefficientsConstPtr &model)
Provide a pointer to the model coefficients.
PointCloud represents the base class in PCL for storing collections of 3D points. ...
int getModelType()
Get the type of SAC model used.
void setCopyAllData(bool val)
Set whether all data will be returned, or only the projected inliers.
void setCopyAllData(bool val)
Set whether all data will be returned, or only the projected inliers.
int getModelType() const
Get the type of SAC model used.
PCLPointCloud2::ConstPtr PCLPointCloud2ConstPtr
shared_ptr< const PointCloud< PointT > > ConstPtr
ModelCoefficientsConstPtr model_
A pointer to the vector of model coefficients.
void applyFilter(PointCloud &output) override
Project point indices into a separate PointCloud.
std::string filter_name_
The filter name.
shared_ptr< const Filter< PointT > > ConstPtr
shared_ptr< SampleConsensusModel< PointT > > Ptr
void setModelType(int model)
The type of model to use (user given parameter).
ModelCoefficients::ConstPtr ModelCoefficientsConstPtr
ModelCoefficientsConstPtr getModelCoefficients()
Get a pointer to the model coefficients.
PCLPointCloud2::Ptr PCLPointCloud2Ptr
typename PointCloud::ConstPtr PointCloudConstPtr
void setCopyAllFields(bool val)
Set whether all fields should be copied, or only the XYZ.
ModelCoefficientsConstPtr getModelCoefficients() const
Get a pointer to the model coefficients.