Skip to content

Instantly share code, notes, and snippets.

@Mm7
Last active January 18, 2020 10:51
Show Gist options
  • Save Mm7/ecdb6944e6e8679a7932d57b7bb61576 to your computer and use it in GitHub Desktop.
Save Mm7/ecdb6944e6e8679a7932d57b7bb61576 to your computer and use it in GitHub Desktop.
diff --git a/octree_psnr.cpp b/octree_psnr.cpp
index 54ed98b..a344f62 100644
--- a/octree_psnr.cpp
+++ b/octree_psnr.cpp
@@ -174,7 +174,14 @@ auto OctreeDeCompressionRandomPointXYZ(Dataset &ds)
pcl::PointCloud<pcl::PointXYZL>::Ptr cloudOut (new pcl::PointCloud<pcl::PointXYZL> ());
pointcloud_encoder->encodePointCloud(cloud, compressed_data);
pointcloud_decoder->decodePointCloud (compressed_data, cloudOut);
- psnr_results[compression_profile] += psnr(*cloud.get(), *cloudOut.get())/ds.frames.size();
+ //psnr_results[compression_profile] += psnr(*cloud.get(), *cloudOut.get())/ds.frames.size();
+ for (auto point : *cloudOut.get()) {
+ if (point.label != 0) {
+ std::cout << "non-zero!" << std::endl;
+ }
+ }
+
}
catch (std::exception& e)
{
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment