Skip to content

Commit

Permalink
Changed hash func in preprocessing to be consistent with voxel map ha…
Browse files Browse the repository at this point in the history
…sh func (#341)
  • Loading branch information
kulfer80 authored Jun 13, 2024
1 parent 6d76ca8 commit 74ea742
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/kiss_icp/core/Preprocessing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ using Voxel = Eigen::Vector3i;
struct VoxelHash {
size_t operator()(const Voxel &voxel) const {
const uint32_t *vec = reinterpret_cast<const uint32_t *>(voxel.data());
return ((1 << 20) - 1) & (vec[0] * 73856093 ^ vec[1] * 19349663 ^ vec[2] * 83492791);
return ((1 << 20) - 1) & (vec[0] * 73856093 ^ vec[1] * 19349669 ^ vec[2] * 83492791);
}
};
} // namespace
Expand Down

0 comments on commit 74ea742

Please sign in to comment.