41 #ifndef PCL_SAMPLE_CONSENSUS_IMPL_SAC_MODEL_NORMAL_PARALLEL_PLANE_H_
42 #define PCL_SAMPLE_CONSENSUS_IMPL_SAC_MODEL_NORMAL_PARALLEL_PLANE_H_
44 #include <pcl/sample_consensus/sac_model_normal_parallel_plane.h>
47 template <
typename Po
intT,
typename Po
intNT>
bool
51 if (model_coefficients.size () != 4)
53 PCL_ERROR (
"[pcl::SampleConsensusModelNormalParallelPlane::isModelValid] Invalid number of model coefficients given (%lu)!\n", model_coefficients.size ());
61 Eigen::Vector4f coeff = model_coefficients;
65 if (fabs (axis_.dot (coeff)) < cos_angle_)
71 if (fabs (-model_coefficients[3] - distance_from_origin_) > eps_dist_)
78 #define PCL_INSTANTIATE_SampleConsensusModelNormalParallelPlane(PointT, PointNT) template class PCL_EXPORTS pcl::SampleConsensusModelNormalParallelPlane<PointT, PointNT>;
80 #endif // PCL_SAMPLE_CONSENSUS_IMPL_SAC_MODEL_NORMAL_PARALLEL_PLANE_H_
bool isModelValid(const Eigen::VectorXf &model_coefficients)
Check whether a model is valid given the user constraints.