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

Function createColorCloud

test/features/test_gasd_estimation.cpp:47–58  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

45
46//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
47void
48createColorCloud (pcl::PointCloud<pcl::PointXYZRGBA> &colorCloud)
49{
50 for (std::size_t i = 0; i < cloud->size (); ++i)
51 {
52 pcl::PointXYZRGBA p;
53 p.getVector3fMap () = (*cloud)[i].getVector3fMap ();
54
55 p.rgba = ( (i % 255) << 16) + ( ( (255 - i) % 255) << 8) + ( (i * 37) % 255);
56 colorCloud.push_back (p);
57 }
58}
59
60//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
61TEST(PCL, GASDTransformEstimation)

Callers 1

TESTFunction · 0.85

Calls 2

sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected