Point Cloud Library (PCL)
1.10.1
|
39 #include <pcl/registration/ia_fpcs.h>
43 namespace registration
53 template <
typename Po
intSource,
typename Po
intTarget,
typename NormalT = pcl::Normal,
typename Scalar =
float>
203 const std::vector <int> &base_indices,
204 std::vector <std::vector <int> > &matches,
226 finalCompute (
const std::vector <MatchingCandidates > &candidates)
override;
259 #include <pcl/registration/impl/ia_kfpcs.hpp>
float lower_trl_boundary_
Lower boundary for translation costs calculation.
shared_ptr< Registration< PointSource, PointTarget, float > > Ptr
KFPCSInitialAlignment()
Constructor.
This file defines compatibility wrappers for low level I/O functions.
float upper_trl_boundary_
Upper boundary for translation costs calculation.
shared_ptr< Indices > IndicesPtr
Registration represents the base registration class for general purpose, ICP-like methods.
FPCSInitialAlignment computes corresponding four point congruent sets as described in: "4-points cong...
bool initCompute() override
Internal computation initialization.
~KFPCSInitialAlignment()
Destructor.
bool use_trl_score_
Flag if translation score should be used in validation (internal calculation).
float getLowerTranslationThreshold() const
void getNBestCandidates(int n, float min_angle3d, float min_translation3d, MatchingCandidates &candidates)
Get the N best unique candidate matches according to their fitness score.
void setUpperTranslationThreshold(float upper_trl_boundary)
Set the upper translation threshold used for score evaluation.
void getTBestCandidates(float t, float min_angle3d, float min_translation3d, MatchingCandidates &candidates)
Get all unique candidate matches with fitness scores above a threshold t.
float getUpperTranslationThreshold() const
typename PointCloudSource::Ptr PointCloudSourcePtr
std::vector< MatchingCandidate, Eigen::aligned_allocator< MatchingCandidate > > MatchingCandidates
KFPCSInitialAlignment computes corresponding four point congruent sets based on keypoints as describe...
typename PointCloudTarget::Ptr PointCloudTargetPtr
void setLambda(float lambda)
Set the weighting factor of the translation cost term.
float lambda_
Weighting factor for translation costs (standard = 0.5).
void finalCompute(const std::vector< MatchingCandidates > &candidates) override
Final computation of best match out of vector of matches.
MatchingCandidates candidates_
Container for resulting vector of registration candidates.
shared_ptr< PointCloud< PointSource > > Ptr
pcl::IndicesPtr indices_validation_
Subset of input indices on which we evaluate candidates.
void setLowerTranslationThreshold(float lower_trl_boundary)
Set the lower translation threshold used for score evaluation.
int validateTransformation(Eigen::Matrix4f &transformation, float &fitness_score) override
Validate the transformation by calculating the score value after transforming the input source cloud.
shared_ptr< const Registration< PointSource, PointTarget, float > > ConstPtr
Container for matching candidate consisting of.
typename VectorType::iterator iterator
void handleMatches(const std::vector< int > &base_indices, std::vector< std::vector< int > > &matches, MatchingCandidates &candidates) override
Method to handle current candidate matches.
boost::shared_ptr< T > shared_ptr
Alias for boost::shared_ptr.