40 #ifndef PCL_SAMPLE_CONSENSUS_MODEL_NORMALPARALLELPLANE_H_
41 #define PCL_SAMPLE_CONSENSUS_MODEL_NORMALPARALLELPLANE_H_
84 template <
typename Po
intT,
typename Po
intNT>
101 typedef boost::shared_ptr<SampleConsensusModelNormalParallelPlane>
Ptr;
108 axis_ (Eigen::Vector4f::Zero ()),
109 distance_from_origin_ (0),
110 eps_angle_ (-1.0), cos_angle_ (-1.0), eps_dist_ (0.0)
120 axis_ (Eigen::Vector4f::Zero ()),
121 distance_from_origin_ (0),
122 eps_angle_ (-1.0), cos_angle_ (-1.0), eps_dist_ (0.0)
130 setAxis (
const Eigen::Vector3f &ax) { axis_.head<3> () = ax; axis_.normalize ();}
133 inline Eigen::Vector3f
141 setEpsAngle (
const double ea) { eps_angle_ = ea; cos_angle_ = fabs (cos (ea));}
174 const double threshold,
175 std::vector<int> &inliers);
185 const double threshold);
193 std::vector<double> &distances);
199 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
206 isModelValid (
const Eigen::VectorXf &model_coefficients);
210 Eigen::Vector4f axis_;
213 double distance_from_origin_;
225 #endif //#ifndef PCL_SAMPLE_CONSENSUS_MODEL_NORMALPARALLELPLANE_H_