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

Function GetClassifications

test/unit/filters/NeighborClassifierFilterTest.cpp:46–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44{
45
46const stats::Summary::EnumMap GetClassifications(Stage &s,
47 point_count_t *count = NULL)
48{
49 StatsFilter stats;
50 stats.setInput(s);
51
52 Options statOpts;
53 statOpts.add("enumerate", "Classification");
54 stats.setOptions(statOpts);
55
56 PointTable table;
57 stats.prepare(table);
58 PointViewSet viewSet = stats.execute(table);
59 const stats::Summary& statsClassification = stats.getStats(Dimension::Id::Classification);
60 if (count)
61 *count = statsClassification.count();
62 return statsClassification.values();
63}
64
65TEST(NeighborClassifierFilterTest, singleRange)
66{

Callers 1

TESTFunction · 0.85

Calls 4

setOptionsMethod · 0.80
addMethod · 0.45
prepareMethod · 0.45
executeMethod · 0.45

Tested by

no test coverage detected