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

Function TEST

test/geometry/test_iterator.cpp:200–234  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

198
199//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
200TEST (PCL, LineIterator8Neighbors)
201{
202 PointCloud <PointXYZ> cloud;
203 cloud.width = 100;
204 cloud.height = 100;
205 cloud.resize (cloud.width * cloud.height);
206
207 unsigned center_x = 50;
208 unsigned center_y = 50;
209 unsigned length = 45;
210
211 // right
212 checkSimpleLine8 (center_x, center_y, center_x + length, center_y, cloud);
213
214 // left
215 checkSimpleLine8 (center_x, center_y, center_x - length, center_y, cloud);
216
217 // down
218 checkSimpleLine8 (center_x, center_y, center_x, center_y - length, cloud);
219
220 // up
221 checkSimpleLine8 (center_x, center_y, center_x, center_y + length, cloud);
222
223 // up-right
224 checkSimpleLine8 (center_x, center_y, center_x + length, center_y + length, cloud);
225
226 // up-left
227 checkSimpleLine8 (center_x, center_y, center_x - length, center_y + length, cloud);
228
229 // down-right
230 checkSimpleLine8 (center_x, center_y, center_x + length, center_y - length, cloud);
231
232 // down-left
233 checkSimpleLine8 (center_x, center_y, center_x - length, center_y - length, cloud);
234}
235
236//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
237TEST (PCL, LineIterator8NeighborsGeneral)

Callers

nothing calls this directly

Calls 3

checkSimpleLine8Function · 0.85
checkGeneralLineFunction · 0.85
resizeMethod · 0.45

Tested by

no test coverage detected