Point Cloud Library (PCL)
1.11.1-dev
|
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_;
154 initSACModel (
int model_type);
177 ProjectInliers () : model_type_ (), copy_all_data_ (false), copy_all_fields_ (true)
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_);
266 SampleConsensusModelPtr sacmodel_;
269 initSACModel (
int model_type);
273 #ifdef PCL_NO_PRECOMPILE
274 #include <pcl/filters/impl/project_inliers.hpp>
void setModelCoefficients(const ModelCoefficientsConstPtr &model)
Provide a pointer to the model coefficients.
ProjectInliers()
Empty constructor.
typename PointCloud::ConstPtr PointCloudConstPtr
typename PointCloud::Ptr PointCloudPtr
shared_ptr< ::pcl::PCLPointCloud2 > Ptr
ModelCoefficientsConstPtr getModelCoefficients() const
Get a pointer to the model coefficients.
bool copy_all_data_
True if all data will be returned, false if only the projected inliers.
shared_ptr< ProjectInliers< PointT > > Ptr
PCLPointCloud2::ConstPtr PCLPointCloud2ConstPtr
PointCloud represents the base class in PCL for storing collections of 3D points.
bool getCopyAllData()
Get whether all data is being copied (true), or only the projected inliers (false).
bool getCopyAllFields() const
Get whether all fields are being copied (true), or only XYZ (false).
ProjectInliers()
Empty constructor.
bool getCopyAllData() const
Get whether all data is being copied (true), or only the projected inliers (false).
PCLPointCloud2::Ptr PCLPointCloud2Ptr
shared_ptr< const ::pcl::PCLPointCloud2 > ConstPtr
void setModelType(int model)
The type of model to use (user given parameter).
shared_ptr< const Filter< PointT > > ConstPtr
int getModelType()
Get the type of SAC model used.
void setModelCoefficients(const ModelCoefficientsConstPtr &model)
Provide a pointer to the model coefficients.
shared_ptr< SampleConsensusModel< PointT > > Ptr
~ProjectInliers()
Empty destructor.
int getModelType() const
Get the type of SAC model used.
Filter represents the base filter class.
void setCopyAllData(bool val)
Set whether all data will be returned, or only the projected inliers.
void applyFilter(PointCloud &output) override
Project point indices into a separate PointCloud.
std::string filter_name_
The filter name.
shared_ptr< PointCloud< PointT > > Ptr
ModelCoefficients::ConstPtr ModelCoefficientsConstPtr
ModelCoefficientsConstPtr model_
A pointer to the vector of model coefficients.
ProjectInliers uses a model and a set of inlier indices from a PointCloud to project them into a sepa...
void setCopyAllData(bool val)
Set whether all data will be returned, or only the projected inliers.
shared_ptr< const PointCloud< PointT > > ConstPtr
void setModelType(int model)
The type of model to use (user given parameter).
~ProjectInliers()
Empty destructor.
int model_type_
The type of model to use (user given parameter).
ModelCoefficientsConstPtr getModelCoefficients()
Get a pointer to the model coefficients.
SampleConsensusModel represents the base model class.
void setCopyAllFields(bool val)
Set whether all fields should be copied, or only the XYZ.
bool copy_all_fields_
True if all fields will be returned, false if only XYZ.