-
-
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 (replaces #521) #533
Add: morphological filters operate on the z dimension (replaces #521) #533
Conversation
There is a note in every function:
What exactly do you mean by that? |
@taketwo Honestly, this is a bit of a cut and paste from copyPointCloud. I can take out that note to avoid confusion. |
I see, but that note is relevant only for functions with |
@taketwo Same thing here. Just rebased and pushed once again. |
I think we need one more rebase here to get the fixes introduced by #534. |
@taketwo This one should be ready now, although Travis timed out on gcc. |
Great! Let's wait some time just in case @jspricke has anything to add. Otherwise I am fine with merging this. |
Eigen::Vector4f min_pt, max_pt; | ||
pcl::getMinMax3D<PointT> (*cloud_in, pt_indices, min_pt, max_pt); | ||
|
||
cloud_out.points[p_idx].z = min_pt.z (); |
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.
This is the only change compared to morphologicalDilate, I would propose to merge both functions and give them a min/max parameter.
@jspricke If this looks better, I can squash, rebase with master, and push one last time. |
For what it's worth, the order of arguments in TEST macro is supposed be the other way round, because in its current form 5 test cases each with 1 test are created:
whereas logically I would expect 1 test case ("Morphological") with 5 tests ("Dilate", "Erode", etc). |
@taketwo Yeah, sure, I can fix this. The backwards interpretation is fairly commonplace throughout the filters tests for some reason. |
I would admit that not only backwards interpretation in |
@taketwo Pretty sure the failed job was a fluke. Can you initiate a restart of the build within Travis? |
No, I have no control of that.
Yeah, I wouldn't even bother restarting the job since the last time it was okay. Every now and then Travis dies building test executables. Some of the tests are indeed large and cover many PCL classes, so compilation turns to be a pretty memory-intensive process. Again, calls for a clean-up and splitting tests into multiple files. |
I am all pro, just waiting for @jspricke to comment. |
Well, I think there won't be major objections anyways, and minor things we can patch later. I will merge so that we can move on with other PRs. |
Add: morphological filters operate on the z dimension (replaces #521)
No description provided.