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

Method initialize

filters/NeighborClassifierFilter.cpp:75–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75void NeighborClassifierFilter::initialize()
76{
77 for (auto const& r : m_domainSpec)
78 {
79 try
80 {
81 DimRange range;
82 range.parse(r);
83 m_domain.push_back(range);
84 }
85 catch (const DimRange::error& err)
86 {
87 throwError("Invalid 'domain' option: '" + r + "': " + err.what());
88 }
89 }
90 if (m_k < 1)
91 throwError("Invalid 'k' option: " + std::to_string(m_k) +
92 ", must be > 0");
93}
94
95
96void NeighborClassifierFilter::prepared(PointTableRef table)

Callers

nothing calls this directly

Calls 2

parseMethod · 0.45
whatMethod · 0.45

Tested by

no test coverage detected