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

Method execute

kernels/HausdorffKernel.cpp:81–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79
80
81int HausdorffKernel::execute()
82{
83 ColumnPointTable srcTable;
84 PointViewPtr srcView = loadSet(m_sourceFile, srcTable);
85
86 ColumnPointTable candTable;
87 PointViewPtr candView = loadSet(m_candidateFile, candTable);
88
89 std::pair<double, double> result = Utils::computeHausdorffPair(srcView, candView);
90
91 MetadataNode root;
92 root.add("filenames", m_sourceFile);
93 root.add("filenames", m_candidateFile);
94 root.add("hausdorff", result.first);
95 root.add("modified_hausdorff", result.second);
96 root.add("pdal_version", Config::fullVersionString());
97 Utils::toJSON(root, std::cout);
98
99 return 0;
100}
101
102} // namespace pdal

Callers 1

loadSetMethod · 0.45

Calls 4

computeHausdorffPairFunction · 0.85
fullVersionStringFunction · 0.85
toJSONFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected