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

Function TEST

test/features/test_normal_estimation.cpp:58–92  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

56
57//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
58TEST (PCL, computePointNormal)
59{
60 Eigen::Vector4f plane_parameters;
61 float curvature;
62
63 PointCloud<PointXYZ> c;
64
65 PointXYZ p11 (706952.31f, 4087.6958f, 0.00000000f),
66 p21 (707002.31f, 6037.6958f, 0.00000000f),
67 p31 (706952.31f, 7937.6958f, 0.00000000f);
68 c.push_back (p11); c.push_back (p21); c.push_back (p31);
69
70 computePointNormal (cloud, plane_parameters, curvature);
71// std::cerr << plane_parameters << "\n";
72
73 c.clear ();
74 PointXYZ p12 (-439747.72f, -43597.250f, 0.0000000f),
75 p22 (-439847.72f, -41697.250f, 0.0000000f),
76 p32 (-439747.72f, -39797.250f, 0.0000000f);
77
78 c.push_back (p12); c.push_back (p22); c.push_back (p32);
79
80 computePointNormal (cloud, plane_parameters, curvature);
81// std::cerr << plane_parameters << "\n";
82
83 c.clear ();
84 PointXYZ p13 (567011.56f, -7741.8179f, 0.00000000f),
85 p23 (567361.56f, -5841.8179f, 0.00000000f),
86 p33 (567011.56f, -3941.8179f, 0.00000000f);
87
88 c.push_back (p13); c.push_back (p23); c.push_back (p33);
89
90 computePointNormal (cloud, plane_parameters, curvature);
91// std::cerr << plane_parameters << "\n";
92}
93
94//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
95TEST (PCL, NormalEstimation)

Callers

nothing calls this directly

Calls 15

computePointNormalFunction · 0.85
absFunction · 0.85
dotMethod · 0.80
PointXYZClass · 0.50
push_backMethod · 0.45
clearMethod · 0.45
computePointNormalMethod · 0.45
makeSharedMethod · 0.45
setInputCloudMethod · 0.45
getInputCloudMethod · 0.45
setIndicesMethod · 0.45

Tested by

no test coverage detected