Last active
January 18, 2020 10:51
-
-
Save Mm7/ecdb6944e6e8679a7932d57b7bb61576 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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