@@ -64,7 +64,7 @@ getMeanPointDensity(const typename pcl::PointCloud<PointT>::ConstPtr& cloud,
64
64
template <typename PointT>
65
65
inline float
66
66
getMeanPointDensity (const typename pcl::PointCloud<PointT>::ConstPtr& cloud,
67
- const std::vector< int > & indices,
67
+ const pcl::Indices & indices,
68
68
float max_dist,
69
69
int nr_threads = 1 );
70
70
@@ -318,7 +318,7 @@ class FPCSInitialAlignment : public Registration<PointSource, PointTarget, Scala
318
318
* * = 0 a set of four congruent points was selected
319
319
*/
320
320
int
321
- selectBase (std::vector< int > & base_indices, float (&ratio)[2 ]);
321
+ selectBase (pcl::Indices & base_indices, float (&ratio)[2 ]);
322
322
323
323
/* * \brief Select randomly a triplet of points with large point-to-point distances.
324
324
* The minimum point sampling distance is calculated based on the estimated point
@@ -330,7 +330,7 @@ class FPCSInitialAlignment : public Registration<PointSource, PointTarget, Scala
330
330
* * = 0 base triangle succesully selected
331
331
*/
332
332
int
333
- selectBaseTriangle (std::vector< int > & base_indices);
333
+ selectBaseTriangle (pcl::Indices & base_indices);
334
334
335
335
/* * \brief Setup the base (four coplanar points) by ordering the points and computing
336
336
* intersection ratios and segment to segment distances of base diagonal.
@@ -339,14 +339,14 @@ class FPCSInitialAlignment : public Registration<PointSource, PointTarget, Scala
339
339
* \param[out] ratio diagonal intersection ratios of base points
340
340
*/
341
341
void
342
- setupBase (std::vector< int > & base_indices, float (&ratio)[2 ]);
342
+ setupBase (pcl::Indices & base_indices, float (&ratio)[2 ]);
343
343
344
344
/* * \brief Calculate intersection ratios and segment to segment distances of base
345
345
* diagonals. \param[in] base_indices indices of base B \param[out] ratio diagonal
346
346
* intersection ratios of base points \return quality value of diagonal intersection
347
347
*/
348
348
float
349
- segmentToSegmentDist (const std::vector< int > & base_indices, float (&ratio)[2 ]);
349
+ segmentToSegmentDist (const pcl::Indices & base_indices, float (&ratio)[2 ]);
350
350
351
351
/* * \brief Search for corresponding point pairs given the distance between two base
352
352
* points.
@@ -375,8 +375,8 @@ class FPCSInitialAlignment : public Registration<PointSource, PointTarget, Scala
375
375
* * = 0 at least one base match was found
376
376
*/
377
377
virtual int
378
- determineBaseMatches (const std::vector< int > & base_indices,
379
- std::vector<std::vector< int > >& matches,
378
+ determineBaseMatches (const pcl::Indices & base_indices,
379
+ std::vector<pcl::Indices >& matches,
380
380
const pcl::Correspondences& pairs_a,
381
381
const pcl::Correspondences& pairs_b,
382
382
const float (&ratio)[2]);
@@ -391,7 +391,7 @@ class FPCSInitialAlignment : public Registration<PointSource, PointTarget, Scala
391
391
* * = 0 edges of match M fits to the ones of base B
392
392
*/
393
393
int
394
- checkBaseMatch (const std::vector< int > & match_indices, const float (&ds)[4]);
394
+ checkBaseMatch (const pcl::Indices & match_indices, const float (&ds)[4]);
395
395
396
396
/* * \brief Method to handle current candidate matches. Here we validate and evaluate
397
397
* the matches w.r.t the base and store the best fitting match (together with its
@@ -404,8 +404,8 @@ class FPCSInitialAlignment : public Registration<PointSource, PointTarget, Scala
404
404
* contains the candidates matches M
405
405
*/
406
406
virtual void
407
- handleMatches (const std::vector< int > & base_indices,
408
- std::vector<std::vector< int > >& matches,
407
+ handleMatches (const pcl::Indices & base_indices,
408
+ std::vector<pcl::Indices >& matches,
409
409
MatchingCandidates& candidates);
410
410
411
411
/* * \brief Sets the correspondences between the base B and the match M by using the
@@ -416,8 +416,8 @@ class FPCSInitialAlignment : public Registration<PointSource, PointTarget, Scala
416
416
* \param[out] correspondences resulting correspondences
417
417
*/
418
418
virtual void
419
- linkMatchWithBase (const std::vector< int > & base_indices,
420
- std::vector< int > & match_indices,
419
+ linkMatchWithBase (const pcl::Indices & base_indices,
420
+ pcl::Indices & match_indices,
421
421
pcl::Correspondences& correspondences);
422
422
423
423
/* * \brief Validate the matching by computing the transformation between the source
@@ -434,8 +434,8 @@ class FPCSInitialAlignment : public Registration<PointSource, PointTarget, Scala
434
434
* * = 0 MSE smaller than max_mse_
435
435
*/
436
436
virtual int
437
- validateMatch (const std::vector< int > & base_indices,
438
- const std::vector< int > & match_indices,
437
+ validateMatch (const pcl::Indices & base_indices,
438
+ const pcl::Indices & match_indices,
439
439
const pcl::Correspondences& correspondences,
440
440
Eigen::Matrix4f& transformation);
441
441
0 commit comments