Skip to content

Commit

Permalink
Update ppf_registration.h
Browse files Browse the repository at this point in the history
  • Loading branch information
YeHuanjie authored Jan 20, 2025
1 parent faa6a25 commit 9753648
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions registration/include/pcl/registration/ppf_registration.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ class PCL_EXPORTS PPFHashMapSearch {
operator()(const HashKeyStruct& s) const noexcept
{
/// RS hash function https://www.partow.net/programming/hashfunctions/index.html
std::size_t b_ = 378551;
std::size_t a_ = 63689;
std::size_t b_ = 378551;
std::size_t a_ = 63689;
std::size_t hash = 0;
hash = hash * a_ + s.first;
a_ = a_ * b_;
a_ = a_ * b_;
hash = hash * a_ + s.second.first;
a_ = a_ * b_;
a_ = a_ * b_;
hash = hash * a_ + s.second.second.first;
a_ = a_ * b_;
a_ = a_ * b_;
hash = hash * a_ + s.second.second.second;
return hash;
}
Expand Down

0 comments on commit 9753648

Please sign in to comment.