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

Change default behavior of SupervoxelClustering #1115

Merged
merged 1 commit into from
Mar 20, 2015

Conversation

jpapon
Copy link
Contributor

@jpapon jpapon commented Jan 28, 2015

Supervoxel clustering now uses the depth dependent transform by default only if the input cloud is organized.

A function was added for forcing/disabling use of the transform, and the parameter for its use was removed from the constructor.

Examples/Tutorials were updated to reflect these changes.

@taketwo
Copy link
Member

taketwo commented Jan 28, 2015

SupervoxelClustering was released quite some time ago and from what I know people do actually use it. Therefore we need to be careful with API changes. I think we need to keep the old constructor and add a depreciation warning.

@jpapon
Copy link
Contributor Author

jpapon commented Jan 28, 2015

Sounds good! Are we allowed to use c++11 features yet (in this case, delegating constructors)?

Also, how should I be handling improvements to the supervoxel algorithm itself? For instance, I now have a much better algorithm for choosing seed points. Do you think it's okay to simply drop it in, even though it significantly changes the overall end result?

@taketwo
Copy link
Member

taketwo commented Jan 28, 2015

Are we allowed to use c++11 features yet

There were no discussions of this issue recently, so I guess no. Anyways, it doesn't make much sense to introduce this requirement for such a minor reason.

Also, how should I be handling improvements to the supervoxel algorithm itself?

Good question! Actually I do not know our policy on that. @jspricke @rbrusu?

@jspricke
Copy link
Member

  • Sergey Alexandrov [email protected] [2015-01-28 05:37]:

    Also, how should I be handling improvements to the supervoxel algorithm itself?

    Good question! Actually I do not know our policy on that. @jspricke @rbrusu?

If it only improves the output, I think it should be fine to replace it.
Otherwise I would propose to give it a new name (like
ImprovedSupervoxelClustering ;) ) or if it's only a sub algorithm,
extract it into it's own class and give SupervoxelClustering an
interface to decide which one to use.

@taketwo
Copy link
Member

taketwo commented Jan 28, 2015

Got it. Then in this case I would suggest to silently replace the seeding function. The old one was a trivial hack, probably does not deserve to be preserved for future :)

@@ -189,7 +189,10 @@ namespace pcl
* \param[in] seed_resolution The average size (in meters) of resulting supervoxels
* \param[in] use_single_camera_transform Set to true if point density in cloud falls off with distance from origin (such as with a cloud coming from one stationary camera), set false if input cloud is from multiple captures from multiple locations.
Copy link
Member

Choose a reason for hiding this comment

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

This parameter no longer exists.

@taketwo
Copy link
Member

taketwo commented Mar 16, 2015

Jeremie, we don't get notifications when new commits are added to a pull request. Thus I have no way of knowing that you addressed my requests unless you drop a comment.

@jpapon
Copy link
Contributor Author

jpapon commented Mar 16, 2015

Yeah... my bad.

Should be good now though.


.. literalinclude:: sources/supervoxel_clustering/supervoxel_clustering.cpp
:language: cpp
:lines: 73-77
:lines: 73-79
Copy link
Member

Choose a reason for hiding this comment

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

Are the line numbers still valid?

@jpapon jpapon force-pushed the supervoxel_transform_fix branch from 969fb90 to add33bb Compare March 16, 2015 13:22
@jpapon
Copy link
Contributor Author

jpapon commented Mar 16, 2015

Should be all good now, forgot about those damn tutorial links

…, not if unorganized. Can still force behavior with function

Typo fixes

Added deprecated constructor with boolean parameter for controlling the transform behavior)

Improved documentation for single camera transform

Added included to tutorial, updated to use label cloud

Fixed lines numbers in Supervoxel clustering tutorial
@jpapon jpapon force-pushed the supervoxel_transform_fix branch from add33bb to 43ad1f8 Compare March 16, 2015 13:24
@taketwo
Copy link
Member

taketwo commented Mar 16, 2015

Thanks, LGTM now.

taketwo added a commit that referenced this pull request Mar 20, 2015
Change default behavior of SupervoxelClustering
@taketwo taketwo merged commit 4a4a4f5 into PointCloudLibrary:master Mar 20, 2015
@SergioRAgostinho SergioRAgostinho mentioned this pull request Dec 12, 2015
7 tasks
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.

3 participants