| 73 | } |
| 74 | |
| 75 | int 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 |
no test coverage detected