diff --git a/features/include/pcl/features/impl/pfhrgb.hpp b/features/include/pcl/features/impl/pfhrgb.hpp index dbe5918ce50..bbbb1dad8a7 100644 --- a/features/include/pcl/features/impl/pfhrgb.hpp +++ b/features/include/pcl/features/impl/pfhrgb.hpp @@ -71,7 +71,7 @@ pcl::PFHRGBEstimation::computePointPFHRGBSignature pfhrgb_histogram.setZero (); // Factorization constant - float hist_incr = 100.0f / static_cast (indices.size () * indices.size () - 1); + float hist_incr = 100.0f / static_cast (indices.size () * (indices.size () - 1) / 2); // Iterate over all the points in the neighborhood for (size_t i_idx = 0; i_idx < indices.size (); ++i_idx)