41#ifndef PCL_SAMPLE_CONSENSUS_IMPL_SAC_MODEL_PARALLEL_PLANE_H_
42#define PCL_SAMPLE_CONSENSUS_IMPL_SAC_MODEL_PARALLEL_PLANE_H_
44#include <pcl/sample_consensus/sac_model_parallel_plane.h>
47template <
typename Po
intT>
void
49 const Eigen::VectorXf &model_coefficients,
const double threshold,
Indices &inliers)
62template <
typename Po
intT> std::size_t
64 const Eigen::VectorXf &model_coefficients,
const double threshold)
const
76template <
typename Po
intT>
void
78 const Eigen::VectorXf &model_coefficients, std::vector<double> &
distances)
const
91template <
typename Po
intT>
bool
103 Eigen::Vector4f coeff = model_coefficients;
110 PCL_DEBUG (
"[pcl::SampleConsensusModelParallelPlane::isModelValid] Angle between plane normal and given axis is too large.\n");
118#define PCL_INSTANTIATE_SampleConsensusModelParallelPlane(T) template class PCL_EXPORTS pcl::SampleConsensusModelParallelPlane<T>;
virtual bool isModelValid(const Eigen::VectorXf &model_coefficients) const
Check whether a model is valid given the user constraints.
bool isModelValid(const Eigen::VectorXf &model_coefficients) const override
Check whether a model is valid given the user constraints.
Eigen::Vector3f axis_
The axis along which we need to search for a plane perpendicular to.
double eps_angle_
The maximum allowed difference between the plane and the given axis.
double sin_angle_
The sine of the angle.
std::size_t countWithinDistance(const Eigen::VectorXf &model_coefficients, const double threshold) const override
Count all the points which respect the given model coefficients as inliers.
void getDistancesToModel(const Eigen::VectorXf &model_coefficients, std::vector< double > &distances) const override
Compute all distances from the cloud data to a given plane model.
void selectWithinDistance(const Eigen::VectorXf &model_coefficients, const double threshold, Indices &inliers) override
Select all the points which respect the given model coefficients as inliers.
void getDistancesToModel(const Eigen::VectorXf &model_coefficients, std::vector< double > &distances) const override
Compute all distances from the cloud data to a given plane model.
void selectWithinDistance(const Eigen::VectorXf &model_coefficients, const double threshold, Indices &inliers) override
Select all the points which respect the given model coefficients as inliers.
std::size_t countWithinDistance(const Eigen::VectorXf &model_coefficients, const double threshold) const override
Count all the points which respect the given model coefficients as inliers.
IndicesAllocator<> Indices
Type used for indices in PCL.