-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Add: morphological filters operate on the z dimension, progressive morph... #521
Add: morphological filters operate on the z dimension, progressive morph... #521
Conversation
HI chambbj, thanks for your contribution(s) :). Can you clean this one up a little? Like squashing all the fixup commits. Have a look at git rebase -i (and do a git push -f later). This would make it easier to review, bisect wouldn't break in case, and your flaws won't show up in the PCL history ;). Thanks! |
…rphological filter can be used to segment ground returns
Didn't know your stance on rebasing and forced pushes. Done! |
|
||
pcl::octree::OctreePointCloudSearch<PointT> tree (resolution); | ||
|
||
tree.setInputCloud (cloud_in.makeShared ()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please use ::Ptr instead of makeShared () (saves us a copy ;) ).
I think it makes sense to change function(s) signature so that the input is provided by pointer. A pointer is needed internally anyways. Would be stupid if the end-user has a shared point cloud, then he uses |
Force pushes are ok, as long as you are doing it in your own private branch ;) (and no one is basing work on it). On the other hand, this includes quite a lot of different stuff, so it would be great if you could organize this into logical independent commits (instead of historically ;) ). Maybe one for the filter, one for the segmentation, one for the octree change and for the different tools. This would make it easier to review and we wouldn't remove unrelated patches in case we have to revert it. Sorry for the trouble and thanks for the work! |
@taketwo huh, isn't it the same as in https://github.com/PointCloudLibrary/pcl/blob/master/test/octree/test_octree.cpp#L729 |
@jspricke Let me restate my idea. |
@taketwo right (I stopped reviewing this when I saw the makeShared ;) ). So passing a ::Ptr in |
|
Add: morphological filters operate on the z dimension (replaces #521)
...ological filter can be used to segment ground returns