39 #include <pcl/registration/ia_fpcs.h>
42 namespace registration {
60 template <
typename PointSource,
63 typename Scalar =
float>
69 shared_ptr<KFPCSInitialAlignment<PointSource, PointTarget, NormalT, Scalar>>;
154 float min_translation3d,
169 float min_translation3d,
217 std::vector<pcl::Indices>& matches,
233 float& fitness_score)
override;
241 finalCompute(
const std::vector<MatchingCandidates>& candidates)
override;
273 #include <pcl/registration/impl/ia_kfpcs.hpp>
typename VectorType::iterator iterator
shared_ptr< PointCloud< PointSource > > Ptr
Registration represents the base registration class for general purpose, ICP-like methods.
shared_ptr< const Registration< PointSource, PointTarget, float > > ConstPtr
typename PointCloudSource::Ptr PointCloudSourcePtr
shared_ptr< Registration< PointSource, PointTarget, float > > Ptr
typename PointCloudTarget::Ptr PointCloudTargetPtr
FPCSInitialAlignment computes corresponding four point congruent sets as described in: "4-points cong...
float coincidation_limit_
Maximal distance between coinciding intersection points to find valid matches.
float max_inlier_dist_sqr_
Maximal squared point distance between source and target points to count as inlier.
bool normalize_delta_
Normalize delta flag.
float approx_overlap_
Estimated overlap between source and target (standard = 0.5).
float score_threshold_
Score threshold to stop calculation with success.
KFPCSInitialAlignment computes corresponding four point congruent sets based on keypoints as describe...
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 setUpperTranslationThreshold(float upper_trl_boundary)
Set the upper translation threshold used for score evaluation.
float getLowerTranslationThreshold() const
pcl::IndicesPtr indices_validation_
Subset of input indices on which we evaluate candidates.
float upper_trl_boundary_
Upper boundary for translation costs calculation.
void finalCompute(const std::vector< MatchingCandidates > &candidates) override
Final computation of best match out of vector of matches.
void handleMatches(const pcl::Indices &base_indices, std::vector< pcl::Indices > &matches, MatchingCandidates &candidates) override
Method to handle current candidate matches.
void setLambda(float lambda)
Set the weighting factor of the translation cost term.
void setLowerTranslationThreshold(float lower_trl_boundary)
Set the lower translation threshold used for score evaluation.
float lambda_
Weighting factor for translation costs (standard = 0.5).
KFPCSInitialAlignment()
Constructor.
void getNBestCandidates(int n, float min_angle3d, float min_translation3d, MatchingCandidates &candidates)
Get the N best unique candidate matches according to their fitness score.
MatchingCandidates candidates_
Container for resulting vector of registration candidates.
int validateTransformation(Eigen::Matrix4f &transformation, float &fitness_score) override
Validate the transformation by calculating the score value after transforming the input source cloud.
~KFPCSInitialAlignment() override=default
Destructor.
float getUpperTranslationThreshold() const
float lower_trl_boundary_
Lower boundary for translation costs calculation.
bool use_trl_score_
Flag if translation score should be used in validation (internal calculation).
bool initCompute() override
Internal computation initialization.
std::vector< MatchingCandidate, Eigen::aligned_allocator< MatchingCandidate > > MatchingCandidates
IndicesAllocator<> Indices
Type used for indices in PCL.
shared_ptr< Indices > IndicesPtr
A point structure representing normal coordinates and the surface curvature estimate.
Container for matching candidate consisting of.