Skip to content

Commit

Permalink
Merge pull request #1749 from fengjim/issue_1745
Browse files Browse the repository at this point in the history
Fix bug: frame type is not correct in statistics
  • Loading branch information
jspricke authored May 30, 2017
2 parents 0812357 + 6b8bdf5 commit 79823c9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ namespace pcl

// prepare for next frame
this->switchBuffers ();
i_frame_ = false;

// reset object count
object_count_ = 0;
Expand All @@ -165,6 +164,8 @@ namespace pcl
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<float> (sizeof (int) + 3.0f * sizeof (float)) / static_cast<float> (bytes_per_XYZ + bytes_per_color));
}

i_frame_ = false;
} else {
if (b_show_statistics_)
PCL_INFO ("Info: Dropping empty point cloud\n");
Expand Down

0 comments on commit 79823c9

Please sign in to comment.