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

Method execute

kernels/ChamferKernel.cpp:75–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75int ChamferKernel::execute()
76{
77 ColumnPointTable srcTable;
78 PointViewPtr srcView = loadSet(m_sourceFile, srcTable);
79
80 ColumnPointTable candTable;
81 PointViewPtr candView = loadSet(m_candidateFile, candTable);
82
83 double chamfer = Utils::computeChamfer(srcView, candView);
84
85 MetadataNode root;
86 root.add("filenames", m_sourceFile);
87 root.add("filenames", m_candidateFile);
88 root.add("chamfer", chamfer);
89 root.add("pdal_version", Config::fullVersionString());
90 Utils::toJSON(root, std::cout);
91
92 return 0;
93}
94
95} // namespace pdal

Callers 1

loadSetMethod · 0.45

Calls 4

computeChamferFunction · 0.85
fullVersionStringFunction · 0.85
toJSONFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected