MCPcopy Create free account
hub / github.com/KumarRobotics/sloam / computeTreeVertex

Method computeTreeVertex

sloam/src/segmentation/trellis.cpp:45–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45TreeVertex Instance::computeTreeVertex(CloudT::Ptr beam, int label){
46 TreeVertex v;
47 Slash filteredPoints;
48 PointT median;
49 Scalar radius;
50 bool valid = computeVertexProperties(beam, filteredPoints, median, radius);
51
52 v.treeId = label;
53 v.prevVertexSize = 0;
54 v.points = filteredPoints;
55 v.coords = median;
56 // v.isRoot = false;
57 v.isValid = valid;
58 v.beam = 0;
59 v.radius = radius;
60 return v;
61}
62
63bool Instance::computeVertexProperties(CloudT::Ptr &pc, Slash& filteredPoints, PointT& median_point, Scalar& radius) {
64 // Compute median in each x,y,z

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected