MCPcopy Create free account
hub / github.com/LimHyungTae/patchwork / count_num_outliers

Function count_num_outliers

include/patchwork/utils.hpp:142–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140
141template <typename PointT>
142int count_num_outliers(const pcl::PointCloud<PointT> &pc) {
143 int num_outliers = 0;
144
145 std::vector<int>::iterator iter;
146
147 for (auto const &pt : pc.points) {
148 iter = std::find(outlier_classes.begin(), outlier_classes.end(), pt.label);
149 if (iter != outlier_classes.end()) { // corresponding class is in ground classes
150 num_outliers++;
151 }
152 }
153 return num_outliers;
154}
155
156template <typename PointT>
157void discern_ground(const pcl::PointCloud<PointT> &src,

Callers 2

save_all_accuracyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected