MCPcopy Create free account
hub / github.com/PDAL/PDAL / filter

Method filter

filters/EstimateRankFilter.cpp:75–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75void EstimateRankFilter::filter(PointView& view)
76{
77 const KD3Index& kdi = view.build3dIndex();
78
79 for (PointRef p : view)
80 {
81 PointIdList ids = kdi.neighbors(p, m_knn);
82 p.setField(Id::Rank, math::computeRank(view, ids, m_thresh));
83 }
84}
85
86} // namespace pdal

Callers

nothing calls this directly

Calls 3

computeRankFunction · 0.85
neighborsMethod · 0.45
setFieldMethod · 0.45

Tested by

no test coverage detected