@@ -58,7 +58,7 @@ pcl::PCLPointCloud2 cloud_blob;
5858TEST (PCL, compute3DCentroidFloat)
5959{
6060 pcl::PointIndices pindices;
61- std::vector< int > indices;
61+ Indices indices;
6262 PointXYZ point;
6363 PointCloud<PointXYZ> cloud;
6464 Eigen::Vector4f centroid;
@@ -164,7 +164,7 @@ TEST (PCL, compute3DCentroidFloat)
164164TEST (PCL, compute3DCentroidDouble)
165165{
166166 pcl::PointIndices pindices;
167- std::vector< int > indices;
167+ Indices indices;
168168 PointXYZ point;
169169 PointCloud<PointXYZ> cloud;
170170 Eigen::Vector4d centroid;
@@ -269,7 +269,7 @@ TEST (PCL, compute3DCentroidDouble)
269269TEST (PCL, compute3DCentroidCloudIterator)
270270{
271271 pcl::PointIndices pindices;
272- std::vector< int > indices;
272+ Indices indices;
273273 PointXYZ point;
274274 PointCloud<PointXYZ> cloud;
275275 Eigen::Vector4f centroid_f;
@@ -333,7 +333,7 @@ TEST (PCL, computeCovarianceMatrix)
333333{
334334 PointCloud<PointXYZ> cloud;
335335 PointXYZ point;
336- std::vector < int > indices;
336+ Indices indices;
337337 Eigen::Vector4f centroid;
338338 Eigen::Matrix3f covariance_matrix;
339339
@@ -449,7 +449,7 @@ TEST (PCL, computeCovarianceMatrixNormalized)
449449{
450450 PointCloud<PointXYZ> cloud;
451451 PointXYZ point;
452- std::vector < int > indices;
452+ Indices indices;
453453 Eigen::Vector4f centroid;
454454 Eigen::Matrix3f covariance_matrix;
455455
@@ -567,7 +567,7 @@ TEST (PCL, computeDemeanedCovariance)
567567{
568568 PointCloud<PointXYZ> cloud;
569569 PointXYZ point;
570- std::vector < int > indices;
570+ Indices indices;
571571 Eigen::Matrix3f covariance_matrix;
572572
573573 // test empty cloud which is dense
@@ -673,7 +673,7 @@ TEST (PCL, computeMeanAndCovariance)
673673{
674674 PointCloud<PointXYZ> cloud;
675675 PointXYZ point;
676- std::vector < int > indices;
676+ Indices indices;
677677 Eigen::Matrix3f covariance_matrix;
678678 Eigen::Vector4f centroid;
679679
@@ -931,7 +931,7 @@ TEST (PCL, CentroidPoint)
931931// ////////////////////////////////////////////////////////////////////////////////////////////////////////////////
932932TEST (PCL, computeCentroid)
933933{
934- std::vector< int > indices;
934+ Indices indices;
935935 PointXYZI point;
936936 PointCloud<PointXYZI> cloud;
937937 PointXYZINormal centroid;
@@ -1057,7 +1057,7 @@ TEST (PCL, demeanPointCloud)
10571057 EXPECT_XYZ_NEAR (cloud_demean[0 ], PointXYZ (0.034503 , 0.010837 , 0.013447 ), 1e-4 );
10581058 EXPECT_XYZ_NEAR (cloud_demean[cloud_demean.size () - 1 ], PointXYZ (-0.048849 , 0.072507 , -0.071702 ), 1e-4 );
10591059
1060- std::vector< int > indices (cloud.size ());
1060+ Indices indices (cloud.size ());
10611061 for (int i = 0 ; i < static_cast <int > (indices.size ()); ++i) { indices[i] = i; }
10621062
10631063 // Check standard demean w/ indices
0 commit comments