Skip to content

Commit

Permalink
fixed wrong erasing order on feature_map_ in PFHEstimation
Browse files Browse the repository at this point in the history
  • Loading branch information
strothmw committed Mar 25, 2015
1 parent 625af2d commit bbec109
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion features/include/pcl/features/impl/pfh.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ pcl::PFHEstimation<PointInT, PointNT, PointOutT>::computePointPFHSignature (
float hist_incr = 100.0f / static_cast<float> (indices.size () * (indices.size () - 1) / 2);

std::pair<int, int> key;

// Iterate over all the points in the neighborhood
for (size_t i_idx = 0; i_idx < indices.size (); ++i_idx)
{
Expand Down Expand Up @@ -144,7 +145,7 @@ pcl::PFHEstimation<PointInT, PointNT, PointOutT>::computePointPFHSignature (
if (key_list_.size () > max_cache_size_)
{
// Remove the last element.
feature_map_.erase (key_list_.back ());
feature_map_.erase (key_list_.front() );
key_list_.pop ();
}
}
Expand Down

0 comments on commit bbec109

Please sign in to comment.