diff --git a/features/include/pcl/features/impl/rops_estimation.hpp b/features/include/pcl/features/impl/rops_estimation.hpp index 510153637df..f454f75ca9a 100644 --- a/features/include/pcl/features/impl/rops_estimation.hpp +++ b/features/include/pcl/features/impl/rops_estimation.hpp @@ -283,9 +283,9 @@ pcl::ROPSEstimation ::computeLRF (const PointInT& point, co } if (std::abs (total_area) < std::numeric_limits ::epsilon ()) - total_area = 1.0f / total_area; - else total_area = 1.0f; + else + total_area = 1.0f / total_area; Eigen::Matrix3f overall_scatter_matrix; overall_scatter_matrix.setZero ();