| 249 | ~ImageProjection() {} |
| 250 | |
| 251 | void setPointCloud(const pcl::PointCloud<PointType>::Ptr srcPtr) { |
| 252 | (*laserCloudIn).points.resize((*srcPtr).size()); |
| 253 | for (size_t i = 0; i < (*srcPtr).size(); i++) { |
| 254 | (*laserCloudIn).points[i].x = (*srcPtr).points[i].x; |
| 255 | (*laserCloudIn).points[i].y = (*srcPtr).points[i].y; |
| 256 | (*laserCloudIn).points[i].z = (*srcPtr).points[i].z; |
| 257 | } |
| 258 | } |
| 259 | |
| 260 | void copyPointCloud(const pcl::PointCloud<PointType>::Ptr srcPtr) { |
| 261 | setPointCloud(srcPtr); |