We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3452aac commit ac66099Copy full SHA for ac66099
1 file changed
common/include/pcl/common/impl/centroid.hpp
@@ -199,6 +199,7 @@ computeCovarianceMatrix (const pcl::PointCloud<PointT> &cloud,
199
// If the data is dense, we don't need to check for NaN
200
if (cloud.is_dense)
201
{
202
+ covariance_matrix.setZero ();
203
point_count = static_cast<unsigned> (cloud.size ());
204
// For each point in the cloud
205
for (const auto& point: cloud)
@@ -288,6 +289,7 @@ computeCovarianceMatrix (const pcl::PointCloud<PointT> &cloud,
288
289
290
291
292
293
point_count = indices.size ();
294
295
for (const auto& idx: indices)
0 commit comments