Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions core/src/point_cloud.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ bool PointCloud::load_pc(const std::string& input_file_name, bool load_cache_mod
this->intensities.clear();
this->timestamps.clear();

this->points_local.resize(npoints);
this->intensities.resize(npoints);
this->timestamps.resize(npoints);
this->points_local.reserve(npoints);
this->intensities.reserve(npoints);
this->timestamps.reserve(npoints);

while (p_count < npoints)
{
Expand Down
5 changes: 5 additions & 0 deletions core/src/point_clouds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1317,6 +1317,11 @@ bool PointClouds::load_whu_tls(
point_clouds[i].points_local[j] -= this->offset;
}

size_t total_points = 0;
for (int i = 0; i < point_clouds.size(); i++)
total_points += point_clouds[i].points_local.size();
std::cout << "total points loaded: " << total_points << std::endl;

print_point_cloud_dimension();
const auto end = std::chrono::system_clock::now();
std::chrono::duration<double> elapsed_seconds = end - start;
Expand Down
Loading