| 73 | } |
| 74 | |
| 75 | void 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 |
nothing calls this directly
no test coverage detected