MCPcopy Create free account
hub / github.com/PointCloudLibrary/pcl / TEST

Function TEST

test/features/test_gasd_estimation.cpp:61–84  ·  view source on GitHub ↗

/////////////////////////////////////////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

59
60//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
61TEST(PCL, GASDTransformEstimation)
62{
63 pcl::GASDEstimation<pcl::PointXYZ, pcl::GASDSignature512> gasd;
64 gasd.setInputCloud (cloud);
65
66 pcl::PointCloud<pcl::GASDSignature512> descriptor;
67 gasd.compute (descriptor);
68
69 Eigen::Matrix4f trans = gasd.getTransform ();
70
71 Eigen::Matrix4f ref_trans;
72 ref_trans << 0.661875, -0.704840, 0.255192, 0.0846344,
73 -0.748769, -0.605475, 0.269713, 0.0330151,
74 -0.035592, -0.369596, -0.928511, 0.0622551,
75 0, 0, 0, 1;
76
77 for (Eigen::Index i = 0; i < trans.rows(); ++i)
78 {
79 for (Eigen::Index j = 0; j < trans.cols (); ++j)
80 {
81 EXPECT_NEAR (trans (i, j), ref_trans (i, j), 1e-5);
82 }
83 }
84}
85
86//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
87TEST (PCL, GASDShapeEstimationNoInterp)

Callers

nothing calls this directly

Calls 10

createColorCloudFunction · 0.85
setInputCloudMethod · 0.45
computeMethod · 0.45
getTransformMethod · 0.45
rowsMethod · 0.45
colsMethod · 0.45
sizeMethod · 0.45
descriptorSizeMethod · 0.45

Tested by

no test coverage detected