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

Make UniformSampling inherit from FilterIndices instead of Filter #6064

Conversation

QiuYilin
Copy link
Contributor

finish #6051

Please let me know if there is anything that needs to be modified

}
}

// Second pass: go over all leaves and copy data
output.resize (leaves_.size ());
std::size_t cp = 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
std::size_t cp = 0;

Copy link
Contributor

Choose a reason for hiding this comment

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

I think this one is not used.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

@mvieth mvieth added changelog: enhancement Meta-information for changelog generation module: filters labels Jun 14, 2024
mvieth
mvieth previously approved these changes Jun 14, 2024
Copy link
Member

@mvieth mvieth left a comment

Choose a reason for hiding this comment

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

Looks good to me, thank you!

@mvieth mvieth requested a review from larshg June 14, 2024 09:02
if (!std::isfinite ((*input_)[(*indices_)[cp]].x) ||
!std::isfinite ((*input_)[(*indices_)[cp]].y) ||
!std::isfinite ((*input_)[(*indices_)[cp]].z))
if (!std::isfinite ((*input_)[cp].x) ||
Copy link
Contributor

Choose a reason for hiding this comment

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

Could use pcl::isXYZFinite.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

@mvieth mvieth merged commit 976836b into PointCloudLibrary:master Jun 18, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog: enhancement Meta-information for changelog generation module: filters
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[filters] Make UniformSampling inherit from FilterIndices instead of Filter
3 participants