diff --git a/io/include/pcl/compression/impl/octree_pointcloud_compression.hpp b/io/include/pcl/compression/impl/octree_pointcloud_compression.hpp index 5e0b5ec3020..8dff290ca40 100644 --- a/io/include/pcl/compression/impl/octree_pointcloud_compression.hpp +++ b/io/include/pcl/compression/impl/octree_pointcloud_compression.hpp @@ -155,14 +155,14 @@ namespace pcl else PCL_INFO ("Encoding Frame: Prediction frame\n"); PCL_INFO ("Number of encoded points: %ld\n", point_count_); - PCL_INFO ("XYZ compression percentage: %f%%\n", bytes_per_XYZ / (3.0f * sizeof(float)) * 100.0f); + PCL_INFO ("XYZ compression percentage: %f%%\n", bytes_per_XYZ / (3.0f * sizeof (float)) * 100.0f); PCL_INFO ("XYZ bytes per point: %f bytes\n", bytes_per_XYZ); PCL_INFO ("Color compression percentage: %f%%\n", bytes_per_color / (sizeof (int)) * 100.0f); PCL_INFO ("Color bytes per point: %f bytes\n", bytes_per_color); - PCL_INFO ("Size of uncompressed point cloud: %f kBytes\n", static_cast (point_count_) * (sizeof (int) + 3.0f * sizeof (float)) / 1024); - PCL_INFO ("Size of compressed point cloud: %d kBytes\n", (compressed_point_data_len_ + compressed_color_data_len_) / (1024)); - PCL_INFO ("Total bytes per point: %f\n", bytes_per_XYZ + bytes_per_color); - PCL_INFO ("Total compression percentage: %f\n", (bytes_per_XYZ + bytes_per_color) / (sizeof (int) + 3.0f * sizeof(float)) * 100.0f); + PCL_INFO ("Size of uncompressed point cloud: %f kBytes\n", static_cast (point_count_) * (sizeof (int) + 3.0f * sizeof (float)) / 1024.0f); + PCL_INFO ("Size of compressed point cloud: %f kBytes\n", static_cast (compressed_point_data_len_ + compressed_color_data_len_) / 1024.0f); + PCL_INFO ("Total bytes per point: %f bytes\n", bytes_per_XYZ + bytes_per_color); + PCL_INFO ("Total compression percentage: %f%%\n", (bytes_per_XYZ + bytes_per_color) / (sizeof (int) + 3.0f * sizeof (float)) * 100.0f); PCL_INFO ("Compression ratio: %f\n\n", static_cast (sizeof (int) + 3.0f * sizeof (float)) / static_cast (bytes_per_XYZ + bytes_per_color)); } } else { @@ -235,17 +235,17 @@ namespace pcl PCL_INFO ("*** POINTCLOUD DECODING ***\n"); PCL_INFO ("Frame ID: %d\n", frame_ID_); if (i_frame_) - PCL_INFO ("Encoding Frame: Intra frame\n"); + PCL_INFO ("Decoding Frame: Intra frame\n"); else - PCL_INFO ("Encoding Frame: Prediction frame\n"); - PCL_INFO ("Number of encoded points: %ld\n", point_count_); + PCL_INFO ("Decoding Frame: Prediction frame\n"); + PCL_INFO ("Number of decoded points: %ld\n", point_count_); PCL_INFO ("XYZ compression percentage: %f%%\n", bytes_per_XYZ / (3.0f * sizeof (float)) * 100.0f); PCL_INFO ("XYZ bytes per point: %f bytes\n", bytes_per_XYZ); PCL_INFO ("Color compression percentage: %f%%\n", bytes_per_color / (sizeof (int)) * 100.0f); PCL_INFO ("Color bytes per point: %f bytes\n", bytes_per_color); PCL_INFO ("Size of uncompressed point cloud: %f kBytes\n", static_cast (point_count_) * (sizeof (int) + 3.0f * sizeof (float)) / 1024.0f); PCL_INFO ("Size of compressed point cloud: %f kBytes\n", static_cast (compressed_point_data_len_ + compressed_color_data_len_) / 1024.0f); - PCL_INFO ("Total bytes per point: %d bytes\n", static_cast (bytes_per_XYZ + bytes_per_color)); + PCL_INFO ("Total bytes per point: %f bytes\n", bytes_per_XYZ + bytes_per_color); PCL_INFO ("Total compression percentage: %f%%\n", (bytes_per_XYZ + bytes_per_color) / (sizeof (int) + 3.0f * sizeof (float)) * 100.0f); PCL_INFO ("Compression ratio: %f\n\n", static_cast (sizeof (int) + 3.0f * sizeof (float)) / static_cast (bytes_per_XYZ + bytes_per_color)); }