39 #include <pcl/registration/ia_fpcs.h>
42 namespace registration {
50 template <
typename PointSource,
53 typename Scalar =
float>
59 shared_ptr<KFPCSInitialAlignment<PointSource, PointTarget, NormalT, Scalar>>;
144 float min_translation3d,
159 float min_translation3d,
183 max_inlier_dist_sqr_;
209 std::vector<pcl::Indices>& matches,
225 float& fitness_score)
override;
233 finalCompute(
const std::vector<MatchingCandidates>& candidates)
override;
265 #include <pcl/registration/impl/ia_kfpcs.hpp>
A point structure representing normal coordinates and the surface curvature estimate.
float lower_trl_boundary_
Lower boundary for translation costs calculation.
~KFPCSInitialAlignment() override=default
Destructor.
shared_ptr< PointCloud< PointSource > > Ptr
bool initCompute() override
Internal computation initialization.
FPCSInitialAlignment computes corresponding four point congruent sets as described in: "4-points cong...
float lambda_
Weighting factor for translation costs (standard = 0.5).
shared_ptr< Indices > IndicesPtr
void getNBestCandidates(int n, float min_angle3d, float min_translation3d, MatchingCandidates &candidates)
Get the N best unique candidate matches according to their fitness score.
Container for matching candidate consisting of.
void getTBestCandidates(float t, float min_angle3d, float min_translation3d, MatchingCandidates &candidates)
Get all unique candidate matches with fitness scores above a threshold t.
void setLowerTranslationThreshold(float lower_trl_boundary)
Set the lower translation threshold used for score evaluation.
shared_ptr< Registration< PointSource, PointTarget, Scalar >> Ptr
int validateTransformation(Eigen::Matrix4f &transformation, float &fitness_score) override
Validate the transformation by calculating the score value after transforming the input source cloud...
void handleMatches(const pcl::Indices &base_indices, std::vector< pcl::Indices > &matches, MatchingCandidates &candidates) override
Method to handle current candidate matches.
KFPCSInitialAlignment()
Constructor.
pcl::IndicesPtr indices_validation_
Subset of input indices on which we evaluate candidates.
IndicesAllocator<> Indices
Type used for indices in PCL.
void finalCompute(const std::vector< MatchingCandidates > &candidates) override
Final computation of best match out of vector of matches.
typename PointCloudSource::Ptr PointCloudSourcePtr
Registration represents the base registration class for general purpose, ICP-like methods...
MatchingCandidates candidates_
Container for resulting vector of registration candidates.
typename VectorType::iterator iterator
bool use_trl_score_
Flag if translation score should be used in validation (internal calculation).
void setLambda(float lambda)
Set the weighting factor of the translation cost term.
void setUpperTranslationThreshold(float upper_trl_boundary)
Set the upper translation threshold used for score evaluation.
typename PointCloudTarget::Ptr PointCloudTargetPtr
float upper_trl_boundary_
Upper boundary for translation costs calculation.
float getLowerTranslationThreshold() const
std::vector< MatchingCandidate, Eigen::aligned_allocator< MatchingCandidate >> MatchingCandidates
float getUpperTranslationThreshold() const
shared_ptr< const Registration< PointSource, PointTarget, Scalar >> ConstPtr
KFPCSInitialAlignment computes corresponding four point congruent sets based on keypoints as describe...