| 55 | {} |
| 56 | |
| 57 | void 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 | |
| 71 | void CSF::setPointCloud(double *points, int rows) { |
| 72 | #define A(i, j) points[i + j * rows] |