MCPcopy Create free account
hub / github.com/andybarry/makerscanner / GetKey

Method GetKey

PointCloud.cpp:54–57  ·  view source on GitHub ↗

The points are uniquely identified by h and laserPos. Index is -- laserPos * 1000 + h yielding an set size of 255*1000 + 1000 = 256,000 Each hash map container holds a linked list of PointCloudPoints, which can be combined in an average for that point

Source from the content-addressed store, hash-verified

52// Each hash map container holds a linked list of PointCloudPoints, which can be combined in an average
53// for that point
54int PointCloud::GetKey(int h, int laserPos)
55{
56 return laserPos * 1000 + h;
57}
58
59// Helper function to add a point that creates the PointCloudPoint for you
60void PointCloud::AddPoint(double dist, double theta, double phi, int r, int g, int b, int w, int h, int laserPos)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected