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>
Filter represents the base filter class.
shared_ptr< Filter< PointT > > Ptr
shared_ptr< const Filter< PointT > > ConstPtr
std::string filter_name_
The filter name.
PCLPointCloud2::Ptr PCLPointCloud2Ptr
PCLPointCloud2::ConstPtr PCLPointCloud2ConstPtr
typename PointCloud::Ptr PointCloudPtr
typename PointCloud::ConstPtr PointCloudConstPtr
PointCloud represents the base class in PCL for storing collections of 3D points.
shared_ptr< PointCloud< PointT > > Ptr
shared_ptr< const PointCloud< PointT > > ConstPtr
void setCopyAllFields(bool val)
Set whether all fields should be copied, or only the XYZ.
int getModelType() const
Get the type of SAC model used.
bool getCopyAllFields() const
Get whether all fields are being copied (true), or only XYZ (false).
void setCopyAllData(bool val)
Set whether all data will be returned, or only the projected inliers.
bool getCopyAllData() const
Get whether all data is being copied (true), or only the projected inliers (false).
ModelCoefficientsConstPtr model_
A pointer to the vector of model coefficients.
void applyFilter(PCLPointCloud2 &output) override
Abstract filter method.
ModelCoefficientsConstPtr getModelCoefficients() const
Get a pointer to the model coefficients.
void setModelCoefficients(const ModelCoefficientsConstPtr &model)
Provide a pointer to the model coefficients.
~ProjectInliers() override=default
Empty destructor.
void setModelType(int model)
The type of model to use (user given parameter).
ProjectInliers()
Empty constructor.
ProjectInliers uses a model and a set of inlier indices from a PointCloud to project them into a sepa...
~ProjectInliers() override=default
Empty destructor.
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.
ProjectInliers()
Empty constructor.
bool getCopyAllData()
Get whether all data is being copied (true), or only the projected inliers (false).
void applyFilter(PointCloud &output) override
Project point indices into a separate PointCloud.
void setModelCoefficients(const ModelCoefficientsConstPtr &model)
Provide a pointer to the model coefficients.
ModelCoefficientsConstPtr getModelCoefficients()
Get a pointer to the model coefficients.
void setModelType(int model)
The type of model to use (user given parameter).
SampleConsensusModel represents the base model class.
shared_ptr< SampleConsensusModel< PointT > > Ptr
Defines all the PCL implemented PointT point type structures.
ModelCoefficients::ConstPtr ModelCoefficientsConstPtr
shared_ptr< ::pcl::PCLPointCloud2 > Ptr
shared_ptr< const ::pcl::PCLPointCloud2 > ConstPtr