Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent addition of duplicate keys in PFHEstimation buffer #1701

Merged
merged 1 commit into from
Aug 28, 2016

Conversation

SergioRAgostinho
Copy link
Member

find redundant adding of identical keys to the key list in PFHEstimation buffer

Closes #1243. Fixes #1189. Credits to @strothmw who seems inactive to apply the changes. Managed to preserve his authorship.

@SergioRAgostinho SergioRAgostinho added the needs: code review Specify why not closed/merged yet label Aug 26, 2016
@SergioRAgostinho SergioRAgostinho added this to the pcl-1.8.1 milestone Aug 26, 2016
@@ -133,7 +140,7 @@ pcl::PFHEstimation<PointInT, PointNT, PointOutT>::computePointPFHSignature (
}
pfh_histogram[h_index] += hist_incr;

if (use_cache_)
if ( use_cache_ && !key_found )
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra space before use_cache_

@@ -133,7 +140,7 @@ pcl::PFHEstimation<PointInT, PointNT, PointOutT>::computePointPFHSignature (
}
pfh_histogram[h_index] += hist_incr;

if (use_cache_)
if (use_cache_ && !key_found )
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra space after key_found 😆

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HAHAHA.... fml ^^ just a sec.

@taketwo taketwo merged commit 058506b into PointCloudLibrary:master Aug 28, 2016
@taketwo taketwo removed the needs: code review Specify why not closed/merged yet label Aug 28, 2016
@SergioRAgostinho SergioRAgostinho deleted the pfh-red-key branch August 28, 2016 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants