MCPcopy Create free account
hub / github.com/PDAL/PDAL / setPointCloud

Method setPointCloud

filters/private/csf/CSF.cpp:57–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55{}
56
57void CSF::setPointCloud(vector<csf::Point> points) {
58 point_cloud.resize(points.size());
59
60 int pointCount = static_cast<int>(points.size());
61 #pragma omp parallel for
62 for (int i = 0; i < pointCount; i++) {
63 csf::Point las;
64 las.x = points[i].x;
65 las.y = -points[i].z;
66 las.z = points[i].y;
67 point_cloud[i] = las;
68 }
69}
70
71void CSF::setPointCloud(double *points, int rows) {
72 #define A(i, j) points[i + j * rows]

Callers 1

runMethod · 0.80

Calls 3

resizeMethod · 0.80
sizeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected