Skip to content

Commit

Permalink
[common] Modify index type for correspondences (#4231)
Browse files Browse the repository at this point in the history
  • Loading branch information
haritha-j committed Jul 25, 2020
1 parent 79afe44 commit b040ed0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions common/include/pcl/correspondence.h
Expand Up @@ -42,6 +42,7 @@
#pragma GCC system_header
#endif

#include <pcl/pcl_base.h>
#include <pcl/memory.h>
#include <pcl/types.h>
#include <Eigen/StdVector>
Expand All @@ -60,9 +61,9 @@ namespace pcl
struct Correspondence
{
/** \brief Index of the query (source) point. */
int index_query = 0;
index_t index_query = 0;
/** \brief Index of the matching (target) point. Set to -1 if no correspondence found. */
int index_match = -1;
index_t index_match = UNAVAILABLE;
/** \brief Distance between the corresponding points, or the weight denoting the confidence in correspondence estimation */
union
{
Expand All @@ -76,7 +77,7 @@ namespace pcl
inline Correspondence () = default;

/** \brief Constructor. */
inline Correspondence (int _index_query, int _index_match, float _distance) :
inline Correspondence (index_t _index_query, index_t _index_match, float _distance) :
index_query (_index_query), index_match (_index_match), distance (_distance)
{}

Expand Down

0 comments on commit b040ed0

Please sign in to comment.