使用std :: vector <pcl :: pointcloud <pcl :: pointnormal >>的ucrtbase.dll崩溃

时间:2018-10-31 15:27:42

标签: c++ boost shared-ptr

以下代码在每次运行时崩溃。我看不出为什么会崩溃。帮助将不胜感激。

std::vector<boost::shared_ptr<pcl::PointCloud<pcl::PointNormal>>> neighbor_count_filtered_clouds;

neighbor_count_filtered_clouds.resize(27);
    for (std::size_t i; i < temp_pointclouds.size(); i++) {
        temp_pointclouds[i].width = temp_pointclouds[i].points.size();
        temp_pointclouds[i].height = 1;
        neighbor_count_filtered_clouds[i] = boost::make_shared<pcl::PointCloud<pcl::PointNormal>>(std::move(temp_pointclouds[i]));
        //*neighbor_count_filtered_clouds[i] = temp_pointclouds[i];
    }

for (std::size_t i = 0; i < neighbor_count_filtered_clouds.size(); i++) {
        std::cout << i << ":\t" << neighbor_count_filtered_clouds[i]->points.size() << std::endl;
    }

neighbor_count_filtered_clouds

temp_pointclouds

0 个答案:

没有答案