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

Improvements to OUR-CVFH Estimation, including mapping from clusters to features and doc fixes #738

Merged
merged 1 commit into from
Jun 16, 2014

Conversation

translunar
Copy link

Fixes #737 by adding a vector<short> cluster_axes_ to OURCVFHEstimation. This protected field consists of a count of the number of signatures that have been computed per cluster. It is set by computeRFAndShapeDistribution at the same time as compute's output. When all axes are properly disambiguated, it will consist only of the value 1 (one entry per cluster). When some cluster i has multiple SGURF solutions, instead of 1, the vector will contain the number of SGURFs in location i.

Also fixes a typo in the documentation and another in the warning (plural of axis is axes, so "both axes" not "both axis").

@VictorLamoine
Copy link
Contributor

You should rebase your branch on PCL master to avoid the "Merge branch" commit
rebase -i upstream/master in your branch should do the trick

@translunar
Copy link
Author

I don't think these debugging lines are particularly informative. They probably only apply to my particular problem.

I'll rebase when I get to work. Thanks for looking over my code. =)

@translunar
Copy link
Author

Okay. Rebased. Good trick! Didn't know I could do that, thanks.

@@ -310,7 +310,7 @@ pcl::OURCVFHEstimation<PointInT, PointNT, PointOutT>::sgurf (Eigen::Vector3f & c

if ((min_axis / max_axis) > axis_ratio_)
{
PCL_WARN("Both axis are equally easy/difficult to disambiguate\n");
PCL_WARN("Both axes are equally easy/difficult to disambiguate\n");
Copy link
Contributor

Choose a reason for hiding this comment

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

There should be a space before the parenthesis

Copy link
Author

Choose a reason for hiding this comment

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

I believe this is a macro, so a space is not permitted, but it's also not my code — I just updated the error message.

Copy link
Member

Choose a reason for hiding this comment

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

Space is not permitted in macro definitions, but it is okay to put it when a macro is called.

Generally, our policy is not to fix space issues in lines we don't touch with updates, and do fix in lines we touch. In this case the line in question is being updated anyways, so it would be nice to fix the space as well.

@translunar
Copy link
Author

I have now adjusted the spacing in PCL_WARN.

@@ -262,6 +262,15 @@ namespace pcl
{
indices = clusters_;
}

/** \brief Gets the number of non-disambiguable axes that correspond to each centroid
* \param[out] vector mapping each centroid to the number of signatures
Copy link
Member

Choose a reason for hiding this comment

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

Parameter description should contain the name of the parameter, i.e. in this case the line should be:

\param[out] cluster_axes vector mapping each centroid to the number of signatures

@taketwo
Copy link
Member

taketwo commented Jun 15, 2014

I spotted one Doxygen-related issue, but otherwise everything looks good. Could you please squash the fixup commits so we have a neat history?

@translunar
Copy link
Author

Oops. Apparently I don't know how to rebase properly. Working on it.

centroid clusters to VFH signatures -- which occurs when axes can't be
disambiguated.

Also, ensured that the width and height are set properly on output when compute,
computeFeature, and computeRFAndShapeDistribution are called.
@translunar
Copy link
Author

BAM. 'Tis done.

@taketwo
Copy link
Member

taketwo commented Jun 16, 2014

Thanks, merging this.

taketwo added a commit that referenced this pull request Jun 16, 2014
Improvements to OUR-CVFH Estimation, including mapping from clusters to features and doc fixes
@taketwo taketwo merged commit 8046513 into PointCloudLibrary:master Jun 16, 2014
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.

Potential problem with OURCVFHEstimation::computeRFAndShapeDistribution
3 participants