| 79 | |
| 80 | |
| 81 | int 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 |
no test coverage detected