You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, how did you become aware that this could be a problem? Did you encounter this in practice, or was there a compiler warning, or something else?
And why exactly would it not fit into an int? Because min_p is very large, or because inverse_leaf_size_ is very large?
Thanks for the additional information. So a combination of a point cloud that is far away from (0, 0, 0), and a small leaf size could potentially trigger this. I will look into it further when I have time. Maybe, instead of using min_b_, it might be an option to subtract min_p from every point, then multiply with inverse_leaf_size_. But we need to make sure that this does not change the behaviour of VoxelGridCovariance, and does not make it slower.
Undefined behavior if floating-point expression doesn't fit into an int.
pcl/filters/include/pcl/filters/impl/voxel_grid_covariance.hpp
Line 91 in 0932486
The text was updated successfully, but these errors were encountered: