| 43 | } |
| 44 | |
| 45 | TreeVertex 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 | |
| 63 | bool Instance::computeVertexProperties(CloudT::Ptr &pc, Slash& filteredPoints, PointT& median_point, Scalar& radius) { |
| 64 | // Compute median in each x,y,z |
nothing calls this directly
no outgoing calls
no test coverage detected